Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=4)
-   -  

How to dump youtube live TV stream to file using commandline?

(http://stream-recorder.com/forum/showthread.php?t=15019)

cezi1 02-15-2013 03:03 PM

Re: How to dump youtube live TV stream to file using commandline?


 
@Elgero

that's your decision, but real shame my friend
who is the author of youtube-dl?

DEAD_MAN_WALKING 02-17-2013 10:19 AM

Re: How to dump youtube live TV stream to file using commandline?


 
Quote:

Originally Posted by Elgero (Post 59751)
I spent several hours making this tool and it has only been downloaded 11 times in almost 3 weeks, so there isn't much interest in this tool.

You might get a few more downloads now mate...;)

Great work keep it up.

http://forum.wiziwig.eu/threads/8147...e-Live-Streams

djensen1234@gmail.com 03-15-2013 03:49 PM

Re: How to dump youtube live TV stream to file using commandline?


 
hello all

thanks so much for the rip program

however trying to rip this

http://www.youtube.com/watch?v=A0H7-eZm4Mg&pxtry=1

to no succes...

C:\>youtubedl -l -u http://www.youtube.com/watch?v=A0H7-eZm4Mg&pxtry=1

Available formats for this stream:

'pxtry' blev ikke genkendt som en intern eller ekstern kommando,
et program eller en batchfil.


in danish... saying pxtry was not recognized as an internal or external command, program or batchfile...

can somebody explain ...?

thanks :)

TubeDigger 03-15-2013 04:01 PM

Re: How to dump youtube live TV stream to file using commandline?


 
Quote:

Originally Posted by djensen1234@gmail.com (Post 60643)
however trying to rip this
http://www.youtube.com/watch?v=A0H7-eZm4Mg&pxtry=1
to no succes...

Code:

ffmpeg -i "http://www.youtube.com/api/manifest/hls_playlist/id/A0H7-eZm4Mg.1/itag/93/source/yt_live_broadcast/ratebypass/yes/live/1/cmbypass/yes/newshard/yes/playlist_type/LIVE/cp/U0hVSFRLU19FUENONV9MRVdCOnN3MkNVSkZtaTJX/maudio/1/pmbypass/yes/sver/3/fexp/912806,902000,919512,929901,913605,906938,931202,931401,908529,930803,920201,929602,930101,930603,900824/upn/B1D7NPMwzLo/cpn/3j6T84km9gzfdL_V/ip/188.230.10.206/ipbits/8/expire/1363405106/sparams/ip,ipbits,expire,id,itag,source,ratebypass,live,cmbypass,newshard,playlist_type,cp,maudio,pmbypass/signature/4516D925E719FDAECAD772CF28B1DB7698C4E6C1.47CAFC076F0D04E5E5AE278DECC6D80E58AAE980/key/dg_yt0/file/index.m3u8" -c copy out.ts

Elgero 03-15-2013 04:27 PM

Re: How to dump youtube live TV stream to file using commandline?


 
Quote:

Originally Posted by djensen1234@gmail.com (Post 60643)
hello all

thanks so much for the rip program

however trying to rip this

http://www.youtube.com/watch?v=A0H7-eZm4Mg&pxtry=1

to no succes...

C:\>youtubedl -l -u http://www.youtube.com/watch?v=A0H7-eZm4Mg&pxtry=1

Available formats for this stream:

'pxtry' blev ikke genkendt som en intern eller ekstern kommando,
et program eller en batchfil.


in danish... saying pxtry was not recognized as an internal or external command, program or batchfile...

can somebody explain ...?

thanks :)

The reason why you get that error is because you can't use an ampersand (&) in the url. You must either remove "&pxtry=1" or escape the ampersand with a caret.

Code:

http://www.youtube.com/watch?v=A0H7-eZm4Mg
or

Code:

http://www.youtube.com/watch?v=A0H7-eZm4Mg^&pxtry=1

The tool was written in a very short time and doesn't support every live video on YouTube, so even after removing "&pxtry=1" or escaping the ampersand it won't work unfortunately.

djensen1234@gmail.com 03-15-2013 04:59 PM

Re: How to dump youtube live TV stream to file using commandline?


 
ok... thank you for using the time to reply...

i can confirm it wont work...

trying to go down the ffmpeg way... though starting from scratch from a new virtuel linux install

so... dont know how this is gonna end .... and i really want to get started recording.... will tell you how this ends.. :)

djensen1234@gmail.com 03-15-2013 05:12 PM

Re: How to dump youtube live TV stream to file using commandline?


 
i tried this

http://ffmpeg.zeranoe.com/builds/

and the command from tubedigger

same problem with &pxtry

and this

http://www.youtube.com/watch?v=A0H7-eZm4Mg: Invalid data found when processing input

magichandz 03-16-2013 09:21 AM

Re: How to dump youtube live TV stream to file using commandline?


 
Quote:

Originally Posted by TubeDigger (Post 60644)
Code:

ffmpeg -i "http://www.youtube.com/api/manifest/hls_playlist/id/A0H7-eZm4Mg.1/itag/93/source/yt_live_broadcast/ratebypass/yes/live/1/cmbypass/yes/newshard/yes/playlist_type/LIVE/cp/U0hVSFRLU19FUENONV9MRVdCOnN3MkNVSkZtaTJX/maudio/1/pmbypass/yes/sver/3/fexp/912806,902000,919512,929901,913605,906938,931202,931401,908529,930803,920201,929602,930101,930603,900824/upn/B1D7NPMwzLo/cpn/3j6T84km9gzfdL_V/ip/188.230.10.206/ipbits/8/expire/1363405106/sparams/ip,ipbits,expire,id,itag,source,ratebypass,live,cmbypass,newshard,playlist_type,cp,maudio,pmbypass/signature/4516D925E719FDAECAD772CF28B1DB7698C4E6C1.47CAFC076F0D04E5E5AE278DECC6D80E58AAE980/key/dg_yt0/file/index.m3u8" -c copy out.ts

i'm trying to record that stream too. the ffmpeg method definitely works but i ran into a problem where it stops downloading the stream after about 2 or 3 hours. the stream is about 10 hours long. is there any way to make sure it gets the whole thing?

magichandz 03-17-2013 12:09 AM

Re: How to dump youtube live TV stream to file using commandline?


 
i just discovered a bigger problem with this stream
http://www.youtube.com/watch?v=A0H7-eZm4Mg&hd=1

the ffmpeg method only captures the video but no audio. not sure why.

EDIT: looks like i was using the wrong m3u8 file. i used the one from the page source not the network monitor.

chap 03-17-2013 12:37 AM

Re: How to dump youtube live TV stream to file using commandline?


 
try
Code:

ffmpeg -i "bla,bla,bla" -c copy -absf aac_adtstoasc t.mp4


All times are GMT -6. The time now is 12:08 PM.