Results 1 to 10 of 10

Thread: HTML5 video lags but audio is fine. Any way to use external player like VLC to play twitch streams?

  1. #1

    Default HTML5 video lags but audio is fine. Any way to use external player like VLC to play twitch streams?

    It might just be because this laptop is really old.


    Genuine Intel(R) CPU T2080 @ 1.73GHz 2 cores
    Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller

    Memory Size: 2 GB


    VLC natively plays youtube urls but twitch urls don't seem to work.


    I looked it up and people are using livestreamer with VLC for twitch, but the livestreamer GUI doesn't support opensuse currently: https://github.com/streamlink/stream...lation#linux-1

    Running firefox in safe mode (no addons) doesn't change it. I've tried toggling hardware accel.

    Are there other opensuse programs that might work?

  2. #2
    Join Date
    Sep 2008
    Posts
    2,997

    Default Re: HTML5 video lags but audio is fine. Any way to use external player like VLC to play twitch strea

    what browser are you using
    youtube defaults to webm (vp9 and vp8 video) under linux
    you can try and force youtube to give you mp4 (h264) video
    under Firefox you've got 2 options
    #1 disable webm
    in about:config find and set the preference media.webm.enabled to false
    I don't recommend this as it will break other sites that don't offer an alternative
    #2 install the addon h264ify
    for Firefox and SeaMonkey
    https://addons.mozilla.org/en-US/firefox/addon/h264ify/
    for Chromium based browsers
    https://chrome.google.com/webstore/d...ghkekgioiakgal

    there was a way to use vlc in youtube but that requires you to use a script manager and inject a user script
    under Firefox install Tampermonkey (Greasemonkey hasn't been ported to webext but might work)
    https://addons.mozilla.org/en-US/fir.../tampermonkey/
    for Chromium get it from google store
    https://chrome.google.com/webstore/d...jmpbldmpobfkfo
    and import the following userscript
    https://greasyfork.org/en/scripts/1203-viewtube-gm
    read the greasyfork page for more info, I still thing h264ify is your best choice

  3. #3

    Default Re: HTML5 video lags but audio is fine. Any way to use external player like VLC to play twitch strea

    Thanks, trying h264ify.

    I can't edit the OP, but enabling hardware accel in firefox seemed to fix the issue with twitch. When I tried it previously with youtube it didn't seem to have an effect, but that h264ify addon sounds promising for youtube.

  4. #4

    Default Re: HTML5 video lags but audio is fine. Any way to use external player like VLC to play twitch strea

    Can't edit my posts but just came across this link for command line instructions for linux that I wanted to add to the thread, but I'm guessing it won't work for opensuse: http://it.toolbox.com/blogs/enlighte...on-linux-71667

    Going to try using http://concat.org/twitch-download/ for now since I'm still not getting consistent quality from twitch.

  5. #5
    Join Date
    Sep 2008
    Posts
    2,997

    Default Re: HTML5 video lags but audio is fine. Any way to use external player like VLC to play twitch strea

    Quote Originally Posted by MaximilianKohler View Post
    Can't edit my posts but just came across this link for command line instructions for linux that I wanted to add to the thread, but I'm guessing it won't work for opensuse: http://it.toolbox.com/blogs/enlighte...on-linux-71667

    Going to try using http://concat.org/twitch-download/ for now since I'm still not getting consistent quality from twitch.
    as this is a different issue maybe a new thread is a better choice
    regardin http://it.toolbox.com/blogs/enlighte...on-linux-71667 you should be able to do it in opensuse with a few changes (just replace apt-get install with zypper install)
    Code:
    sudo zypper install python-pip
    sudo pip install livestreamer
    livestreamer “paste twitch url here” best -o mystream.mp4
    about http://concat.org/twitch-download/
    it maybe this app
    https://software.opensuse.org/package/gnome-twitch
    you can get it from the multimedia:apps repo
    Code:
    zypper ar -f https://download.opensuse.org/repositories/multimedia:/apps/openSUSE_Tumbleweed/multimedia:apps.repo
    zypper in gnome-twitch

  6. #6

    Default Re: HTML5 video lags but audio is fine. Any way to use external player like VLC to play twitch strea

    Thanks for the help!

    Just for anyone else who finds this thread with similar issues:

    The gnome-twitch program is pretty limited. You can't paste in VOD URLs, and I couldn't even find the channel of the person who's VOD I was looking for. It looks like you might only be able to watch/browse live channels. The only tabs/windows/options available in the program are "Channels" "Follows" "Games", which only seem to let you browse what ever is live under those categories.

    For this one:

    Code:
    sudo zypper install python-pip
    sudo pip install livestreamer
    livestreamer “paste twitch url here” best -o mystream.mp4
    "python-pip" can't be found, but it installs python2-pip instead.

    And after installing livestreamer, when I put in:

    livestreamer “https://go.twitch.tv/videos/181750177” best -o mystream.mp4
    or
    livestreamer “https://twitch.tv/videos/181750177” best -o mystream.mp4

    It says:

    error: No plugin can handle URL: “https://go.twitch.tv/videos/181750177”


    http://concat.org/twitch-download/ also didn't seem to be working. It was staying on "processing" for a really long time.

    http://en.fetchfile.net/ doesn't seem to work either. Only downloads a small .m3u8 file. Same for http://savieo.com/sites/twitch even though they both say they support twitch.

    https://video-download.co/ works ok but only downloads ~1gig/1hr chunks at a time.

    "Twitch Leecher" seems to be a good program for this but I don't see a linux version.

  7. #7
    Join Date
    Sep 2008
    Posts
    2,997

    Default Re: HTML5 video lags but audio is fine. Any way to use external player like VLC to play twitch strea

    it would seam python-pip is not compiled for TW as only a source package for TW can be found on
    https://software.opensuse.org/package/python-pip
    currently at version 9.0.1 (LEAP is at 7.1.2)
    there is a python2-pip for TW only also at version 9.0.1
    https://software.opensuse.org/package/python2-pip
    they could be the same package
    both provide the same function an ability to install python packages
    about livestream plugin error try without the quotas
    Code:
    livestreamer https://go.twitch.tv/videos/181750177 best -o mystream.mp4

  8. #8

    Default Re: HTML5 video lags but audio is fine. Any way to use external player like VLC to play twitch strea

    Without the quotes I get:

    Code:
    [cli][info] Found matching plugin twitch for URL https://twitch.tv/videos/181750177
    error: Unable to open URL: https://api.twitch.tv/api/channels/videos/access_token.json (400 Client Error: Bad Request for url: https://api.twitch.tv/api/channels/videos/access_token.json?as3=t)

  9. #9
    Join Date
    Sep 2008
    Posts
    2,997

    Default Re: HTML5 video lags but audio is fine. Any way to use external player like VLC to play twitch strea

    apparently livestreamer uses a plugin interface
    http://docs.livestreamer.io/plugin_matrix.html
    it's possible pip didn't install all the plugins
    livestreamer has been packaged for TW I'd suggest removing the pip package and install the rpm
    https://software.opensuse.org/package/livestreamer
    Code:
    sudo pip uninstall livestreamer
    sudo zypper in https://download.opensuse.org/repositories/multimedia:/apps/openSUSE_Tumbleweed/noarch/livestreamer-1.12.2-3.25.noarch.rpm
    then try and capture a stream
    Code:
    livestreamer https://go.twitch.tv/videos/181750177 best -o mystream.mp4
    I checked the rpm and it does include a twitch plugin

    if this doesn't fix things you really should start a livestreamer thread as the title of this thread is misleading and livestreamer users won't read it

  10. #10

    Default Re: HTML5 video lags but audio is fine. Any way to use external player like VLC to play twitch strea

    Quote Originally Posted by I_A View Post
    apparently livestreamer uses a plugin interface
    http://docs.livestreamer.io/plugin_matrix.html
    it's possible pip didn't install all the plugins
    livestreamer has been packaged for TW I'd suggest removing the pip package and install the rpm
    https://software.opensuse.org/package/livestreamer
    Code:
    sudo pip uninstall livestreamer
    sudo zypper in https://download.opensuse.org/repositories/multimedia:/apps/openSUSE_Tumbleweed/noarch/livestreamer-1.12.2-3.25.noarch.rpm
    then try and capture a stream
    Code:
    livestreamer https://go.twitch.tv/videos/181750177 best -o mystream.mp4
    I checked the rpm and it does include a twitch plugin

    if this doesn't fix things you really should start a livestreamer thread as the title of this thread is misleading and livestreamer users won't read it
    Also I found this for anyone that wants to download a VOD they like from Twitch
    https://www.cisdem.com/resource/down...ch-videos.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •