ok - I reread the instructions and suppressed the space Vangelis suggested and it works
so here are the commands that work 2004 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 and the remuxing of the stream 2006 ffmpeg -i bbc_radio_five_live_video.ts -c:v copy -c:a copy -bsf:a aac_adtstoasc bbc_radio_five_live_video.mp4 created two shell scripts 1) 5livewebcamcap - capture a feed and include the time the feed started in the filename 2) 5livewebcamremux - create the mp4 version of the files and move the .ts to a subfolder "done" # 5livewebcamcap cd /media/sf_iPlayer_Recordings/avi5livewebcam NOW=`date +%Y-%m-%d-%A-%H%M%S` 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$NOW.ts 5livewebcamremux cd /media/sf_iPlayer_Recordings/avi5livewebcam # and the remuxing of the stream for file in *.ts do ffmpeg -i $file -c:v copy -c:a copy -bsf:a aac_adtstoasc $file.mp4 mv $file done done On 20 March 2015 at 17:11, Vangelis forthnet <[email protected]> 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 : [email protected] > 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 > [email protected] > http://lists.infradead.org/mailman/listinfo/get_iplayer _______________________________________________ get_iplayer mailing list [email protected] http://lists.infradead.org/mailman/listinfo/get_iplayer

