Re: BBC radio program, saving the audio
On Mon, Aug 17, 2020 at 04:13:30PM +1000, Craig Sanders wrote: > The file size is nearly a gigabyte. You can use ffmpeg or handbrake > or something to re-encode with x265 to get it smaller (i'd guess that > transcoding the video to x265 would probably shrink the file by a third to > a half. maybe more). If you're only going to watch it once and delete it, > don't bother...but might be worthwhile if you want to archive it for repeat > viewing. I transcoded it with handbrake, using the Matroska H.265 720p30 pre-set, but it only shrunk to 807 MB. It took nearly an hour to transcode...and that's on my 16-core threadripper 1950x. a lot of CPU time and electricity used (and the fans ramped up to deal with the excess heat generated) for not much benefit. This would be significantly faster if my version of handbrake (the debian handbrake 1.3.1+ds1-2 package) supported NVENC for GPU hardware encoding, but it doesn't. It's probably a licensing conflict with GPL vs proprietary nvidia-licensed code that prevents debian from distributing it. I'd have to re-compile the package on my own machine to enable GPU-encoding. Apparently the Ubuntu PPA 1.3.3 version of handbrake has it enabled. Transcoding using the Matroska H.265 576p25 pre-set (i.e. not only transcoding to a better/newer encoder, but also reducing the resolution from 1280x720 to 720x576 - same aspect ratio of 16:9) in handrake reduced the file from 998 MB to 548 MB. There's some reduction in quality, but not much. This took about 40 minutes to transcode. not worth the bother unless you want to archive and are really short on disk space. and even then it would better to use youtube-dl's format and quality options to download a smaller, lower-qualty video in the first placethey've been transcoded from much higher quality master videos. e.g. $ youtube-dl -F https://iview.abc.net.au/show/fight-for-planet-a-our-climate-challenge/series/1/video/DO1904H001S00 [abc.net.au:iview] DO1904H001S00: Downloading JSON metadata [abc.net.au:iview] DO1904H001S00: Downloading webpage [abc.net.au:iview] DO1904H001S00: Downloading m3u8 information [info] Available formats for DO1904H001S00: format code extension resolution note hls-287 mp4320x180 287k , avc1.77.30, mp4a.40.2 hls-491 mp4512x288 491k , avc1.77.30, mp4a.40.2 hls-619 mp4640x360 619k , avc1.77.30, mp4a.40.2 hls-917 mp4800x450 917k , avc1.640028, mp4a.40.2 hls-1307 mp41024x576 1307k , avc1.640028, mp4a.40.2 hls-1969 mp41280x720 1969k , avc1.640028, mp4a.40.2 hls-2099 mp41280x720 2099k , avc1.640028, mp4a.40.2 (best) I'm far from sure, but i'm guessing that the 287k, ... 2099k etc mentioned in the notes field (and also in the hls-* format codes) are the bandwith rates for streaming, from 287 Kilobytes per second to 2.1 Mbps. Anyway, you could download the 576p (1024x576) version with: $ youtube-dl -f hls-1307 --write-sub --all-subs --embed-subs https://iview.abc.net.au/show/fight-for-planet-a-our-climate-challenge/series/1/video/DO1904H001S00 [abc.net.au:iview] DO1904H001S00: Downloading JSON metadata [abc.net.au:iview] DO1904H001S00: Downloading webpage [abc.net.au:iview] DO1904H001S00: Downloading m3u8 information [info] Writing video subtitles to: Series 1 Ep 1-DO1904H001S00.en.vtt [hlsnative] Downloading m3u8 manifest [hlsnative] Total fragments: 397 [download] Destination: Series 1 Ep 1-DO1904H001S00.mp4 [download] 100% of 653.70MiB in 01:09 [ffmpeg] Fixing malformed AAC bitstream in "Series 1 Ep 1-DO1904H001S00.mp4" [ffmpeg] Embedding subtitles in 'Series 1 Ep 1-DO1904H001S00.mp4' Deleting original file Series 1 Ep 1-DO1904H001S00.en.vtt (pass -k to keep) It's larger than my transcoded version because it's h.264 rather than the newer/better h.265but it only took a minute to download with my 100 Mbps NBN connection, much better than 40+ minutes to transcode. The hls-917 (800x450) version is even smaller (438 MB), and still looks OK to watch even when upscaled to fullscreen on my 2560x1440 27" monitor, or my 42" 1920x1080 TV. $ ls -lh Series\ 1\ Ep\ 1-DO1904H001S00*.mp4 -rw-r--r-- 1 cas cas 998M Aug 17 15:16 Series 1 Ep 1-DO1904H001S00-best.mp4 -rw-r--r-- 1 cas cas 623M Aug 18 14:05 Series 1 Ep 1-DO1904H001S00-hls-1307.mp4 -rw-r--r-- 1 cas cas 438M Aug 18 14:10 Series 1 Ep 1-DO1904H001S00-hls-917.mp4 craig -- craig sanders ___ luv-main mailing list luv-main@luv.asn.au https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main
Re: BBC radio program, saving the audio
On Sun, Aug 16, 2020 at 07:48:57AM +1000, Mark Trickett wrote: > 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 while there are lots of options with youtube-dl for selecting download format and quality, a basic download using that URL works well here. e.g. (btw, you can ignore the "HTTP Error 403: Forbidden" warnings - some BBC formats are geo-locked to the UK - for BBC Subscribers only, i guess) $ youtube-dl 'https://www.bbc.co.uk/programmes/m000jtmv' [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 WARNING: Failed to download MPD manifest: HTTP Error 403: Forbidden [bbc.co.uk] m000jtmt: Downloading m3u8 information WARNING: Failed to download m3u8 information: HTTP Error 403: Forbidden [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 WARNING: Failed to download MPD manifest: [bbc.co.uk] m000jtmt: Downloading m3u8 information WARNING: Failed to download m3u8 information: [bbc.co.uk] m000jtmt: Downloading m3u8 information WARNING: Failed to download m3u8 information: [dashsegments] Total fragments: 131 [download] Destination: Watching Us, Week 1-m000jtmt.m4a [download] 100% of 9.60MiB in 01:58 [ffmpeg] Correcting container in "Watching Us, Week 1-m000jtmt.m4a" $ mediainfo /tmp/Watching\ Us\,\ Week\ 1-m000jtmt.m4a General Complete name: /tmp/Watching Us, Week 1-m000jtmt.m4a Format : MPEG-4 Format profile : Base Media Codec ID : isom (isom/iso2/mp41) File size: 9.59 MiB Duration : 13 min 51 s Overall bit rate mode: Constant Overall bit rate : 96.8 kb/s Writing application : Lavf58.45.100 Audio ID : 1 Format : AAC LC SBR Format/Info : Advanced Audio Codec Low Complexity with Spectral Band Replication Commercial name : HE-AAC Format settings : Explicit Codec ID : mp4a-40-2 Duration : 13 min 51 s Bit rate mode: Constant Bit rate : 96.0 kb/s Channel(s) : 2 channels Channel layout : L R Sampling rate: 48.0 kHz Frame rate : 23.438 FPS (2048 SPF) Compression mode : Lossy Stream size : 9.52 MiB (99%) Language : English Default : Yes Alternate group : 1 I tested the download with smplayer, sounds pretty good. > I do have youtube-dl installed,and command runner firefox extension, i've never used youtube-dl with a firefox extension, only from the command line. > but not yet sure how to go about. I would also appreciate examples to > be able to use them to download from ABC iView, I want "saving Planet > A". i'm going to assume you mean "Fight For Planet A: Our Climate Challenge" with Craig Reucassel from The Chaser, because that's the closest thing that that came up when I searched the iview site. ABC iview is a bit trickier. Finding the exact URL for a recording can be difficult. First, start with the main URL for the show: https://iview.abc.net.au/show/fight-for-planet-a-our-climate-challenge Use that with `lynx -dump -listonly -nonumbers` and `grep` to find the actual download URL. $ lynx -dump -listonly -nonumbers 'https://iview.abc.net.au/show/fight-for-planet-a-our-climate-challenge' | grep -i ^http.*/video/ https://www.facebook.com/sharer.php?u=https://iview.abc.net.au/show/fight-for-planet-a-our-climate-challenge/series/1/video/DO1904H001S00 https://twitter.com/share?url=https://iview.abc.net.au/show/fight-for-planet-a-our-climate-challenge/series/1/video/DO1904H001S00=Fight For Planet A: Our Climate Challenge Series
BBC radio program, saving the audio
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. I do have youtube-dl installed,and command runner firefox extension, but not yet sure how to go about. I would also appreciate examples to be able to use them to download from ABC iView, I want "saving Planet A". Regards, Mark Trickett ___ luv-main mailing list luv-main@luv.asn.au https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main