View Single Post
  #62  
Old 09-30-2013, 12:23 AM
magichandz magichandz is offline
Junior Member
 
Join Date: Mar 2013
Posts: 21
magichandz is on a distinguished road
Default

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


Quote:
Originally Posted by chap View Post
updated to latest ffmpeg. still getting 403 error.
http://www.youtube.com/watch?v=8sdLAHzZVMc&hd=1

tried using chrome network monitor to get m3u8 and get this

Code:
$ ffmpeg -i "http://www.youtube.com/api/manifest/hls_playlist/id/8sdLAHzZVMc.1/itag/95/source/yt_liyes/live/1/cmbypass/yes/newshard/yes/hls_chunk_host/www.youtube.com/gir/yes/dg_shard/8sdLAHzZVMc.1_95/playlist_type/DVR/cp/U0hXRVVPVV9LU0NON19NSVlGOkVCdE1XU0VHT0hK/pmbypass/yes/maudio/1/fexp/901482,938610,900376,916611,929305,939104,924606,916914,929117,929121,929906,929907,929922,929923,929127,929129,929131,929930,936403,925724,925726,936310,925720,925722,925718,936401,925714,929917,906945,929933,929935,929937,929939,939602,939604,937102,906842,913428,920605,912715,919811,932309,913563,919373,930803,908536,938701,931924,940501,936308,909549,935006,900816,912711,900378,934507,907231,936312,906001/upn/NrvSS41mV1o/sver/3/cpn/88jOG8SdQIl5HPFH/ip/{my-ip}/ipbits/8/expire/1380547569/sparams/ip,ipbits,expire,id,itag,source,ratebypass,live,cmbypass,newshard,hls_chunk_host,gir,dg_shard,playlist_type,cp,pmbypass,maudio/signature/3B48DEFBA1CB95A7DEE2E1FB81A60AB9CB642012.8A6432A4E596019E09AA24BF7D74CBA1EDBD3E25/key/dg_yt0/file/index.m3u8?start_seq=5384" -c copy stream.ts
ffmpeg version 2.0.1 Copyright (c) 2000-2013 the FFmpeg developers
  built on Sep 25 2013 06:03:35 with Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
  configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-libass --enable-libbluray --enable-gnutls --enable-libfreetype --disable-outdev=xv --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid
  libavutil      52. 38.100 / 52. 38.100
  libavcodec     55. 18.102 / 55. 18.102
  libavformat    55. 12.100 / 55. 12.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 79.101 /  3. 79.101
  libavresample   1.  1.  0 /  1.  1.  0
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[http @ 0x7fdbb2830200] HTTP error 403 Forbidden
[hls,applehttp @ 0x7fdbb2813000] Error when loading first segment 'http://www.youtube.com/videoplayback/id/8sdLAHzZVMc.1/itag/95/source/yt_live_broadcast/sq/5384/file/seg.ts?ratebypass=yes&cmbypass=yes&newshard=yes&hls_chunk_host=www.youtube.com&gir=yes&dg_shard=8sdLAHzZVMc.1_95&playlist_type=DVR&cp=U0hXRVVPVV9LU0NON19NSVlGOkVCdE1XU0VHT0hK&pmbypass=yes&maudio=1&fexp=901482,938610,900376,916611,929305,939104,924606,916914,929117,929121,929906,929907,929922,929923,929127,929129,929131,929930,936403,925724,925726,936310,925720,925722,925718,936401,925714,929917,906945,929933,929935,929937,929939,939602,939604,937102,906842,913428,920605,912715,919811,932309,913563,919373,930803,908536,938701,931924,940501,936308,909549,935006,900816,912711,900378,934507,907231,936312,906001&upn=NrvSS41mV1o&sver=3&cpn=88jOG8SdQIl5HPFH&ip={my-ip}&ipbits=8&expire=1380547569&sparams=ip,ipbits,expire,id,itag,source,ratebypass,live,cmbypass,newshard,hls_chunk_host,gir,dg_shard,playlist_type,cp,pmbypass,maudio&signature=3B48DEFBA1CB95A7DEE2E1FB81A60AB9CB642012http://www.youtube.com/api/manifest/hls_playlist/id/8sdLAHzZVMc.1/itag/95/source/yt_live_broadcast/ratebypass/yes/live/1/cmbypass/yes/newshard/yes/hls_chunk_host/www.youtube.com/gir/yes/dg_shard/8sdLAHzZVMc.1_95/playlist_type/DVR/cp/U0hXRVVPVV9LU0NON19NSVlGOkVCdE1XU0VHT0hK/pmbypass/yes/maudio/1/fexp/901482,938610,900376,916611,929305,939104,924606,916914,929117,929121,929906,929907,929922,929923,929127,929129,929131,929930,936403,925724,925726,936310,925720,925722,925718,936401,925714,929917,906945,929933,929935,929937,929939,939602,939604,937102,906842,913428,920605,912715,919811,932309,913563,919373,930803,908536,938701,931924,940501,936308,909549,935006,900816,912711,900378,934507,907231,936312,906001/upn/NrvSS41mV1o/sver/3/cpn/88jOG8SdQIl5HPFH/ip/{my-ip}/ipbits/8/expire/1380547569/sparams/ip,ipbits,expire,id,itag,source,ratebypass,live,cmbypass,newshard,hls_chunk_host,gir,dg_shard,playlist_type,cp,pmbypass,maudio/signature/3B48DEFBA1CB95A7DEE2E1FB81A60AB9CB642012.8A6432A4E596019E09AA24BF7D74CBA1ED
Reply With Quote