[Solved] Youtube Live with MPV or VLC, doesnt work!

Everything about X, Gnome, KDE, ... and everything running on it

[Solved] Youtube Live with MPV or VLC, doesnt work!

Postby bester69 » 2018-05-31 17:08

Hi,

Youtube Live doesnt work (image stops) in debian with external players, do you know how to work around this issue, or what setting do i need to set in players in order to work??

Thanks, a lot
Last edited by bester69 on 2018-06-08 01:41, edited 1 time in total.
bester69 wrote:There is nothing to install in linux, from time to time i go to google searching for something fresh to install in linux, but, there is nothing
User avatar
bester69
 
Posts: 1201
Joined: 2015-04-02 13:15

Re: Youtube Live with MPV or VLC, doesnt work!

Postby stevepusser » 2018-06-01 02:49

I have those working in the latest version of SMPlayer with mpv 0.28.2 as the backend plus the 2018.04.25 version of youtube-dl. Civil Beat in Hawaii was putting on long live streams of the ongoing lava eruption from a home near the fissures until yesterday, when a new flow threatened to cut off the only escape route, so they said aloha and beat a quick exit.

I just checked my backport of VLC 3.0.3, and it also played the ISS live stream: https://www.youtube.com/watch?v=RtU_mdL2vBM

What command do you give to pass a URL to mpv?
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: GIMP 2.10.6, Pale Moon 28.1.0, wine-staging 3.16, qBittorrent 4.1.3, Linux kernel 4.18.8, virtualbox 5.2.18
User avatar
stevepusser
 
Posts: 9920
Joined: 2009-10-06 05:53

Re: Youtube Live with MPV or VLC, doesnt work!

Postby bester69 » 2018-06-01 09:21

stevepusser wrote:I have those working in the latest version of SMPlayer with mpv 0.28.2 as the backend plus the 2018.04.25 version of youtube-dl. Civil Beat in Hawaii was putting on long live streams of the ongoing lava eruption from a home near the fissures until yesterday, when a new flow threatened to cut off the only escape route, so they said aloha and beat a quick exit.

I just checked my backport of VLC 3.0.3, and it also played the ISS live stream: https://www.youtube.com/watch?v=RtU_mdL2vBM

What command do you give to pass a URL to mpv?


Hi Steve,
I usually use gnome-mpv with drag&drop url

youtube-dl --version: 2017.05.18.1
Code: Select all
mpv --version
mpv 0.26.0 (C) 2000-2017 mpv/MPlayer/mplayer2 projects
 built on UNKNOWN
ffmpeg library versions:
   libavutil       55.58.100
   libavcodec      57.89.100
   libavformat     57.71.100
   libswscale      4.6.100
   libavfilter     6.82.100
   libswresample   2.7.100
ffmpeg version: 3.3.4-2

mpv https://www.youtube.com/watch?v=RtU_mdL2vBM
Playing: https://www.youtube.com/watch?v=RtU_mdL2vBM
[ytdl_hook] ERROR: no conn, hlsvp or url_encoded_fmt_stream_map information found in video info; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[ytdl_hook] youtube-dl failed, trying to play URL directly ...
[ffmpeg] tls: The TLS connection was non-properly terminated.
Failed to recognize file format.
bester69 wrote:There is nothing to install in linux, from time to time i go to google searching for something fresh to install in linux, but, there is nothing
User avatar
bester69
 
Posts: 1201
Joined: 2015-04-02 13:15

Re: Youtube Live with MPV or VLC, doesnt work!

Postby stevepusser » 2018-06-01 19:23

Your version of youtube-dl is over a year old, so I'm sure that's at least part of the problem with the programs that use it. What version of mpv and VLC do you have, and what happens when you start it in a terminal, then try and fail to play a live stream?

Gnome-mpv uses libmpv1, so what version do you also have of that?
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: GIMP 2.10.6, Pale Moon 28.1.0, wine-staging 3.16, qBittorrent 4.1.3, Linux kernel 4.18.8, virtualbox 5.2.18
User avatar
stevepusser
 
Posts: 9920
Joined: 2009-10-06 05:53

Re: Youtube Live with MPV or VLC, doesnt work!

Postby bester69 » 2018-06-02 15:58

stevepusser wrote:Your version of youtube-dl is over a year old, so I'm sure that's at least part of the problem with the programs that use it. What version of mpv and VLC do you have, and what happens when you start it in a terminal, then try and fail to play a live stream?

Gnome-mpv uses libmpv1, so what version do you also have of that?

Ive tried with mpv in console, and it fails as well.

Here, you can see, with the Nasa Live
mpv == libmpv1== 0.26 (stretch version)
mpv https://www.youtube.com/watch?v=RtU_mdL2vBM
Playing: https://www.youtube.com/watch?v=RtU_mdL2vBM
[ytdl_hook] ERROR: no conn, hlsvp or url_encoded_fmt_stream_map information found in video info; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[ytdl_hook] youtube-dl failed, trying to play URL directly ...
[ffmpeg] tls: The TLS connection was non-properly terminated.
Failed to recognize file format.


