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

Reply Post New Thread
 
Thread Tools Display Modes
  #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
  #2  
Old 03-28-2016, 04:05 PM
ehurdler ehurdler is offline
Senior Member
 
Join Date: Feb 2014
Location: NY
Posts: 126
ehurdler is on a distinguished road
Default

Re: cbs.com issues


Part 2, sorry, long post had to do this in parts....

OR, if i play the video and use ad-block Plus ,filter for link.platform.com, I get the following:

Code:
http://link.theplatform.com/s/dJ5BDC/JkCKeaHrHIRN?format=SMIL&manifest=f4m&Tracking=true&mbr=true
Paste above link in browser, gives a "JkCKeaHrHIRN".
Open this file in a text editor it will gives me the video src url:
Code:
http://cbsent-vh.akamaihd.net/z/temp_hd_gallery_video/CBS_Production_Outlet_VMS/video_robot/CBS_Production_Entertainment/2016/03/25/652261443718/CBS_MADAM_SECRETARY_218_CONTENT_CIAN_vr_20M_77,8907_796,9091_1928,8907_1296,8907_496,8907_364,.mp4.csmil/manifest.f4m?hdnea=acl=/z/temp_hd_gallery_video/CBS_Production_Outlet_VMS/video_robot/CBS_Production_Entertainment/2016/03/25/652261443718/CBS_MADAM_SECRETARY_218_CONTENT_CIAN_vr_20M_77*~exp=1459184326~hmac=9dac99b41903d104d484e7bd53027b1110d289a4c69d7b5f71d8be838c5aae38

Trying to capture the stream with the url above with livestreamer:

Code:
livestreamer "hlsvariant://http://cbsent-vh.akamaihd.net/z/temp_hd_gallery_video/CBS_Production_Outlet_VMS/video_robot/CBS_Production_Entertainment/2016/03/25/652261443718/CBS_MADAM_SECRETARY_218_CONTENT_CIAN_vr_20M_77,8907_796,9091_1928,8907_1296,8907_496,8907_364,.mp4.csmil/manifest.f4m?hdnea=acl=/z/temp_hd_gallery_video/CBS_Production_Outlet_VMS/video_robot/CBS_Production_Entertainment/2016/03/25/652261443718/CBS_MADAM_SECRETARY_218_CONTENT_CIAN_vr_20M_77*~exp=1459184326~hmac=9dac99b41903d104d484e7bd53027b1110d289a4c69d7b5f71d8be838c5aae38" -o name2.mp4
[cli][info] Found matching plugin stream for URL hlsvariant://http://cbsent-vh.akamaihd.net/z/temp_hd_gallery_video/CBS_Production_Outlet_VMS/video_robot/CBS_Production_Entertainment/2016/03/25/652261443718/CBS_MADAM_SECRETARY_218_CONTENT_CIAN_vr_20M_77,8907_796,9091_1928,8907_1296,8907_496,8907_364,.mp4.csmil/manifest.f4m?hdnea=acl=/z/temp_hd_gallery_video/CBS_Production_Outlet_VMS/video_robot/CBS_Production_Entertainment/2016/03/25/652261443718/CBS_MADAM_SECRETARY_218_CONTENT_CIAN_vr_20M_77*~exp=1459184326~hmac=9dac99b41903d104d484e7bd53027b1110d289a4c69d7b5f71d8be838c5aae38
error: Unable to open URL: http://cbsent-vh.akamaihd.net/z/temp_hd_gallery_video/CBS_Production_Outlet_VMS/video_robot/CBS_Production_Entertainment/2016/03/25/652261443718/CBS_MADAM_SECRETARY_218_CONTENT_CIAN_vr_20M_77,8907_796,9091_1928,8907_1296,8907_496,8907_364,.mp4.csmil/manifest.f4m?hdnea=acl=/z/temp_hd_gallery_video/CBS_Production_Outlet_VMS/video_robot/CBS_Production_Entertainment/2016/03/25/652261443718/CBS_MADAM_SECRETARY_218_CONTENT_CIAN_vr_20M_77*~exp=1459184326~hmac=9dac99b41903d104d484e7bd53027b1110d289a4c69d7b5f71d8be838c5aae38 (403 Client Error: Forbidden)
or with ffmpeg:
Code:
ffmpeg -i "http://cbsent-vh.akamaihd.net/z/temp_hd_gallery_video/CBS_Production_Outlet_VMS/video_robot/CBS_Production_Entertainment/2016/03/25/652261443718/CBS_MADAM_SECRETARY_218_CONTENT_CIAN_vr_20M_77,8907_796,9091_1928,8907_1296,8907_496,8907_364,.mp4.csmil/manifest.f4m?hdnea=acl=/z/temp_hd_gallery_video/CBS_Production_Outlet_VMS/video_robot/CBS_Production_Entertainment/2016/03/25/652261443718/CBS_MADAM_SECRETARY_218_CONTENT_CIAN_vr_20M_77*~exp=1459184326~hmac=9dac99b41903d104d484e7bd53027b1110d289a4c69d7b5f71d8be838c5aae38" -c copy -absf aac_adtstoasc "name2.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
[http @ 0x7fab8852e4c0] HTTP error 403 Forbidden
http://cbsent-vh.akamaihd.net/z/temp_hd_gallery_video/CBS_Production_Outlet_VMS/video_robot/CBS_Production_Entertainment/2016/03/25/652261443718/CBS_MADAM_SECRETARY_218_CONTENT_CIAN_vr_20M_77,8907_796,9091_1928,8907_1296,8907_496,8907_364,.mp4.csmil/manifest.f4m?hdnea=acl=/z/temp_hd_gallery_video/CBS_Production_Outlet_VMS/video_robot/CBS_Production_Entertainment/2016/03/25/652261443718/CBS_MADAM_SECRETARY_218_CONTENT_CIAN_vr_20M_77*~exp=1459184326~hmac=9dac99b41903d104d484e7bd53027b1110d289a4c69d7b5f71d8be838c5aae38: Server returned 403 Forbidden (access denied)


I have found using HDS link Detector does work, but will only give at best 480p, which is not what I want. I am looking for 720p.
Reply With Quote
  #3  
Old 03-28-2016, 04:07 PM
ehurdler ehurdler is offline
Senior Member
 
Join Date: Feb 2014
Location: NY
Posts: 126
ehurdler is on a distinguished road
Default

Re: cbs.com issues


Please if there is any way to get 720p versions captured again I would love help in getting these. Thank you in Advance.
Reply With Quote
  #4  
Old 03-29-2016, 06:45 AM
aliakrep aliakrep is offline
Junior Member
 
Join Date: Jun 2011
Location: Turkey
Posts: 19
aliakrep is on a distinguished road
Default

Re: cbs.com issues


getflv its work.
Reply With Quote
  #5  
Old 03-29-2016, 07:06 AM
biezom biezom is offline
Senior Member
 
Join Date: Sep 2014
Posts: 1,025
biezom is on a distinguished road
Default

Re: cbs.com 720p Stream capturing issues


Quote:
Originally Posted by ehurdler View Post
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
hi

Code:
livestreamer "hlsvariant://http://link.theplatform.com/s/dJ5BDC/u6CcZigKccDC?mbr=true&manifest=m3u" best -o video.ts
Reply With Quote
  #6  
Old 03-29-2016, 08:00 AM
aliakrep aliakrep is offline
Junior Member
 
Join Date: Jun 2011
Location: Turkey
Posts: 19
aliakrep is on a distinguished road
Default

Re: cbs.com 720p Stream capturing issues


dear biezom.
I could not send you a private message.
Reply With Quote
  #7  
Old 03-29-2016, 08:33 AM
Klorkz Klorkz is offline
Junior Member
 
Join Date: Jun 2012
Posts: 1
Klorkz is on a distinguished road
Default

Re: cbs.com 720p Stream capturing issues


livestreamer works like a charm.
Reply With Quote
  #8  
Old 03-29-2016, 10:58 AM
ehurdler ehurdler is offline
Senior Member
 
Join Date: Feb 2014
Location: NY
Posts: 126
ehurdler is on a distinguished road
Default

Re: cbs.com 720p Stream capturing issues


Biezom:
This does work. But it gives a file with commercials and isn't fully playable. For me anyways. Can you double check on the file it gives you? I tried with livestreamer, and ffmpeg. I get a series of errors either way. I get a few of the following errors during:
Code:
 livestreamer "hlsvariant://http://link.theplatform.com/s/dJ5BDC/u6CcZigKccDC?mbr=true&manifest=m3u" best -o video.ts
[cli][info] Found matching plugin stream for URL hlsvariant://http://link.theplatform.com/s/dJ5BDC/u6CcZigKccDC?mbr=true&manifest=m3u
[cli][info] Available streams: 144p, 216p, 270p, 360p, 540p, 68p (worst), 720p (best)
[cli][info] Opening stream: 720p (hls)
[download][video.ts] Written 1.66 GB (7m6s @ 4.9 MB/s)                          [stream.hls][error] Failed to open segment 297: Unable to open URL: http://api327-phx.unicornmedia.com/now/media/segment/bb0b18ba-64f5-4b1b-a29f-0ac252f06b68/77a785f3-5188-4806-b788-0893a61634ed/468fb310-a585-11e4-bfdb-005056837bc7/93476d66-8777-4970-8779-307471a324c2/0/0/0/content.ts?visitguid=2889c0d1-7d94-448c-b153-4c5dfd7c323b&baseguid=1ca78f47-ed05-4714-87bd-35ef048baf99&bc_a=True&bc_apos=2570&bc_apla=2&bc_i=13&streamDuration=3193&startsegmentseconds=0&endsegmentseconds=0&basemediaitemguid=1ca78f47-ed05-4714-87bd-35ef048baf99 (500 Server Error: Internal Server Error)
[stream.hls][error] Failed to open segment 297: Unable to open URL: http://api327-phx.unicornmedia.com/now/media/segment/bb0b18ba-64f5-4b1b-a29f-0ac252f06b68/77a785f3-5188-4806-b788-0893a61634ed/468fb310-a585-11e4-bfdb-005056837bc7/93476d66-8777-4970-8779-307471a324c2/0/0/0/content.ts?visitguid=2889c0d1-7d94-448c-b153-4c5dfd7c323b&baseguid=1ca78f47-ed05-4714-87bd-35ef048baf99&bc_a=True&bc_apos=2570&bc_apla=2&bc_i=13&streamDuration=3193&startsegmentseconds=0&endsegmentseconds=0&basemediaitemguid=1ca78f47-ed05-4714-87bd-35ef048baf99 (500 Server Error: Internal Server Error)
Reply With Quote
  #9  
