[qtube] Webif front end for youtube-dl

That would need to be a youtube-dl wishlist item,
qtube doesn't know what is happening inside youtube-dl, is there any way within the process options to make ffmpeg a bit more verbose (often it is far too verbose)
 
I have tried to use WebIF queue but it no longer works. I tried on more than one item from iplayer, ITV and Youtube.
I may have stumbled on a bug in qtube.
I recently did a manual update of youtube-dl, but it looks like it no longer works with qtube.
This works via command line youtube-dl -v https://www.bbc.co.uk/iplayer/episode/m000vbrh/bluey-series-1-1-the-magic-xylophone
But it seems to fail when started via WebIF qtube.
The last entry in qtube.log
Code:
23/10/2022 06:34:02 - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
23/10/2022 06:34:02 - Starting queued download URL https://www.bbc.co.uk/iplayer/episode/m000vbrh/bluey-series-1-1-the-magic-xylophone Options -v --no-progress QID 2725
23/10/2022 06:34:50 - [bbc.co.uk] m000vbrh: Downloading video page
23/10/2022 06:34:52 - [bbc.co.uk] m000vbrh: Downloading playlist JSON
23/10/2022 06:34:53 - [bbc.co.uk] m000vbrg: Downloading media selection JSON
23/10/2022 06:34:53 - [bbc.co.uk] m000vbrg: Downloading m3u8 information
23/10/2022 06:34:54 - [bbc.co.uk] m000vbrg: Downloading m3u8 information
23/10/2022 06:34:54 - [bbc.co.uk] m000vbrg: Downloading m3u8 information
23/10/2022 06:34:54 - [bbc.co.uk] m000vbrg: Downloading m3u8 information
23/10/2022 06:34:55 - [bbc.co.uk] m000vbrg: Downloading m3u8 information
23/10/2022 06:34:55 - [bbc.co.uk] m000vbrg: Downloading m3u8 information
23/10/2022 06:34:56 - [bbc.co.uk] m000vbrg: Downloading MPD manifest
23/10/2022 06:34:57 - [bbc.co.uk] m000vbrg: Downloading MPD manifest
23/10/2022 06:34:57 - [bbc.co.uk] m000vbrg: Downloading MPD manifest
23/10/2022 06:34:58 - [bbc.co.uk] m000vbrg: Downloading MPD manifest
23/10/2022 06:34:58 - [bbc.co.uk] m000vbrg: Downloading MPD manifest
23/10/2022 06:34:59 - [bbc.co.uk] m000vbrg: Downloading MPD manifest
23/10/2022 06:35:23 - [debug] Invoking downloader on u'https://vod-dash-uk.live.cf.md.bbci.co.uk/usp/auth/vod/piff_abr_full_hd/5ad96a-m000vbrg/vf_m000vbrg_91133202-87e8-4fbe-b942-25af230f8d58.ism/iptv_hd_abr_v1_dash_master.mpd?Expires=1666524895&Signature=FAg9DaD9vIpoxN9j5eFwyLOnHV4zJX9XXC0q3y2~yDYwnUx5dk5r5RQweYlKwB0A3~Ulw84IEUDUPwhj-MipxerTAsqDmfQpQinmHXL5qVRJjtvX1X2VQOR3c1ZXJy9B1Cl4gmav9bleAiO4T8-AfMXIZ~v4yT4JpRhINs76g5jAmOLqUXTOG8KnR65ZphH7h9VnAs-yNIrchxSQba1T7tE~O7eoivLslCffVdgbIyGKCBGMg9NmrRdqpQCqRHBQb0AZ2GW3cm9sViaKYaNJCorVE4bq7YeZffBSnmy-cqERmy28srsFHX6j5vtWODNf8fEcZrvn42uK~ear43Ye0g__&Key-Pair-Id=K2VWLYKQ4HU1FJ'
23/10/2022 06:35:24 - [dashsegments] Total fragments: 111
23/10/2022 06:35:24 - [download] Destination: Bluey, Series 1, The Magic Xylophone-m000vbrg.fmf_cloudfront-video=5070000-1.mp4
23/10/2022 06:35:25 - Caught error: [debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--newline', u'-v', u'--no-progress', u'https://www.bbc.co.uk/iplayer/episode/m000vbrh/bluey-series-1-1-the-magic-xylophone']
[debug] Encodings: locale ASCII, fs ASCII, out None, pref ASCII
[debug] youtube-dl version 2022.09.03
[debug] Python version 2.7.1 (CPython) - Linux-2.6.18-7.1-7405b0-smp-with-libc0
[debug] exe versions: ffmpeg 4.1, ffprobe 4.1
[debug] Proxy map: {}
[debug] Default format spec: bestvideo+bestaudio/best
ERROR: unable to download video
Traceback (most recent call last):
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 2081, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 809, in extract_info
    return self.__extract_info(url, ie, download, extra_info, process)
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 816, in wrapper
    return func(self, *args, **kwargs)
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 848, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 882, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 1693, in process_video_result
    self.process_info(new_info)
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 1990, in process_info
    raise UnavailableVideoError(err)
UnavailableVideoError: [Errno 30] Read-only file system: 'Bluey, Series 1, The Magic Xylophone-m000vbrg.fmf_cloudfront-video=5070000-1.mp4.ytdl'

23/10/2022 06:35:25 - -code 1 -level 0 -errorinfo {{} /mod/webif/plugin/qtube/queue.hook 29} -errorcode {CHILDSTATUS 3796 1}

edit1: It may be an issue with the way my HDR is set up as I tried installing older version of youtube-dl but it didn't resolve things.
edit2: I'd made an error earlier in trying to revert to previous version of youtube-dl (it was still using the latest version). I have since reverted to youtube-dl (2021.12.17b) and it works ok in WebIF queue
 
Last edited:
Also having problems with Qtube/youtube-dl. Both BBC iPlayer and BBC Sounds queued downloads are failing with "Caught error: ERROR: unable to download video"

Last successful downloads were done on 11th October.


Code:
21/10/2022 14:30:03 - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21/10/2022 14:30:03 - Starting queued download URL https://www.bbc.co.uk/sounds/play/m0008wtt Options --no-progress QID 5436
21/10/2022 14:30:30 - [bbc.co.uk] m0008wtt: Downloading video page
21/10/2022 14:30:31 - [bbc.co.uk] m0008wtt: Downloading playlist JSON
21/10/2022 14:30:31 - [bbc.co.uk] m0008wts: Downloading media selection JSON
21/10/2022 14:30:31 - [bbc.co.uk] m0008wts: Downloading MPD manifest
21/10/2022 14:30:32 - [bbc.co.uk] m0008wts: Downloading MPD manifest
21/10/2022 14:30:33 - [bbc.co.uk] m0008wts: Downloading m3u8 information
21/10/2022 14:30:33 - [bbc.co.uk] m0008wts: Downloading m3u8 information
21/10/2022 14:30:33 - [bbc.co.uk] m0008wts: Downloading MPD manifest
21/10/2022 14:30:33 - [bbc.co.uk] m0008wts: Downloading MPD manifest
21/10/2022 14:30:34 - [bbc.co.uk] m0008wts: Downloading m3u8 information
21/10/2022 14:30:34 - [bbc.co.uk] m0008wts: Downloading m3u8 information
21/10/2022 14:30:53 - [dashsegments] Total fragments: 262
21/10/2022 14:30:53 - [download] Destination: The Museum of Curiosity, Series 14, Episode 1-m0008wts.m4a
21/10/2022 14:30:53 - Caught error: ERROR: unable to download video
21/10/2022 14:30:53 - -code 1 -level 0 -errorinfo {{} /mod/webif/plugin/qtube/queue.hook 29} -errorcode {CHILDSTATUS 5537 1}
21/10/2022 14:51:03 - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21/10/2022 14:51:03 - Starting queued download URL https://www.bbc.co.uk/iplayer/episode/m0014t73/qi-series-s-vg-part-ii Options --no-progress QID 5437
21/10/2022 14:51:29 - [bbc.co.uk] m0014t73: Downloading video page
21/10/2022 14:51:30 - [bbc.co.uk] m0014t73: Downloading playlist JSON
21/10/2022 14:51:30 - [bbc.co.uk] m0014t72: Downloading media selection JSON
21/10/2022 14:51:31 - [bbc.co.uk] m0014t72: Downloading MPD manifest
21/10/2022 14:51:32 - [bbc.co.uk] m0014t72: Downloading MPD manifest
21/10/2022 14:51:32 - [bbc.co.uk] m0014t72: Downloading MPD manifest
21/10/2022 14:51:33 - [bbc.co.uk] m0014t72: Downloading MPD manifest
21/10/2022 14:51:33 - [bbc.co.uk] m0014t72: Downloading MPD manifest
21/10/2022 14:51:34 - [bbc.co.uk] m0014t72: Downloading MPD manifest
21/10/2022 14:51:35 - [bbc.co.uk] m0014t72: Downloading m3u8 information
21/10/2022 14:51:35 - [bbc.co.uk] m0014t72: Downloading m3u8 information
21/10/2022 14:51:35 - [bbc.co.uk] m0014t72: Downloading m3u8 information
21/10/2022 14:51:35 - [bbc.co.uk] m0014t72: Downloading m3u8 information
21/10/2022 14:51:36 - [bbc.co.uk] m0014t72: Downloading m3u8 information
21/10/2022 14:51:36 - [bbc.co.uk] m0014t72: Downloading m3u8 information
21/10/2022 14:52:21 - [dashsegments] Total fragments: 460
21/10/2022 14:52:21 - [download] Destination: QI, Series S, VG - Part II-m0014t72.fmf_cloudfront-video=5070000-1.mp4
21/10/2022 14:52:21 - Caught error: ERROR: unable to download video
21/10/2022 14:52:21 - -code 1 -level 0 -errorinfo {{} /mod/webif/plugin/qtube/queue.hook 29} -errorcode {CHILDSTATUS 2647 1}
22/10/2022 08:47:02 - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
22/10/2022 08:47:02 - Starting queued download URL https://www.bbc.co.uk/sounds/play/b07609r8 Options --no-progress QID 5438
22/10/2022 08:47:36 - [bbc.co.uk] b07609r8: Downloading video page
22/10/2022 08:47:37 - [bbc.co.uk] b07609r8: Downloading playlist JSON
22/10/2022 08:47:38 - [bbc.co.uk] b07609qy: Downloading media selection JSON
22/10/2022 08:47:38 - [bbc.co.uk] b07609qy: Downloading MPD manifest
22/10/2022 08:47:39 - [bbc.co.uk] b07609qy: Downloading MPD manifest
22/10/2022 08:47:40 - [bbc.co.uk] b07609qy: Downloading m3u8 information
22/10/2022 08:47:40 - [bbc.co.uk] b07609qy: Downloading m3u8 information
22/10/2022 08:47:40 - [bbc.co.uk] b07609qy: Downloading MPD manifest
22/10/2022 08:47:41 - [bbc.co.uk] b07609qy: Downloading MPD manifest
22/10/2022 08:47:41 - [bbc.co.uk] b07609qy: Downloading m3u8 information
22/10/2022 08:47:42 - [bbc.co.uk] b07609qy: Downloading m3u8 information
22/10/2022 08:48:30 - [dashsegments] Total fragments: 845
22/10/2022 08:48:30 - [download] Destination: Jonathan Smith - Abandoned-b07609qy.m4a
22/10/2022 08:48:31 - Caught error: ERROR: unable to download video
22/10/2022 08:48:31 - -code 1 -level 0 -errorinfo {{} /mod/webif/plugin/qtube/queue.hook 29} -errorcode {CHILDSTATUS 1860 1}
 
Last edited:
In a successful download the destination is where I would expect it be saved, i.e. /My Video/[Downloads]

Code:
11/10/2022 18:24:22 - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
11/10/2022 18:24:22 - Starting queued download URL https://www.bbc.co.uk/programmes/m000wm4d Options --no-progress QID 5413
11/10/2022 18:24:48 - [bbc.co.uk] m000wm4d: Downloading video page
11/10/2022 18:24:49 - [bbc.co.uk] m000wm4d: Downloading playlist JSON
11/10/2022 18:24:50 - [bbc.co.uk] m000wm4c: Downloading media selection JSON
11/10/2022 18:24:50 - [bbc.co.uk] m000wm4c: Downloading MPD manifest
11/10/2022 18:24:51 - [bbc.co.uk] m000wm4c: Downloading MPD manifest
11/10/2022 18:24:51 - [bbc.co.uk] m000wm4c: Downloading m3u8 information
11/10/2022 18:24:51 - [bbc.co.uk] m000wm4c: Downloading m3u8 information
11/10/2022 18:24:52 - [bbc.co.uk] m000wm4c: Downloading MPD manifest
11/10/2022 18:24:52 - [bbc.co.uk] m000wm4c: Downloading MPD manifest
11/10/2022 18:24:52 - [bbc.co.uk] m000wm4c: Downloading m3u8 information
11/10/2022 18:24:52 - [bbc.co.uk] m000wm4c: Downloading m3u8 information
11/10/2022 18:24:59 - [dashsegments] Total fragments: 262
11/10/2022 18:24:59 - [download] Destination: /mnt/hd2/My Video/[Downloads]/It_s_a_Fair_Cop_Series_6_Policing_Covid.m4a
11/10/2022 18:26:34 - [download] Download completed
11/10/2022 18:26:35 - [ffmpeg] Correcting container in "/mnt/hd2/My Video/[Downloads]/It_s_a_Fair_Cop_Series_6_Policing_Covid.m4a"
11/10/2022 18:26:58 - Completed queued download of https://www.bbc.co.uk/programmes/m000wm4d Options --no-progress

But in the failed download the destination does not include the path

Code:
21/10/2022 14:51:03 - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21/10/2022 14:51:03 - Starting queued download URL https://www.bbc.co.uk/iplayer/episode/m0014t73/qi-series-s-vg-part-ii Options --no-progress QID 5437
21/10/2022 14:51:29 - [bbc.co.uk] m0014t73: Downloading video page
21/10/2022 14:51:30 - [bbc.co.uk] m0014t73: Downloading playlist JSON
21/10/2022 14:51:30 - [bbc.co.uk] m0014t72: Downloading media selection JSON
21/10/2022 14:51:31 - [bbc.co.uk] m0014t72: Downloading MPD manifest
21/10/2022 14:51:32 - [bbc.co.uk] m0014t72: Downloading MPD manifest
21/10/2022 14:51:32 - [bbc.co.uk] m0014t72: Downloading MPD manifest
21/10/2022 14:51:33 - [bbc.co.uk] m0014t72: Downloading MPD manifest
21/10/2022 14:51:33 - [bbc.co.uk] m0014t72: Downloading MPD manifest
21/10/2022 14:51:34 - [bbc.co.uk] m0014t72: Downloading MPD manifest
21/10/2022 14:51:35 - [bbc.co.uk] m0014t72: Downloading m3u8 information
21/10/2022 14:51:35 - [bbc.co.uk] m0014t72: Downloading m3u8 information
21/10/2022 14:51:35 - [bbc.co.uk] m0014t72: Downloading m3u8 information
21/10/2022 14:51:35 - [bbc.co.uk] m0014t72: Downloading m3u8 information
21/10/2022 14:51:36 - [bbc.co.uk] m0014t72: Downloading m3u8 information
21/10/2022 14:51:36 - [bbc.co.uk] m0014t72: Downloading m3u8 information
21/10/2022 14:52:21 - [dashsegments] Total fragments: 460
21/10/2022 14:52:21 - [download] Destination: QI, Series S, VG - Part II-m0014t72.fmf_cloudfront-video=5070000-1.mp4
21/10/2022 14:52:21 - Caught error: ERROR: unable to download video
21/10/2022 14:52:21 - -code 1 -level 0 -errorinfo {{} /mod/webif/plugin/qtube/queue.hook 29} -errorcode {CHILDSTATUS 2647 1}
 
It doesn't work here at all, either command line or qtube. Not sure what's gone wrong at this point - it seems to have lost its config file location, but try adding this in the options box as a workaround:
--config-location /mod/etc/youtube-dl.conf
That makes it work for me.
 
Was just about to reply to say the workaround was successful but will update once the new version appears.

Thanks.
 
...
If I qtube a radio program and use process options to transcode the result into MP3, there is nothing shown in the log file to say that's what's happening - it just appears to stall (with the process "running" in the queue) for an indeterminate time. If nothing else, a qtube log line to report the command passed to ffmpeg would be an indication.
--postprocessor-args "-loglevel info" in the options list may help, at the cost of a load more log lines.
 
Have tried the new version and it's failing with the same error.

Can download OK using the workaround suggested earlier.

Code:
23/10/2022 12:15:03 - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
23/10/2022 12:15:03 - Starting queued download URL https://www.bbc.co.uk/sounds/play/b007sxvp Options --no-progress QID 5441
23/10/2022 12:15:29 - [bbc.co.uk] b007sxvp: Downloading video page
23/10/2022 12:15:30 - [bbc.co.uk] b007sxvp: Downloading playlist JSON
23/10/2022 12:15:31 - [bbc.co.uk] b007sxsl: Downloading media selection JSON
23/10/2022 12:15:31 - [bbc.co.uk] b007sxsl: Downloading MPD manifest
23/10/2022 12:15:32 - [bbc.co.uk] b007sxsl: Downloading MPD manifest
23/10/2022 12:15:32 - [bbc.co.uk] b007sxsl: Downloading m3u8 information
23/10/2022 12:15:33 - [bbc.co.uk] b007sxsl: Downloading m3u8 information
23/10/2022 12:15:33 - [bbc.co.uk] b007sxsl: Downloading MPD manifest
23/10/2022 12:15:33 - [bbc.co.uk] b007sxsl: Downloading MPD manifest
23/10/2022 12:15:33 - [bbc.co.uk] b007sxsl: Downloading m3u8 information
23/10/2022 12:15:34 - [bbc.co.uk] b007sxsl: Downloading m3u8 information
23/10/2022 12:15:55 - [dashsegments] Total fragments: 311
23/10/2022 12:15:55 - [download] Destination: The Inimitable Jeeves, The Purity of the Turf-b007sxsl.m4a
23/10/2022 12:15:55 - Caught error: ERROR: unable to download video
23/10/2022 12:15:55 - -code 1 -level 0 -errorinfo {{} /mod/webif/plugin/qtube/queue.hook 29} -errorcode {CHILDSTATUS 1914 1}
23/10/2022 12:19:01 - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
23/10/2022 12:19:01 - Starting queued download URL https://www.bbc.co.uk/sounds/play/b007sxvp Options --config-location /mod/etc/youtube-dl.conf --no-progress QID 5441
23/10/2022 12:19:25 - [bbc.co.uk] b007sxvp: Downloading video page
23/10/2022 12:19:26 - [bbc.co.uk] b007sxvp: Downloading playlist JSON
23/10/2022 12:19:26 - [bbc.co.uk] b007sxsl: Downloading media selection JSON
23/10/2022 12:19:26 - [bbc.co.uk] b007sxsl: Downloading MPD manifest
23/10/2022 12:19:27 - [bbc.co.uk] b007sxsl: Downloading MPD manifest
23/10/2022 12:19:28 - [bbc.co.uk] b007sxsl: Downloading m3u8 information
23/10/2022 12:19:28 - [bbc.co.uk] b007sxsl: Downloading m3u8 information
23/10/2022 12:19:28 - [bbc.co.uk] b007sxsl: Downloading MPD manifest
23/10/2022 12:19:28 - [bbc.co.uk] b007sxsl: Downloading MPD manifest
23/10/2022 12:19:29 - [bbc.co.uk] b007sxsl: Downloading m3u8 information
23/10/2022 12:19:29 - [bbc.co.uk] b007sxsl: Downloading m3u8 information
23/10/2022 12:19:36 - [dashsegments] Total fragments: 311
23/10/2022 12:19:36 - [download] Destination: /mnt/hd2/My Video/[Downloads]/The_Inimitable_Jeeves_The_Purity_of_the_Turf.m4a
23/10/2022 12:21:35 - [download] Download completed
23/10/2022 12:21:35 - [ffmpeg] Correcting container in "/mnt/hd2/My Video/[Downloads]/The_Inimitable_Jeeves_The_Purity_of_the_Turf.m4a"
23/10/2022 12:22:00 - Completed queued download of https://www.bbc.co.uk/sounds/play/b007sxvp Options --config-location /mod/etc/youtube-dl.conf --no-progress
 
With youtube-dl-2022.09.03-1, qtube-0.1.0-1, HD Fox-T2. /mod/etc/youtube-dl.conf as follows:
Code:
--restrict-filenames 
--prefer-ffmpeg 
-f "(best/bestvideo+bestaudio)[height<=?1080][fps<=?60]"
-o "/media/drive1/Video/%(title)s.%(ext)s"
yt-dl command line created by QTube (options -f best):
Code:
python /mod/lib/python2.7/dist-packages/youtube-dl --newline -f best https://www.youtube.com/watch?v=m7i7HPjaUiY
While the download is running:
Code:
# pgrep python
18250
# ps -l 18250
F S   UID   PID  PPID  C PRI  NI ADDR SZ WCHAN  TTY        TIME CMD
0 S     0 18250 18247 26  85  10 -  8056 sys_po ?          6:23 python /mod/lib/
# lsof -p 18250 | grep "/Video"
python  18250 root    4w   REG    8,1 29548878  2883786 /media/drive1/Video/John_Conway_on_The_remarkable_history_of_Pascal_s_hexagrammum_mysticum.mp4.part
# ls -l /proc/18250/cwd
lrwxrwxrwx 1 root root 0 Oct 23 13:08 /proc/18250/cwd -> /
#
That seems OK so far. Maybe some HDR issue? If the -o ... option isn't used, the RO working directory / will be used.
 
That's done the trick. 3 successful downloads.

Thanks for your efforts.

Code:
23/10/2022 14:02:23 - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
23/10/2022 14:02:23 - Starting queued download URL https://www.bbc.co.uk/sounds/play/b007sxvp Options --no-progress QID 5449
23/10/2022 14:02:49 - [bbc.co.uk] b007sxvp: Downloading video page
23/10/2022 14:02:50 - [bbc.co.uk] b007sxvp: Downloading playlist JSON
23/10/2022 14:02:51 - [bbc.co.uk] b007sxsl: Downloading media selection JSON
23/10/2022 14:02:51 - [bbc.co.uk] b007sxsl: Downloading MPD manifest
23/10/2022 14:02:52 - [bbc.co.uk] b007sxsl: Downloading MPD manifest
23/10/2022 14:02:52 - [bbc.co.uk] b007sxsl: Downloading m3u8 information
23/10/2022 14:02:52 - [bbc.co.uk] b007sxsl: Downloading m3u8 information
23/10/2022 14:02:53 - [bbc.co.uk] b007sxsl: Downloading MPD manifest
23/10/2022 14:02:53 - [bbc.co.uk] b007sxsl: Downloading MPD manifest
23/10/2022 14:02:53 - [bbc.co.uk] b007sxsl: Downloading m3u8 information
23/10/2022 14:02:53 - [bbc.co.uk] b007sxsl: Downloading m3u8 information
23/10/2022 14:03:01 - [dashsegments] Total fragments: 311
23/10/2022 14:03:01 - [download] Destination: /mnt/hd2/My Video/[Downloads]/The_Inimitable_Jeeves_The_Purity_of_the_Turf.m4a
23/10/2022 14:04:55 - [download] Download completed
23/10/2022 14:04:56 - [ffmpeg] Correcting container in "/mnt/hd2/My Video/[Downloads]/The_Inimitable_Jeeves_The_Purity_of_the_Turf.m4a"
23/10/2022 14:05:22 - Completed queued download of https://www.bbc.co.uk/sounds/play/b007sxvp Options --no-progress
23/10/2022 14:05:23 - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
23/10/2022 14:05:23 - Starting queued download URL https://www.bbc.co.uk/iplayer/episode/m0014t73/qi-series-s-vg-part-ii Options --no-progress QID 5450
23/10/2022 14:05:49 - [bbc.co.uk] m0014t73: Downloading video page
23/10/2022 14:05:49 - [bbc.co.uk] m0014t73: Downloading playlist JSON
23/10/2022 14:05:50 - [bbc.co.uk] m0014t72: Downloading media selection JSON
23/10/2022 14:05:50 - [bbc.co.uk] m0014t72: Downloading MPD manifest
23/10/2022 14:05:51 - [bbc.co.uk] m0014t72: Downloading MPD manifest
23/10/2022 14:05:52 - [bbc.co.uk] m0014t72: Downloading MPD manifest
23/10/2022 14:05:52 - [bbc.co.uk] m0014t72: Downloading MPD manifest
23/10/2022 14:05:53 - [bbc.co.uk] m0014t72: Downloading MPD manifest
23/10/2022 14:05:54 - [bbc.co.uk] m0014t72: Downloading MPD manifest
23/10/2022 14:05:54 - [bbc.co.uk] m0014t72: Downloading m3u8 information
23/10/2022 14:05:55 - [bbc.co.uk] m0014t72: Downloading m3u8 information
23/10/2022 14:05:55 - [bbc.co.uk] m0014t72: Downloading m3u8 information
23/10/2022 14:05:55 - [bbc.co.uk] m0014t72: Downloading m3u8 information
23/10/2022 14:05:55 - [bbc.co.uk] m0014t72: Downloading m3u8 information
23/10/2022 14:05:55 - [bbc.co.uk] m0014t72: Downloading m3u8 information
23/10/2022 14:06:08 - [hlsnative] Downloading m3u8 manifest
23/10/2022 14:06:08 - [hlsnative] Total fragments: 230
23/10/2022 14:06:08 - [download] Destination: /mnt/hd2/My Video/[Downloads]/QI_Series_S_VG_-_Part_II.mp4
23/10/2022 14:17:11 - [download] Download completed
23/10/2022 14:17:14 - [ffmpeg] Fixing malformed AAC bitstream in "/mnt/hd2/My Video/[Downloads]/QI_Series_S_VG_-_Part_II.mp4"
23/10/2022 14:22:04 - Completed queued download of https://www.bbc.co.uk/iplayer/episode/m0014t73/qi-series-s-vg-part-ii Options --no-progress
23/10/2022 14:22:05 - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
23/10/2022 14:22:05 - Starting queued download URL https://www.bbc.co.uk/iplayer/episode/m001d86b/question-of-sport-series-52-episode-9 Options --no-progress QID 5451
23/10/2022 14:22:30 - [bbc.co.uk] m001d86b: Downloading video page
23/10/2022 14:22:31 - [bbc.co.uk] m001d86b: Downloading playlist JSON
23/10/2022 14:22:31 - [bbc.co.uk] m001d861: Downloading media selection JSON
23/10/2022 14:22:32 - [bbc.co.uk] m001d861: Downloading m3u8 information
23/10/2022 14:22:32 - [bbc.co.uk] m001d861: Downloading m3u8 information
23/10/2022 14:22:32 - [bbc.co.uk] m001d861: Downloading m3u8 information
23/10/2022 14:22:32 - [bbc.co.uk] m001d861: Downloading m3u8 information
23/10/2022 14:22:33 - [bbc.co.uk] m001d861: Downloading m3u8 information
23/10/2022 14:22:33 - [bbc.co.uk] m001d861: Downloading m3u8 information
23/10/2022 14:22:33 - [bbc.co.uk] m001d861: Downloading MPD manifest
23/10/2022 14:22:34 - [bbc.co.uk] m001d861: Downloading MPD manifest
23/10/2022 14:22:35 - [bbc.co.uk] m001d861: Downloading MPD manifest
23/10/2022 14:22:35 - [bbc.co.uk] m001d861: Downloading MPD manifest
23/10/2022 14:22:36 - [bbc.co.uk] m001d861: Downloading MPD manifest
23/10/2022 14:22:36 - [bbc.co.uk] m001d861: Downloading MPD manifest
23/10/2022 14:22:48 - [hlsnative] Downloading m3u8 manifest
23/10/2022 14:22:48 - [hlsnative] Total fragments: 226
23/10/2022 14:22:48 - [download] Destination: /mnt/hd2/My Video/[Downloads]/Question_of_Sport_Series_52_Episode_9.mp4
23/10/2022 14:33:33 - [download] Download completed
23/10/2022 14:33:36 - [ffmpeg] Fixing malformed AAC bitstream in "/mnt/hd2/My Video/[Downloads]/Question_of_Sport_Series_52_Episode_9.mp4"
23/10/2022 14:38:03 - Completed queued download of https://www.bbc.co.uk/iplayer/episode/m001d86b/question-of-sport-series-52-episode-9 Options --no-progress
 
qtube wishlist bump!

How about a Christmas present? I still think qtube as a front-end for youtube-dl could provide more user aids. What I'm thinking is some preset tick boxes which insert appropriate strings into the "Process options" field... otherwise I have to look them up each time.
Even some text comments on the qtube GUI page for copy&paste would help. My favourites are:
  • -f "best[height=540][fps=25][ext=mp4]"
  • -x --audio-format mp3

-F could be catered for by replacing the "Run download now" button with a "Download manifest" button.
(or adding a download manifest button)
 
Last edited:
Do you want to exclude separate video+audio streams? Some sites don't offer a combined download, so just best won't work.

Maybe (best/bestvideo+bestaudio)[height=?540][fps=?25][ext=mp4]/(best/bestvideo+bestaudio)[height<=?1080][fps<=?50][ext=mp4] ?
  • / separates alternative formats, preferred first
  • , separates separate formats (both to be downloaded)
  • (...) groups a format selection expression
  • [param=?value] only enforces the selection if param is defined for the format.

As the box won't play height > 1080 or frame-rate > 50 (IIRC), no point getting those. [Added some rationale]
 
Last edited:
(or adding a download manifest button)

I'd call it Show available formats, or just Show formats. But then we get into the question (apparently people at Microsoft call this "breaking into jail") of whether the listed formats should be parsed into a pull-down menu to be applied as a -f ... option.
 
I'm a relatively inexperienced newbie
I am unable to run the Qtube-dl Webif package. It was working well a couple of months ago but fails now for BBC iPlayer and Youtube. They fail very quickly with a Traceback failure, Ive included a -v qtube log. All packages are at their latest versions. I have tried re-installing and running the Python Setup file, re-booting and rm /mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/options.pyc as given in some earlier postings by others, to no avail, Can anyone help?

Code:
02/12/2022 16:33:01 - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
02/12/2022 16:33:01 - Starting queued download URL https://www.youtube.com/watch?v=eiRfv6LFXYE Options -v QID 2996
02/12/2022 16:33:11 - Caught error: Traceback (most recent call last):
  File "/mod/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/mod/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/mnt/hd2/mod/lib/python2.7/dist-packages/youtube-dl/__main__.py", line 16, in <module>
    import youtube_dl
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/__init__.py", line 15, in <module>
    from .options import (
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/options.py", line 8, in <module>
    from .downloader.external import list_external_downloaders
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/downloader/__init__.py", line 18, in <module>
    from .hls import HlsFD
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/downloader/hls.py", line 12, in <module>
    from .external import FFmpegFD
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/downloader/external.py", line 14, in <module>
    from ..postprocessor.ffmpeg import FFmpegPostProcessor, EXT_TO_OUT_FORMATS
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/postprocessor/__init__.py", line 3, in <module>
    from .embedthumbnail import EmbedThumbnailPP
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/postprocessor/embedthumbnail.py", line 8, in <module>
    from .ffmpeg import FFmpegPostProcessor
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/postprocessor/ffmpeg.py", line 12, in <module>
    from ..utils import (
ImportError: cannot import name process_communicate_or_kill
02/12/2022 16:33:11 - -code 1 -level 0 -errorinfo {{} /mod/webif/plugin/qtube/queue.hook 29} -errorcode {CHILDSTATUS 1825 1}
 
I have tried re-installing and running the Python Setup file
What does that actually mean? Be specific.
re-booting
That won't help.
and rm /mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/options.pyc
Which probabably means it needs a less specific fix. Try this (make sure you copy and paste it):
find "/mod/lib/python2.7/dist-packages/youtube-dl" -name '*.pyc' -exec echo rm \"{}\" \; | $SHELL
If that doesn't work, then an even less specific one:
find "/mod/lib/python2.7" -name '*.pyc' -exec echo rm \"{}\" \; | $SHELL
 
Last edited:
Back
Top