Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > Video stream recording
Register FAQ Members List Calendar Mark Forums Read

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-28-2016, 04:03 PM
ehurdler ehurdler is offline
Senior Member
 
Join Date: Feb 2014
Location: NY
Posts: 126
ehurdler is on a distinguished road
Default

cbs.com 720p Stream capturing issues


I am trying to capture streams from cbs.com, Trying 720p version.

I try using the cbs.php script from a few months ago posted by Biezom from http://stream-recorder.com/forum/sho...89&postcount=3

Video I am trying in question is from:
HTML Code:
http://www.cbs.com/shows/madam-secretary/video/wgjNjmnquuZ4PNnKYLytFW2Nc_DK5q93/madam-secretary-on-the-clock/
I run the script:
Code:
php cbs.php http://www.cbs.com/shows/madam-secretary/video/wgjNjmnquuZ4PNnKYLytFW2Nc_DK5q93/madam-secretary-on-the-clock/

I get
Code:
http://link.theplatform.com/s/dJ5BDC/u6CcZigKccDC?mbr=true&manifest=m3u

When you open the link above in the browser it gives you a content.m3u8 file. When you open the file in a text editor it gives:
Code:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:BANDWIDTH=1200000,AVERAGE-BANDWIDTH=1200000,CODECS="mp4a.40.2,avc1.42001f",RESOLUTION=640x360,CLOSED-CAPTIONS=NONE
http://api016-phx.unicornmedia.com/now/media/playlist/bb0b18ba-64f5-4b1b-a29f-0ac252f06b68/77a785f3-5188-4806-b788-0893a61634ed/076ea1a2-a35b-11e4-bfdb-005056837bc7/1ca78f47-ed05-4714-87bd-35ef048baf99/0/0/2600/content.m3u8?visitguid=e052d018-5aaa-42b1-902c-2c0db3097388&segmentlength=10&adsegmentlength=10&protocolversion=3
#EXT-X-STREAM-INF:BANDWIDTH=4400000,AVERAGE-BANDWIDTH=4400000,CODECS="mp4a.40.2,avc1.640028",RESOLUTION=1280x720,CLOSED-CAPTIONS=NONE
http://api016-phx.unicornmedia.com/now/media/playlist/bb0b18ba-64f5-4b1b-a29f-0ac252f06b68/77a785f3-5188-4806-b788-0893a61634ed/468fb310-a585-11e4-bfdb-005056837bc7/1ca78f47-ed05-4714-87bd-35ef048baf99/0/0/2600/content.m3u8?visitguid=e052d018-5aaa-42b1-902c-2c0db3097388&segmentlength=10&adsegmentlength=10&protocolversion=3
#EXT-X-STREAM-INF:BANDWIDTH=2000000,AVERAGE-BANDWIDTH=2000000,CODECS="mp4a.40.2,avc1.4d001f",RESOLUTION=960x540,CLOSED-CAPTIONS=NONE
http://api016-phx.unicornmedia.com/now/media/playlist/bb0b18ba-64f5-4b1b-a29f-0ac252f06b68/77a785f3-5188-4806-b788-0893a61634ed/225bd8bb-a577-11e4-bfdb-005056837bc7/1ca78f47-ed05-4714-87bd-35ef048baf99/0/0/2600/content.m3u8?visitguid=e052d018-5aaa-42b1-902c-2c0db3097388&segmentlength=10&adsegmentlength=10&protocolversion=3
#EXT-X-STREAM-INF:BANDWIDTH=764000,AVERAGE-BANDWIDTH=764000,CODECS="mp4a.40.2,avc1.42001e",RESOLUTION=480x270,CLOSED-CAPTIONS=NONE
http://api016-phx.unicornmedia.com/now/media/playlist/bb0b18ba-64f5-4b1b-a29f-0ac252f06b68/77a785f3-5188-4806-b788-0893a61634ed/74ba4d0b-a347-11e4-bfdb-005056837bc7/1ca78f47-ed05-4714-87bd-35ef048baf99/0/0/2600/content.m3u8?visitguid=e052d018-5aaa-42b1-902c-2c0db3097388&segmentlength=10&adsegmentlength=10&protocolversion=3
#EXT-X-STREAM-INF:BANDWIDTH=512000,AVERAGE-BANDWIDTH=512000,CODECS="mp4a.40.5,avc1.42001e",RESOLUTION=384x216,CLOSED-CAPTIONS=NONE
http://api016-phx.unicornmedia.com/now/media/playlist/bb0b18ba-64f5-4b1b-a29f-0ac252f06b68/77a785f3-5188-4806-b788-0893a61634ed/ac2e7f0b-a345-11e4-bfdb-005056837bc7/1ca78f47-ed05-4714-87bd-35ef048baf99/0/0/2600/content.m3u8?visitguid=e052d018-5aaa-42b1-902c-2c0db3097388&segmentlength=10&adsegmentlength=10&protocolversion=3
#EXT-X-STREAM-INF:BANDWIDTH=264000,AVERAGE-BANDWIDTH=264000,CODECS="mp4a.40.5,avc1.42001e",RESOLUTION=256x144,CLOSED-CAPTIONS=NONE
http://api016-phx.unicornmedia.com/now/media/playlist/bb0b18ba-64f5-4b1b-a29f-0ac252f06b68/77a785f3-5188-4806-b788-0893a61634ed/5ff484d6-a33d-11e4-bfdb-005056837bc7/1ca78f47-ed05-4714-87bd-35ef048baf99/0/0/2600/content.m3u8?visitguid=e052d018-5aaa-42b1-902c-2c0db3097388&segmentlength=10&adsegmentlength=10&protocolversion=3
#EXT-X-STREAM-INF:BANDWIDTH=60000,AVERAGE-BANDWIDTH=60000,CODECS="mp4a.40.5",RESOLUTION=120x68,CLOSED-CAPTIONS=NONE
http://api016-phx.unicornmedia.com/now/media/playlist/bb0b18ba-64f5-4b1b-a29f-0ac252f06b68/77a785f3-5188-4806-b788-0893a61634ed/825b7f2a-a31b-11e4-bfdb-005056837bc7/1ca78f47-ed05-4714-87bd-35ef048baf99/0/0/2600/content.m3u8?visitguid=e052d018-5aaa-42b1-902c-2c0db3097388&segmentlength=10&adsegmentlength=10&protocolversion=3