Old 03-29-2016, 11:50 AM
slim10 slim10 is offline
Member
 
Join Date: Jun 2013
Posts: 47
slim10 is on a distinguished road
Default

Re: cbs.com 720p Stream capturing issues


Quote:
Originally Posted by ehurdler View Post
Biezom:
This does work. But it gives a file with commercials and isn't fully playable. For me anyways. Can you double check on the file it gives you? I tried with livestreamer, and ffmpeg. I get a series of errors either way. I get a few of the following errors during:
Code:
 livestreamer "hlsvariant://http://link.theplatform.com/s/dJ5BDC/u6CcZigKccDC?mbr=true&manifest=m3u" best -o video.ts
[cli][info] Found matching plugin stream for URL hlsvariant://http://link.theplatform.com/s/dJ5BDC/u6CcZigKccDC?mbr=true&manifest=m3u
[cli][info] Available streams: 144p, 216p, 270p, 360p, 540p, 68p (worst), 720p (best)
[cli][info] Opening stream: 720p (hls)
[download][video.ts] Written 1.66 GB (7m6s @ 4.9 MB/s)                          [stream.hls][error] Failed to open segment 297: Unable to open URL: http://api327-phx.unicornmedia.com/now/media/segment/bb0b18ba-64f5-4b1b-a29f-0ac252f06b68/77a785f3-5188-4806-b788-0893a61634ed/468fb310-a585-11e4-bfdb-005056837bc7/93476d66-8777-4970-8779-307471a324c2/0/0/0/content.ts?visitguid=2889c0d1-7d94-448c-b153-4c5dfd7c323b&baseguid=1ca78f47-ed05-4714-87bd-35ef048baf99&bc_a=True&bc_apos=2570&bc_apla=2&bc_i=13&streamDuration=3193&startsegmentseconds=0&endsegmentseconds=0&basemediaitemguid=1ca78f47-ed05-4714-87bd-35ef048baf99 (500 Server Error: Internal Server Error)
[stream.hls][error] Failed to open segment 297: Unable to open URL: http://api327-phx.unicornmedia.com/now/media/segment/bb0b18ba-64f5-4b1b-a29f-0ac252f06b68/77a785f3-5188-4806-b788-0893a61634ed/468fb310-a585-11e4-bfdb-005056837bc7/93476d66-8777-4970-8779-307471a324c2/0/0/0/content.ts?visitguid=2889c0d1-7d94-448c-b153-4c5dfd7c323b&baseguid=1ca78f47-ed05-4714-87bd-35ef048baf99&bc_a=True&bc_apos=2570&bc_apla=2&bc_i=13&streamDuration=3193&startsegmentseconds=0&endsegmentseconds=0&basemediaitemguid=1ca78f47-ed05-4714-87bd-35ef048baf99 (500 Server Error: Internal Server Error)

Use FFmpeg to change the TS file into an MP4:
Code:
ffmpeg -i video.ts -c copy -bsf:a aac_adtstoasc video.mp4
That will probably fix the playability problem.
Reply With Quote
  #10  
Old 03-29-2016, 12:03 PM
biezom biezom is offline
Senior Member
 
Join Date: Sep 2014
Posts: 1,025
biezom is on a distinguished road
Default

Re: cbs.com 720p Stream capturing issues


Quote:
Originally Posted by ehurdler View Post
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
ok disable adsegment adsegmentlength=10 >>>> adsegmentlength=0
Code:
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=c9b69467-b763-4459-a083-8eb6742c1aa2&segmentlength=10&adsegmentlength=0&protocolversion=3

so


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=c9b69467-b763-4459-a083-8eb6742c1aa2&segmentlength=10&adsegmentlength=0&protocolversion=3" -c copy video-by-ffmpeg.ts

or


Code:
livestreamer "hls://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=c9b69467-b763-4459-a083-8eb6742c1aa2&segmentlength=10&adsegmentlength=0&protocolversion=3" best -o video-by-livestreamer.ts

with your own and recent link of cource

you can use youtube-dl too


Code:
youtube-dl  "http://www.cbs.com/shows/madam-secretary/video/wgjNjmnquuZ4PNnKYLytFW2Nc_DK5q93/madam-secretary-on-the-clock/"
Reply With Quote
Reply Post New Thread
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 03:10 AM.


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