Capturing the 5 live video stream

Kevin Lynch klynchk at gmail.com
Fri Mar 20 18:15:00 PDT 2015


I should have said I'm trying this on my ubuntu machine (Oracle VM) -
understanding I need 2.6 - went off and found

https://launchpad.net/~mc3man/+archive/ubuntu/trusty-media

kevin at kevin-13-04-raring:~$ ffmpeg -h
ffmpeg version 2.6 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg
--enable-avresample --disable-debug --enable-nonfree --enable-gpl
--enable-version3 --enable-libopencore-amrnb
--enable-libopencore-amrwb --disable-decoder=amrnb
--disable-decoder=amrwb --enable-libx264 --enable-libx265
--enable-libfdk-aac --enable-libvorbis --enable-libmp3lame
--enable-libopus --enable-libvpx --enable-libspeex --enable-libass
--enable-avisynth --enable-libsoxr --enable-libxvid
--enable-libvo-aacenc --enable-libvidstab
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.102 /  5. 11.102
  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
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile
options] outfile}...


however when I run the command
kevin at kevin-13-04-raring:~$ 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

I get
[NULL @ 0xb118b80] Unable to find a suitable output format for 'pipe:'
pipe:: Invalid argument
kevin at kevin-13-04-raring:~$

have I made a syntax error with the copying and pasting?

Kevin

On 20 March 2015 at 17:11, Vangelis forthnet
<northmedia1 at the.forthnet.gr> wrote:
> 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...)
>
> _______________________________________________
> get_iplayer mailing list
> get_iplayer at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/get_iplayer



More information about the get_iplayer mailing list