Re: How to Capture stream of NBCOlympics.com
Quote:
Originally Posted by svnpenn
FFmpeg can do this
Code:
$ ffmpeg -i "http://www.youtube.com/api/manifest/hls_playlist/id/4a1ca8e7641361
8e/itag/93/source/yt_live_broadcast/ratebypass/yes/cmbypass/yes/playlist_type/C
LEAN/maudio/1/pmbypass/yes/upn/th6Ii4TXvBw/sver/3/ip/76.187.106.31/ipbits/8/exp
ire/1343857030/sparams/ip,ipbits,expire,id,itag,source,ratebypass,cmbypass,play
list_type,maudio,pmbypass/signature/49E1FDCA60AD5209A242DAC05872380ADB403124.23
1B9C0764F592164B80A0CA5BA99571CFD691C6/key/ck1/file/index.m3u8" -c copy out.ts
ffmpeg version N-42939-g236ecc3 Copyright (c) 2000-2012 the FFmpeg developers
built on Jul 26 2012 20:54:56 with gcc 4.7.1 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass
--enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libope
njpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libth
eora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --e
nable-zlib
libavutil 51. 65.100 / 51. 65.100
libavcodec 54. 45.100 / 54. 45.100
libavformat 54. 21.100 / 54. 21.100
libavdevice 54. 2.100 / 54. 2.100
libavfilter 3. 3.100 / 3. 3.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[mpegts @ 00000000056800a0] Estimating duration from bitrate, this may be inaccu
rate
Input #0, hls,applehttp, from 'http://www.youtube.com/api/manifest/hls_playlist/
id/4a1ca8e76413618e/itag/93/source/yt_live_broadcast/ratebypass/yes/cmbypass/yes
/playlist_type/CLEAN/maudio/1/pmbypass/yes/upn/th6Ii4TXvBw/sver/3/ip/76.187.106.
31/ipbits/8/expire/1343857030/sparams/ip,ipbits,expire,id,itag,source,ratebypass
,cmbypass,playlist_type,maudio,pmbypass/signature/49E1FDCA60AD5209A242DAC0587238
0ADB403124.231B9C0764F592164B80A0CA5BA99571CFD691C6/key/ck1/file/index.m3u8':
Duration: 02:12:32.00, start: 5270.571356, bitrate: 0 kb/s
Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 640x360 [
SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, s16, 142
kb/s
[mpegts @ 00000000059b87c0] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pm
t every 40 pkts
Output #0, mpegts, to 'out.ts':
Metadata:
encoder : Lavf54.21.100
Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 640x360 [SAR 1:1
DAR 16:9], q=2-31, 25 fps, 90k tbn, 25 tbc
Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, 142 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 156 fps=0.0 q=-1.0 size= 494kB time=00:00:06.18 bitrate= 653.7kbits/
frame= 310 fps=310 q=-1.0 size= 925kB time=00:00:12.39 bitrate= 611.7kbits/
frame= 426 fps=284 q=-1.0 size= 1449kB time=00:00:16.96 bitrate= 700.0kbits/
frame= 592 fps=296 q=-1.0 size= 2441kB time=00:00:23.55 bitrate= 849.0kbits/
frame= 693 fps=276 q=-1.0 size= 3082kB time=00:00:27.62 bitrate= 913.8kbits/
frame= 851 fps=283 q=-1.0 size= 4121kB time=00:00:34.02 bitrate= 992.1kbits/
frame= 991 fps=278 q=-1.0 size= 5037kB time=00:00:39.61 bitrate=1041.7kbits/
frame= 1142 fps=281 q=-1.0 size= 5856kB time=00:00:45.58 bitrate=1052.3kbits/
frame= 1387 fps=298 q=-1.0 size= 6547kB time=00:00:55.44 bitrate= 967.3kbits/
frame= 1525 fps=295 q=-1.0 size= 7274kB time=00:01:00.94 bitrate= 977.6kbits/
|
Big, big thanks goes out to SVNPENN! After numerous program installs, nothing recognized the video, alot of time spent on this.
It literally took me 15mins to get this to work....it's basically spelled out for you here. Thank you once again!
Oh, & once i played the video on nbcolympics.com; video showed up in my youtube acct history, but will not play in youtube (says video "is not available in my country?!"); but there is a standard youtube address so maybe this can help others who know how to sniff it out from there. good luck.
|