Hi,

On 16/8/20 9:14 am, Rohan McLeod via luv-talk wrote:
Mark Trickett via luv-main wrote:
Hello All,

I heard a BBC documentary on ABC Radio National, in the World Docos
segment. I want the audio to pass on to others, and I would strongly
recommend it to all here. I can get it to play, but not to save, yet.

https://www.bbc.co.uk/programmes/m000jtmv

There are five episodes, and the last is the kicker.


Here is EP1 downloaded using youtube-dl as per the following:


$ ~/bin/youtube-dl -v https://www.bbc.co.uk/programmes/m000jtmv
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.bbc.co.uk/programmes/m000jtmv']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.07.28
[debug] Python version 2.7.13 (CPython) - Linux-4.19.0-5-amd64-x86_64-with-MX-18.3-Continuum
[debug] exe versions: ffmpeg 3.3.4-1mx17, ffprobe 3.3.4-1mx17, phantomjs 2.1.1
[debug] Proxy map: {}
[bbc.co.uk] m000jtmv: Downloading video page
[bbc.co.uk] m000jtmv: Downloading playlist JSON
[bbc.co.uk] m000jtmt: Downloading media selection XML
[bbc.co.uk] m000jtmt: Downloading MPD manifest
[bbc.co.uk] m000jtmt: Downloading m3u8 information
[bbc.co.uk] m000jtmt: Downloading m3u8 information
WARNING: Failed to download m3u8 information: HTTP Error 403: Forbidden
[bbc.co.uk] m000jtmt: Downloading MPD manifest
[bbc.co.uk] m000jtmt: Downloading m3u8 information
[bbc.co.uk] m000jtmt: Downloading m3u8 information
WARNING: Failed to download m3u8 information: HTTP Error 403: Forbidden
[bbc.co.uk] m000jtmt: Downloading MPD manifest
[bbc.co.uk] m000jtmt: Downloading m3u8 information
[bbc.co.uk] m000jtmt: Downloading m3u8 information
WARNING: Failed to download m3u8 information: HTTP Error 403: Forbidden
[bbc.co.uk] m000jtmt: Downloading MPD manifest
[bbc.co.uk] m000jtmt: Downloading m3u8 information
[bbc.co.uk] m000jtmt: Downloading m3u8 information
WARNING: Failed to download m3u8 information: HTTP Error 403: Forbidden
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on u'https://aod-dash-ww-live.bbcfmt.hs.llnwd.net/usp/auth/vod/piff_abr_full_audio/ecbfa6-m000jtmt/vf_m000jtmt_1d06cd1e-29b0-48ea-8d68-30979588a7ef.ism.hlsv2.ism/iptv_hd_abr_v1_nonuk_dash_master.mpd?s=1597520263&e=1597563463&h=200d3202f95893eaac1a7e3963ac06d7'
[dashsegments] Total fragments: 131
[download] Destination: Watching Us, Week 1-m000jtmt.m4a
[download] 100% of 9.60MiB in 02:50
[ffmpeg] Correcting container in "Watching Us, Week 1-m000jtmt.m4a"
[debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:Watching Us, Week 1-m000jtmt.m4a' -c copy -f mp4 'file:Watching Us, Week 1-m000jtmt.temp.m4a'


NB: the '-v' is for verbose, you don't really need that option....



Weeks 2, 3, 4 & 5 links that work just as well.

https://www.bbc.co.uk/programmes/m000jtmw/episodes/player

    https://www.bbc.co.uk/programmes/m000k1ct

    https://www.bbc.co.uk/programmes/m000k94k

    https://www.bbc.co.uk/programmes/m000kfxh

    https://www.bbc.co.uk/programmes/m000kmrl


Downloads 4 and 5 in progress:

$ ls -lhart
total 44M
-rw-r--r--  1 andrewm andrewm 9.6M Aug 16 11:40 Watching Us, Week 1-m000jtmt.m4a
-rw-r--r--  1 andrewm andrewm 9.6M Aug 16 11:57 Watching Us, Week 2-m000k1cr.m4a
drwxr-xr-x 10 andrewm andrewm 4.0K Aug 16 12:00 ..
-rw-r--r--  1 andrewm andrewm 9.6M Aug 16 12:02 Watching Us, Week 3-m000k94j.m4a
-rw-r--r--  1 andrewm andrewm   52 Aug 16 12:05 Watching Us, Week 4-m000kfxg.m4a.ytdl
-rw-r--r--  1 andrewm andrewm 7.8M Aug 16 12:05 Watching Us, Week 4-m000kfxg.m4a.part
-rw-r--r--  1 andrewm andrewm   51 Aug 16 12:05 Watching Us, Week 5-m000kmrk.m4a.ytdl
-rw-r--r--  1 andrewm andrewm 7.0M Aug 16 12:05 Watching Us, Week 5-m000kmrk.m4a.part
drwxr-xr-x  2 andrewm andrewm 4.0K Aug 16 12:05 .


All done:

$ ls -lhart
total 48M
-rw-r--r--  1 andrewm andrewm 9.6M Aug 16 11:40 Watching Us, Week 1-m000jtmt.m4a
-rw-r--r--  1 andrewm andrewm 9.6M Aug 16 11:57 Watching Us, Week 2-m000k1cr.m4a
drwxr-xr-x 10 andrewm andrewm 4.0K Aug 16 12:00 ..
-rw-r--r--  1 andrewm andrewm 9.6M Aug 16 12:02 Watching Us, Week 3-m000k94j.m4a
-rw-r--r--  1 andrewm andrewm 9.5M Aug 16 12:05 Watching Us, Week 4-m000kfxg.m4a
-rw-r--r--  1 andrewm andrewm 9.6M Aug 16 12:05 Watching Us, Week 5-m000kmrk.m4a
drwxr-xr-x  2 andrewm andrewm 4.0K Aug 16 12:05 .



And for iView, I use webdl

    https://bitbucket.org/delx/webdl/src/master/


$ ls -l /home/andrewm/git/delx/webdl/.virtualenv/bin/activate
-rw-r--r-- 1 andrewm andrewm 2094 Mar 28  2017 /home/andrewm/git/delx/webdl/.virtualenv/bin/activate
andrewm@mx-hvk-1:~/f/webdl/abc
$ . /home/andrewm/git/delx/webdl/.virtualenv/bin/activate
(.virtualenv) andrewm@mx-hvk-1:~/f/webdl/abc
$ ls -l /home/andrewm/git/delx/webdl/grabber.py
-rwxr-xr-x 1 andrewm andrewm 1923 Oct 12  2019 /home/andrewm/git/delx/webdl/grabber.py
(.virtualenv) andrewm@mx-hvk-1:~/f/webdl/abc
$ /home/andrewm/git/delx/webdl/grabber.py
  1) ABC iView
  2) SBS
  3) Ten
  0) Back