If I try and capture the 720p version with ffmpeg:

Starts downloading and starts with errors:
Code:
ffmpeg -i "http://once-aws-us-west-2b.unicornmedia.com/now/media/playlist/bb0b18ba-64f5-4b1b-a29f-0ac252f06b68/77a785f3-5188-4806-b788-0893a61634ed/468fb310-a585-11e4-bfdb-005056837bc7/1ca78f47-ed05-4714-87bd-35ef048baf99/0/0/2600/content.m3u8?visitguid=96b18fcd-5445-499e-98a8-eb771378a923&segmentlength=10&adsegmentlength=10&protocolversion=3" -c copy -absf aac_adtstoasc "name of file.mp4"
ffmpeg version 2.5.2 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jan  3 2015 16:30:41 with Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.5.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libvo-aacenc --enable-openssl --enable-nonfree --enable-vda
  libavutil      54. 15.100 / 54. 15.100
  libavcodec     56. 13.100 / 56. 13.100
  libavformat    56. 15.102 / 56. 15.102
  libavdevice    56.  3.100 / 56.  3.100
  libavfilter     5.  2.103 /  5.  2.103
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, hls,applehttp, from 'http://once-aws-us-west-2b.unicornmedia.com/now/media/playlist/bb0b18ba-64f5-4b1b-a29f-0ac252f06b68/77a785f3-5188-4806-b788-0893a61634ed/468fb310-a585-11e4-bfdb-005056837bc7/1ca78f47-ed05-4714-87bd-35ef048baf99/0/0/2600/content.m3u8?visitguid=96b18fcd-5445-499e-98a8-eb771378a923&segmentlength=10&adsegmentlength=10&protocolversion=3':
  Duration: 00:54:32.17, start: 1.466733, bitrate: 0 kb/s
  Program 0 
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 248 kb/s
Output #0, mp4, to 'name of file.mp4':
  Metadata:
    encoder         : Lavf56.15.102
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 90k tbn, 90k tbc
    Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 248 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=   63 fps=0.0 q=-1.0 size=    1366kB time=00:00:02.02 bitrate=5523.5kbits/frame=  160 fps=154 q=-1.0 size=    2858kB time=00:00:05.23 bitrate=4469.2kbits/frame=  169 fps=108 q=-1.0 size=    3068kB time=00:00:05.58 bitrate=4495.9kbits/frame=  218 fps=105 q=-1.0 size=    3926kB time=00:00:07.18 bitrate=4473.3kbits/frame=  269 fps= 88 q=-1.0 size=    4827kB time=00:00:08.89 bitrate=4445.3kbits/frame=  281 fps= 78 q=-1.0 size=    5037kB time=00:00:09.28 bitrate=4446.8kbits/frame=  330 fps= 80 q=-1.0 size=    5673kB ...

time=00:00:30.16 bitrate=4217.3kbits/[mp4 @ 0x7f9daa01e600] Non-monotonous DTS in output stream 0:0; previous: 2696694, current: -6006; changing to 2696695. This may result in incorrect timestamps in the output file.
Eventually this will finish and give a file with the full episode time, But it has an ad for the first 30 seconds and it is cutting off the beginning 30 seconds of the video.

To Be Continued....

Last edited by ehurdler : 03-28-2016 at 05:06 PM.
Reply With Quote
 
Tags: , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 05:19 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons