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

cbs.com 720p Stream capturing issues

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

ehurdler 03-28-2016 03:03 PM

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....

ehurdler 03-28-2016 03:05 PM

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.

ehurdler 03-28-2016 03:07 PM

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.

aliakrep 03-29-2016 05:45 AM

Re: cbs.com issues


 
getflv its work.

biezom 03-29-2016 06:06 AM

Re: cbs.com 720p Stream capturing issues


 
Quote:

Originally Posted by ehurdler (Post 83471)
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

aliakrep 03-29-2016 07:00 AM

Re: cbs.com 720p Stream capturing issues


 
dear biezom.
I could not send you a private message.

Klorkz 03-29-2016 07:33 AM

Re: cbs.com 720p Stream capturing issues


 
livestreamer works like a charm.

ehurdler 03-29-2016 09:58 AM

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)


slim10 03-29-2016 10:50 AM

Re: cbs.com 720p Stream capturing issues


 
Quote:

Originally Posted by ehurdler (Post 83484)
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.

biezom 03-29-2016 11:03 AM

Re: cbs.com 720p Stream capturing issues


 
Quote:

Originally Posted by ehurdler (Post 83471)
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/"


All times are GMT -6. The time now is 01:39 PM.