Choose> 1
  1) By Category
  2) By Channel
  3) Featured
  0) Back
Choose> 3
  1) 75th Anniversary Of The End Of WWII
  2) Fight For Planet A: Our Climate Challenge Series 1 Ep 1
  3) Final Rendezvous
  4) Friday Night Dinner Series 4 Ep 2 The Carpet Cleaner
  5) Gardening Australia Series 31 Ep 22
  6) The Heights Series 2 Ep 23
  7) Insiders Bill Shorten - Shadow Government Services Minister (16/8/2020)
  8) Intelligence Series 1 Ep 1
  9) Last Tango In Halifax Series 5 Ep 1
 10) MotherFatherSon Series 1 Ep 4
 11) Rosehaven Series 4 Ep 1
 12) The Sound Episode 4 Myf Warhurst
  0) Back
Choose> 2
INFO Downloading: Fight For Planet A Our Climate Challenge Series 1 Ep 1.ts
[cli][info] Found matching plugin hls for URL hlsvariant://https://iviewmetered-vh.akamaihd.net/i/playback/_definst_/_video/do1/DO1904H001S00CE1D1_20200806174332_,1500000,1000000,650000,500000,220000,.mp4.csmil/master.m3u8?hdnea=st=1597542478~exp=1597552477~acl=/*~hmac=8b1099e87eadb74db986ac279b17ea3e0940af2bb6ae5c6d4c6acbcb84450666
[cli][info] Available streams: 180p (worst), 288p, 360p, 450p, 576p (best)
[cli][info] Opening stream: 576p (hls)
[download][..llenge Series 1 Ep 1.ts] Written 650.2 MB (1m24s @ 8.4 MB/s)                                                                                                                                                                                                                                                                          
[cli][info] Stream ended
[cli][info] Closing currently open stream...
INFO Converting Fight For Planet A Our Climate Challenge Series 1 Ep 1.ts to mp4
ffmpeg version 3.3.4-1mx17+2 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
  configuration: --prefix=/usr --extra-version=1mx17+2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  WARNING: library configuration mismatch
  avcodec     configuration: --prefix=/usr --extra-version=1mx17+2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc --enable-netcdf
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libavresample   3.  5.  0 /  3.  5.  0
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
Input #0, mpegts, from 'Fight For Planet A Our Climate Challenge Series 1 Ep 1.ts':
  Duration: 01:06:05.08, start: 0.100511, bitrate: 1382 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1024x576 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 137 kb/s
Output #0, mp4, to 'Fight For Planet A Our Climate Challenge Series 1 Ep 1.mp4':
  Metadata:
    encoder         : Lavf57.71.100
    Stream #0:0: Video: h264 (High) ([33][0][0][0] / 0x0021), yuv420p(progressive), 1024x576 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc
    Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 137 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=99125 fps=1279 q=-1.0 Lsize=  637285kB time=01:06:05.03 bitrate=1316.7kbits/s speed=51.2x   
video:571463kB audio:61954kB subtitle:0kB other streams:0kB global headers:1kB muxing overhead: 0.610554%
  1) 75th Anniversary Of The End Of WWII
  2) Fight For Planet A: Our Climate Challenge Series 1 Ep 1
  3) Final Rendezvous
  4) Friday Night Dinner Series 4 Ep 2 The Carpet Cleaner
  5) Gardening Australia Series 31 Ep 22
  6) The Heights Series 2 Ep 23
  7) Insiders Bill Shorten - Shadow Government Services Minister (16/8/2020)
  8) Intelligence Series 1 Ep 1
  9) Last Tango In Halifax Series 5 Ep 1
 10) MotherFatherSon Series 1 Ep 4
 11) Rosehaven Series 4 Ep 1
 12) The Sound Episode 4 Myf Warhurst
  0) Back
Choose> 0
  1) By Category
  2) By Channel
  3) Featured
  0) Back
Choose> 0
  1) ABC iView
  2) SBS
  3) Ten
  0) Back
Choose> 0
(.virtualenv) andrewm@mx-hvk-1:~/f/webdl/abc
$ ls -lh Fight\ For\ Planet\ A\ Our\ Climate\ Challenge\ Series\ 1\ Ep\ 1.mp4
-rw-r--r-- 1 andrewm andrewm 623M Aug 16 11:50 Fight For Planet A Our Climate Challenge Series 1 Ep 1.mp4


Hope that helps.

Cheers

A.