Capturing the 5 live video stream

Vangelis forthnet northmedia1 at the.forthnet.gr
Fri Mar 20 10:11:18 PDT 2015


On Fri Mar 20 15:29:30 GMT 2015, Kevin Lynch wrote:

> can someone advise me a CLI command
> to capture the 5live video stream
> http://www.bbc.co.uk/radio/watchlive/5live

Hello Kevin!

I am in a hurry now, so can't post a detailed analysis :-(

NB:
1. This live video stream is UK-only!
2. You must use an FFmpeg binary of the
    2.5 or 2.6 branch (very important!)

FFmpeg 2.5.2 (x86) courtesy of Zeranoe:

http://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-2.5.2-win32-static.7z

Use the following ffmpeg command to dump:

ffmpeg -loglevel 16 -re -i 
http://vs-hls-uk-live.edgesuite.net/pool_10/live/bbc_radio_five_live_video/bbc_radio_five_live_video.isml/bbc_radio_five_live_video-audio_1=128000-video=1374000.m3u8 - 
c copy bbc_radio_five_live_video.ts

"-loglevel 16" is used to suppress warnings about
wrong timestamps, of the following nature:

[hls,applehttp @ 03f249e0] Invalid timestamps stream=1, pts=7430247792, 
dts=7430251392, size=2302
[mpegts @ 03f9fe80] Invalid DTS: 637200 PTS: 633600 in output stream 0:0, 
replacing by guess

Branches 2.5 & 2.6 replace the wrong pts/dts values with
guesstimates, so the recording can be done without re-encoding!

By pressing "q" the recording stops.

Losslessly remux (post capture) .ts file to MP4 container:

ffmpeg -i bbc_radio_five_live_video.ts -c:v copy -c:a copy  -bsf:a 
aac_adtstoasc bbc_radio_five_live_video.mp4

MediaInfo of end mp4 file:

Format                           : MPEG-4
Format profile                   : Base Media
Codec ID                         : isom
File size                        : 8.95 MiB
Duration                         : 49s 801ms
Overall bit rate                 : 1 507 Kbps
Writing application              : Lavf56.25.101

Video
ID                               : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : High at L3.1
Format settings, CABAC           : Yes
Format settings, ReFrames        : 2 frames
Codec ID                         : avc1
Codec ID/Info                    : Advanced Video Coding
Duration                         : 49s 801ms
Bit rate                         : 1 372 Kbps
Width                            : 896 pixels
Height                           : 504 pixels
Display aspect ratio             : 16:9
Frame rate mode                  : Variable
Frame rate                       : 25.000 fps
Minimum frame rate               : 12.500 fps
Maximum frame rate               : 90 000.000 fps
Standard                         : PAL
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.122
Stream size                      : 8.15 MiB (91%)
Color primaries                  : BT.470-6 System B, BT.470-6 System G, 
BT.601-6 625, BT.1358 625, BT.1700 625 PAL, BT.1700 625 SECAM
Transfer characteristics         : BT.709-5, BT.1361
Matrix coefficients              : BT.601-6 525, BT.1358 525, BT.1700 NTSC, 
SMPTE 170M

Audio
ID                               : 2
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Format profile                   : LC
Codec ID                         : 40
Duration                         : 49s 728ms
Bit rate mode                    : Variable
Bit rate                         : 125 Kbps
Maximum bit rate                 : 134 Kbps
Channel(s)                       : 2 channels
Channel positions                : Front: L R
Sampling rate                    : 48.0 KHz
Compression mode                 : Lossy
Stream size                      : 761 KiB (8%)

Enjoy!

Vangelis.

(PS: I haven't explored the possibility of capturing
via GiP 2.92+ ; suggestions are welcome...) 




More information about the get_iplayer mailing list