chrippa / livestreamer

Command-line utility that extracts streams from various services and pipes them into a video player of choice. No longer maintained, use streamlink or youtube-dl instead.
http://livestreamer.io/
BSD 2-Clause "Simplified" License
3.88k stars 582 forks source link

Youtube LIVE Patch only works with VLC 3.0 UNSTABLE Nightly #1314

Open Rotarum opened 8 years ago

Rotarum commented 8 years ago

Hi,

after patching with "youtube.py" plugin file the Livestreamer is connecting to Youtube LIVE again.

But Playback with latest VLC Stable Versions (2.x) are not working anymore !

After installing VLC Nightly (3.0) it works, but this VLC build is very unstable :-(

PLEASE MAKE PLAYBACK WITH STANDARD VLC WORK AGAIN

intact commented 8 years ago

You can use ffplay or mplayer

Rotarum commented 8 years ago

VLC Stable should work like it was working before.

Hope there will be a fix for that ...

scottbernstein-zz commented 8 years ago

The problem does not lie in Livestreamer code. Youtube changed the format of their videos and the VLC Player 2.x will not play the format. There is NOTHING at all that Livestreamer can do to fix that, unfortunately. It is just grabbing the video bits, and if VLC can't play it, there's nothing Livestreamer can do.

Date: Thu, 5 May 2016 06:23:36 -0700 From: notifications@github.com To: livestreamer@noreply.github.com CC: Subject: [chrippa/livestreamer] Youtube LIVE Patch only works with VLC 3.0 UNSTABLE Nightly (#1314)

Hi,

after patching with "youtube.py" plugin file the Livestreamer is connecting to Youtube LIVE again.

But Playback with latest VLC Stable Versions (2.x) are not working anymore !

After installing VLC Nightly (3.0) it works, but this VLC build is very unstable :-(

PLEASE MAKE PLAYBACK WITH STANDARD VLC WORK AGAIN

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub

Rotarum commented 8 years ago

Why is it not possible to patch Livestreamer to work with VLC ???

It will take maybe 1 Year or more until there is Stable 3.0, this is so disappointing :-((

scottbernstein-zz commented 8 years ago

Livestreamer is not intended to be video transcoding software. It captures or passes through to a player the raw video streams and that's it. The video encoding that YouTube is now using is incompatible with the current VLC Player. You can capture that video and very simply transcode it later to a format that VLC 2.x understands, but that is not the job of livestreamer to do on the fly.

Date: Thu, 5 May 2016 12:46:03 -0700 From: notifications@github.com To: livestreamer@noreply.github.com CC: scott_bernstein@hotmail.com; comment@noreply.github.com Subject: Re: [chrippa/livestreamer] Youtube LIVE Patch only works with VLC 3.0 UNSTABLE Nightly (#1314)

Why is it not possible to patch Livestreamer to work with VLC ???

It will take maybe 1 Year or more unti there is Stable 3.0, this is so disappointing :-((

— You are receiving this because you commented. Reply to this email directly or view it on GitHub

Rotarum commented 8 years ago

Before it was working with Livestreamer / VLC Combination.

If there is a little Patch for VLC 2.x i would do it. Do you know how and which file to be modified ?

scottbernstein-zz commented 8 years ago

Indeed it was working before, but YouTube changed encoding on their end and there's nothing we can do about that. Just upgrade to VLC 3.0 nightly build. It works fine and there seems to be little to no downside.

Date: Thu, 5 May 2016 14:38:49 -0700 From: notifications@github.com To: livestreamer@noreply.github.com CC: scott_bernstein@hotmail.com; comment@noreply.github.com Subject: Re: [chrippa/livestreamer] Youtube LIVE Patch only works with VLC 3.0 UNSTABLE Nightly (#1314)

Before it was working with Livestreamer / VLC Combination.

If there is a little Patch for VLC 2.x i would do it. Do you know how and which file to be modified ?

— You are receiving this because you commented. Reply to this email directly or view it on GitHub

Rotarum commented 8 years ago

VLC 3.0 nightly is unstable, eats more RAM and has many other bugs.

If there is possibility to patch the Stable VLC i would do it but how ??

scottbernstein-zz commented 8 years ago

That is way beyond my knowledge, sorry....

Date: Thu, 5 May 2016 14:51:31 -0700 From: notifications@github.com To: livestreamer@noreply.github.com CC: scott_bernstein@hotmail.com; comment@noreply.github.com Subject: Re: [chrippa/livestreamer] Youtube LIVE Patch only works with VLC 3.0 UNSTABLE Nightly (#1314)

VLC 3.0 nightly is unstable, eats more RAM and has many other bugs.

If there is possibility to patch the Stable VLC i would do it but how ??

— You are receiving this because you commented. Reply to this email directly or view it on GitHub

trippyhat commented 8 years ago

In addition to VLC 3.0, I have had success playing youtube streams using mplayer 1.2.1+

c769214 commented 8 years ago

Hi,

I found there is a way to TEMPORARY solve this issue livestreamer is ok to decode the youtube livestream but the VLC cannot decode it well...So, what i am doing is using the 3rd party to receive the livestreamer and then re-porting back to VLC by using a UDP

here is the example (in linux console) : livestreamer -O https://www.youtube.com/watch?v=kfTq_A9nBM0 best | ffmpeg -i - -vcodec copy -async 1 -tune zerolatency -acodec copy -preset fast -f mpegts udp://@127.0.0.1:1234

-O command is stdout and using ffmpeg as stdin and then output as a udp streaming format. So, you can still using the VLC by open the network stream by entering the address : udp://@127.0.0.1:1234

BUT.... there is still some problem ! sometimes the videout is a bit choppy (that is : play 5-10 seconds and then will stop a while and then resumes)

HOPE somebody can help me .....THANKS !

c769214 commented 8 years ago

read some website , the command line can be changed as follow then no udp required:

livestreamer -O https://www.youtube.com/watch?v=kfTq_A9nBM0 best | ffmpeg -i - -vcodec copy -tune zerolatency -acodec copy -preset fast -f mpegts - 2>/dev/null | vlc -

Rotarum commented 8 years ago

Is it possible without using ffmpeg between, directly from livestreamer to VLC ?

c769214 commented 8 years ago

Dear Rotarum

As this moment, I can't find other issue better than above (BTW....that should work with windows / linux.... and I haven't installed VLC 3.0 beta so don't know what it is )

See other buddies if they can solve this.....

tp0 commented 8 years ago

Is there a specific feature you use on VLC why you want to stick to VLC? Assuming Windows, try MPC-HC.

Rotarum commented 8 years ago

Hello tp0,

i want all Options possible. Not only Playback but also Streaming and Transcode too.

Before it was working from Livestreamer directly to VLC, but now impossible.

Tested the new VLC 2.2.4 but still the same :-(

You have another idea ?

Xillie2006 commented 7 years ago

A proper working solution with any vlc build is to use the AVFORMAT demuxer. VLC.exe --demux=avformat. This is my only contribution to github ever. I posted this about a year ago. I wonder where my little advice went. This trick helps with more buggy streams and files and "sout" chains. In fact, I find the avformat demuxer performing better than VLCs native demuxer anytime......

reggna commented 7 years ago

Thanks, @Xillie2006 for reviving this thread and giving a proper solution. This worked for me: livestreamer https://www.youtube.com/watch?v=kfTq_A9nBM0 360p -O | vlc --demux=avformat -

cirrusUK commented 7 years ago

dont need livestreamer, that other splendid peice of free software supports you tube (and many others) https://rg3.github.io/youtube-dl/