with vlc https://www.youtube.com/watch?v=RtU_mdL2vBM
[0000562411ab3f88] httplive stream error: reloading playlist failed
[00007f7c3801d708] core access error: connection failed: Network is unreachable
[00007f7c3801d708] http access error: cannot connect to manifest.googlevideo.com:443
[0000562411ab3f88] core stream error: no suitable access module for `https://manifest.googlevideo.com/api/manifest/hls_playlist/id/RtU_mdL2vBM.2/itag/91/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/gir%3Dyes%3Bitag%3D139/sgovp/gir%3Dyes%3Bitag%3D160/hls_chunk_host/r8---sn-h5q7dn7d.googlevideo.com/gcr/es/ei/jskSW5jMEYGLW9rdrvAI/playlist_type/DVR/initcwndbps/4910/mm/32/mn/sn-h5q7dn7d/ms/lv/mv/m/pl/18/dover/10/playlist_duration/30/keepalive/yes/manifest_duration/30/mt/1527957746/ip/78.30.46.55/ipbits/0/expire/1527979502/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,gcr,ei,playlist_type,initcwndbps,mm,mn,ms,mv,pl/signature/7975C83616B1344879D21D73F678D8DE923CB66F.87E468DAB825319C84AEE7E5BC04069A2A5E7A16/key/dg_yt0/playlist/index.m3u8'

:shock:
bester69 wrote:There is nothing to install in linux, from time to time i go to google searching for something fresh to install in linux, but, there is nothing
User avatar
bester69
 
Posts: 1201
Joined: 2015-04-02 13:15

Re: Youtube Live with MPV or VLC, doesnt work!

Postby stevepusser » 2018-06-02 16:08

Have you tried upgrading youtube-dl yet?

For what it's worth, I can play that ISS live stream myself with a newer youtube-dl and mpv 0.28.2 from the MX test repo. That mpv uses an internal ffmpeg and doesn't provide libmpv1 for gnome-mpv to use, though I do have ffmpeg-4.0 and a dynamically linked mpv/libmpv1 in a branch off my OBS multimedia repo. 0.28 may be necessary for live streams now...
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: GIMP 2.10.6, Pale Moon 28.1.0, wine-staging 3.16, qBittorrent 4.1.3, Linux kernel 4.18.8, virtualbox 5.2.18
User avatar
stevepusser
 
Posts: 9920
Joined: 2009-10-06 05:53

Re: Youtube Live with MPV or VLC, doesnt work!

Postby bester69 » 2018-06-02 20:26

stevepusser wrote:Have you tried upgrading youtube-dl yet?

For what it's worth, I can play that ISS live stream myself with a newer youtube-dl and mpv 0.28.2 from the MX test repo. That mpv uses an internal ffmpeg and doesn't provide libmpv1 for gnome-mpv to use, though I do have ffmpeg-4.0 and a dynamically linked mpv/libmpv1 in a branch off my OBS multimedia repo. 0.28 may be necessary for live streams now...

I upgraded everithing from your repos :

(ffmpeg, mpv, gnome-mpv, vlc), and youtube-dl, I can watch live stream with mpv
vlc doesnt play it, and gnome-mpv freeze every 5 seconds, and you have to pause/play to restart video.. Any idea why gnome-mpv doesnt behave like mpv (They both are sharing mpv.conf).

Im using now:
Code: Select all
 mpv --version
mpv 0.28.0 (C) 2000-2017 mpv/MPlayer/mplayer2 projects
 built on Sat Mar 10 14:24:53 UTC 2018
ffmpeg library versions:
   libavutil       56.7.100
   libavcodec      58.9.100
   libavformat     58.3.100
   libswscale      5.0.101
   libavfilter     7.7.100
   libswresample   3.0.101

libmpv1 =0.27

I see mpv is 0.28 and libmpv1=0.27, perhaps this the reason?; I would like to keep using Gnome-mv

Thanks Steve. :)
bester69 wrote:There is nothing to install in linux, from time to time i go to google searching for something fresh to install in linux, but, there is nothing
User avatar
bester69
 
Posts: 1201
Joined: 2015-04-02 13:15

Re: Youtube Live with MPV or VLC, doesnt work!

Postby stevepusser » 2018-06-02 20:42

There was some talk on the SMPlayer forums that live streams now require mpv 0.28. SMPlayer uses mpv directly instead of libmpv1, so it can use that mpv 0.28 you have installed.

Or the branch repo I have with ffmpeg 4.0 and libmpv1 0.28.2 is another option: https://build.opensuse.org/project/show ... rt:ffmpeg4 That's the "Debian way" to have mpv and gnome-mpv working together.

It also worked fine when I tested it. I got the sources when they were in Debian Experimental, but they have since been removed...which is a bit worrisome.

I don't know what the issues are with the other players.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: GIMP 2.10.6, Pale Moon 28.1.0, wine-staging 3.16, qBittorrent 4.1.3, Linux kernel 4.18.8, virtualbox 5.2.18
User avatar
stevepusser
 
Posts: 9920
Joined: 2009-10-06 05:53

Re: Youtube Live with MPV or VLC, doesnt work!

Postby stevepusser » 2018-06-02 21:04

By the way, I just added youtube-dl to that main backports repo literally a minute ago. I had youtube-dlg before, but I don't think mpv can use the internal version of youtube-dl that it can download. But I could be wrong.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: GIMP 2.10.6, Pale Moon 28.1.0, wine-staging 3.16, qBittorrent 4.1.3, Linux kernel 4.18.8, virtualbox 5.2.18
User avatar
stevepusser
 
Posts: 9920
Joined: 2009-10-06 05:53

Re: Youtube Live with MPV or VLC, doesnt work!

Postby bester69 » 2018-06-02 21:36

stevepusser wrote:There was some talk on the SMPlayer forums that live streams now require mpv 0.28. SMPlayer uses mpv directly instead of libmpv1, so it can use that mpv 0.28 you have installed.

Or the branch repo I have with ffmpeg 4.0 and libmpv1 0.28.2 is another option: https://build.opensuse.org/project/show ... rt:ffmpeg4 That's the "Debian way" to have mpv and gnome-mpv working together.

It also worked fine when I tested it. I got the sources when they were in Debian Experimental, but they have since been removed...which is a bit worrisome.

I don't know what the issues are with the other players.

Yes, I saw some gui's use directlly the binary mpv insteed the library libmpv1, thoses ones works ok(smplayer, kawaii-player), and others ones doesnt (gnome-mpv, baka-mplayer). Im gonna try the branch with 0.28, and Ill tell you.

By the way Here, I found some very interstings mpv based on players, you might build in debian.:
https://github.com/mpv-player/mpv/wiki/ ... -using-mpv

From a quick look at them, I saw some interesting to port these ones:
Deepin Movie:
(mpv engine) Deepin Movie is Deepin Desktop Environment Movie Player.
xt7-player-mpv:
A frontend to mpv with extra features.
Media Player Classic Qute Theater
(libmpv engine) A media player based on libmpv which aims to reproduce most of the interface and functionality of mpc-hc


Last one, Media Player Qt, looks a very good player, which do you thing are the best ones of that list?
bester69 wrote:There is nothing to install in linux, from time to time i go to google searching for something fresh to install in linux, but, there is nothing
User avatar
bester69
 
Posts: 1201
Joined: 2015-04-02 13:15

Re: Youtube Live with MPV or VLC, doesnt work!

Postby bester69 » 2018-06-02 23:03

I think i finally will use smplayer as a replacement for gnome-mpv, It gives me a gui, it supports drag&drop youtube's url and It uses mpv binary.

Great you added youtube-dl to repo.

Thanks a lot Steve. :o
bester69 wrote:There is nothing to install in linux, from time to time i go to google searching for something fresh to install in linux, but, there is nothing
User avatar
bester69
 
Posts: 1201
Joined: 2015-04-02 13:15

Re: Youtube Live with MPV or VLC, doesnt work!

Postby bester69 » 2018-06-02 23:27

bester69 wrote:I think i finally will use smplayer as a replacement for gnome-mpv, It gives me a gui, it supports drag&drop youtube's url and It uses mpv binary.

Great you added youtube-dl to repo.

Thanks a lot Steve. :o


mpv still not working fully properly when played some long, it freeze image, I think it stops when overbuffering, and that seems to happend when browsering internet at the same time play video.

The error, gives a keepalive..:
mpv https://www.youtube.com/watch?v=TK0-Qi0_SHg
[ffmpeg/demuxer] hls,applehttp: keepalive request failed for....

I guesss this might be worked around with some mpv's cache params,, I just dont find what params do i need to set in mpv.conf. :(
bester69 wrote:There is nothing to install in linux, from time to time i go to google searching for something fresh to install in linux, but, there is nothing
User avatar
bester69
 
Posts: 1201
Joined: 2015-04-02 13:15

Re: Youtube Live with MPV or VLC, doesnt work!

Postby bester69 » 2018-06-04 02:34

bester69 wrote:
bester69 wrote:I think i finally will use smplayer as a replacement for gnome-mpv, It gives me a gui, it supports drag&drop youtube's url and It uses mpv binary.

Great you added youtube-dl to repo.

Thanks a lot Steve. :o


mpv still not working fully properly when played some long, it freeze image, I think it stops when overbuffering, and that seems to happend when browsering internet at the same time play video.

The error, gives a keepalive..:
mpv https://www.youtube.com/watch?v=TK0-Qi0_SHg
[ffmpeg/demuxer] hls,applehttp: keepalive request failed for....

I guesss this might be worked around with some mpv's cache params,, I just dont find what params do i need to set in mpv.conf. :(


Now seems to work everything OK.:
- I left ffmpeg in (version Stretch)
- I upgraded mpv to 0.28 (Using mpv insteed libmpv1 for live streaming; so here I will use smplayer GUI)
- I upgraded youtube-dl to last version

Thanks Steve. :wink:
bester69 wrote:There is nothing to install in linux, from time to time i go to google searching for something fresh to install in linux, but, there is nothing
User avatar
bester69
 
Posts: 1201
Joined: 2015-04-02 13:15


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 1 guest

fashionable