You are not logged in.
I failed to download a video from youtube using "youtube-dl -f best https://www.youtube.com/watch?v=g3OOTbnpgR0" - and I wonder if there is a workaround? The video seems to have a countdown timer and it plays fine in a browser, but seems to throw a lot of screen output with the above command, and not achieve the download. Does anyone know of any alternative way to get the mp4 video? Thank you.
Edit: reported upstream at https://github.com/ytdl-org/youtube-dl/issues/26284
Last edited by mcloaked (2020-08-09 17:28:18)
Mike C
Offline
You should probably just download the video without using the "-f" argument, I mean like this:
youtube-dl https://www.youtube.com/watch?v=g3OOTbnpgR0I'm guessing the "-f best" you tried to use breaks because there is no single download that contains both video and audio data in one file for that Youtube video you tried to look at. I mean, this here is the output of "-F" for your video:
$ youtube-dl -F https://www.youtube.com/watch?v=g3OOTbnpgR0
[youtube] g3OOTbnpgR0: Downloading webpage
[youtube] g3OOTbnpgR0: Downloading MPD manifest
[info] Available formats for g3OOTbnpgR0:
format code extension resolution note
139 m4a audio only DASH audio 64k , m4a_dash container, mp4a.40.5@ 48k (24000Hz)
140 m4a audio only DASH audio 144k , m4a_dash container, mp4a.40.2@128k (48000Hz)
278 webm 256x144 DASH video 111k , webm_dash container, vp9, 30fps, video only
160 mp4 256x144 DASH video 124k , mp4_dash container, avc1.42c00b, 30fps, video only
242 webm 426x240 DASH video 236k , webm_dash container, vp9, 30fps, video only
133 mp4 426x240 DASH video 258k , mp4_dash container, avc1.4d4015, 30fps, video only
243 webm 640x360 DASH video 421k , webm_dash container, vp9, 30fps, video only
134 mp4 640x360 DASH video 646k , mp4_dash container, avc1.4d401e, 30fps, video only
244 webm 854x480 DASH video 768k , webm_dash container, vp9, 30fps, video only
135 mp4 854x480 DASH video 1171k , mp4_dash container, avc1.4d401f, 30fps, video only
247 webm 1280x720 DASH video 1521k , webm_dash container, vp9, 30fps, video only
136 mp4 1280x720 DASH video 2326k , mp4_dash container, avc1.4d401f, 30fps, video only
302 webm 1280x720 DASH video 2662k , webm_dash container, vp9, 60fps, video only
248 webm 1920x1080 DASH video 2662k , webm_dash container, vp9, 30fps, video only
298 mp4 1280x720 DASH video 3481k , mp4_dash container, avc1.4d4020, 60fps, video only
137 mp4 1920x1080 DASH video 4347k , mp4_dash container, avc1.640028, 30fps, video only
303 webm 1920x1080 DASH video 4426k , webm_dash container, vp9, 60fps, video only
299 mp4 1920x1080 DASH video 5791k , mp4_dash container, avc1.64002a, 60fps, video only
271 webm 2560x1440 DASH video 8836k , webm_dash container, vp9, 30fps, video only
308 webm 2560x1440 DASH video 13246k , webm_dash container, vp9, 60fps, video only (best)If you look through that list, there is no file that has both video and audio. It's all only video or only audio. You then normally would download this kind of video like this:
-f bestvideo+bestaudioLast edited by Ropid (2020-08-08 19:41:07)
Offline
I have version youtube-dl 2020.07.28-1 and when I run that command my output is:
$ youtube-dl -F https://www.youtube.com/watch?v=g3OOTbnpgR0
[youtube] g3OOTbnpgR0: Downloading webpage
[youtube] g3OOTbnpgR0: Downloading m3u8 information
[youtube] g3OOTbnpgR0: Downloading MPD manifest
[info] Available formats for g3OOTbnpgR0:
format code extension resolution note
139 m4a audio only DASH audio 64k , m4a_dash container, mp4a.40.5@ 48k (24000Hz)
140 m4a audio only DASH audio 144k , m4a_dash container, mp4a.40.2@128k (48000Hz)
278 webm 256x144 DASH video 111k , webm_dash container, vp9, 30fps, video only
160 mp4 256x144 DASH video 124k , mp4_dash container, avc1.42c00b, 30fps, video only
242 webm 426x240 DASH video 236k , webm_dash container, vp9, 30fps, video only
133 mp4 426x240 DASH video 258k , mp4_dash container, avc1.4d4015, 30fps, video only
243 webm 640x360 DASH video 421k , webm_dash container, vp9, 30fps, video only
134 mp4 640x360 DASH video 646k , mp4_dash container, avc1.4d401e, 30fps, video only
244 webm 854x480 DASH video 768k , webm_dash container, vp9, 30fps, video only
135 mp4 854x480 DASH video 1171k , mp4_dash container, avc1.4d401f, 30fps, video only
247 webm 1280x720 DASH video 1521k , webm_dash container, vp9, 30fps, video only
136 mp4 1280x720 DASH video 2326k , mp4_dash container, avc1.4d401f, 30fps, video only
302 webm 1280x720 DASH video 2662k , webm_dash container, vp9, 60fps, video only
248 webm 1920x1080 DASH video 2662k , webm_dash container, vp9, 30fps, video only
298 mp4 1280x720 DASH video 3481k , mp4_dash container, avc1.4d4020, 60fps, video only
137 mp4 1920x1080 DASH video 4347k , mp4_dash container, avc1.640028, 30fps, video only
303 webm 1920x1080 DASH video 4426k , webm_dash container, vp9, 60fps, video only
299 mp4 1920x1080 DASH video 5791k , mp4_dash container, avc1.64002a, 60fps, video only
271 webm 2560x1440 DASH video 8836k , webm_dash container, vp9, 30fps, video only
308 webm 2560x1440 DASH video 13246k , webm_dash container, vp9, 60fps, video only
91 mp4 256x144 HLS 197k , avc1.42c00b, 30.0fps, mp4a.40.5@ 48k
92 mp4 426x240 HLS 338k , avc1.4d4015, 30.0fps, mp4a.40.5@ 48k
93 mp4 640x360 HLS 829k , avc1.4d401e, 30.0fps, mp4a.40.2@128k
94 mp4 854x480 HLS 1380k , avc1.4d401f, 30.0fps, mp4a.40.2@128k
300 mp4 1280x720 3806k , avc1.4d4020, 60.0fps, mp4a.40.2
301 mp4 1920x1080 6231k , avc1.64002a, 60.0fps, mp4a.40.2 (best)So there is a combined video/audio combination file - though I have also tried with -f 137+140 and although it does proceed very slowly to get an mp4 file, the file does not play correctly in vlc, and only plays the 45 second countdown timer before it exits.
Mike C
Offline
“Works for me”. Possibly a transient problem on Google side with the mirrors provided for your client? The download may be working in a browser, because the requests may be directed to other servers.
Offline
“Works for me”. Possibly a transient problem on Google side with the mirrors provided for your client? The download may be working in a browser, because the requests may be directed to other servers.
When you said it works for you, do you mean that once you have downloaded the file using youtube-dl then you can successfully play the whole video in vlc?
Edit: I have just tried today also - and the same command behaves normally - and the resulting downloaded file plays past the countdown through the rest of the video. So as you say there must have been a server issue yesterday.
[mike@lenovo1 covid-teaching]$ youtube-dl -F https://www.youtube.com/watch?v=g3OOTbnpgR0
[youtube] g3OOTbnpgR0: Downloading webpage
[youtube] g3OOTbnpgR0: Downloading js player c0a91787
[youtube] g3OOTbnpgR0: Downloading js player c0a91787
[info] Available formats for g3OOTbnpgR0:
format code extension resolution note
249 webm audio only tiny 62k , opus @ 50k (48000Hz), 19.67MiB
250 webm audio only tiny 82k , opus @ 70k (48000Hz), 22.29MiB
140 m4a audio only tiny 133k , m4a_dash container, mp4a.40.2@128k (44100Hz), 51.30MiB
251 webm audio only tiny 150k , opus @160k (48000Hz), 39.24MiB
278 webm 256x144 144p 128k , webm container, vp9, 30fps, video only, 32.71MiB
160 mp4 256x144 144p 158k , avc1.4d400c, 30fps, video only, 34.12MiB
242 webm 426x240 240p 288k , vp9, 30fps, video only, 58.70MiB
133 mp4 426x240 240p 309k , avc1.4d4015, 30fps, video only, 75.74MiB
243 webm 640x360 360p 490k , vp9, 30fps, video only, 100.85MiB
134 mp4 640x360 360p 620k , avc1.4d401e, 30fps, video only, 143.07MiB
244 webm 854x480 480p 870k , vp9, 30fps, video only, 161.74MiB
135 mp4 854x480 480p 1152k , avc1.4d401f, 30fps, video only, 256.98MiB
247 webm 1280x720 720p 1655k , vp9, 30fps, video only, 285.63MiB
136 mp4 1280x720 720p 2341k , avc1.64001f, 30fps, video only, 499.63MiB
248 webm 1920x1080 1080p 2748k , vp9, 30fps, video only, 437.83MiB
302 webm 1280x720 720p60 2768k , vp9, 60fps, video only, 416.27MiB
298 mp4 1280x720 720p60 3746k , avc1.640020, 60fps, video only, 687.84MiB
303 webm 1920x1080 1080p60 4356k , vp9, 60fps, video only, 571.01MiB
137 mp4 1920x1080 1080p 4870k , avc1.640028, 30fps, video only, 952.24MiB
299 mp4 1920x1080 1080p60 6478k , avc1.64002a, 60fps, video only, 1.27GiB
271 webm 2560x1440 1440p 7537k , vp9, 30fps, video only, 1.53GiB
308 webm 2560x1440 1440p60 11713k , vp9, 60fps, video only, 2.01GiB
18 mp4 640x360 360p 503k , avc1.42001E, 30fps, mp4a.40.2@ 96k (44100Hz), 199.59MiB
22 mp4 1280x720 720p 1389k , avc1.64001F, 30fps, mp4a.40.2@192k (44100Hz) (best)
[mike@lenovo1 covid-teaching]$ youtube-dl -f 136+140 https://www.youtube.com/watch?v=g3OOTbnpgR0
[youtube] g3OOTbnpgR0: Downloading webpage
[download] Destination: How To Create Frame In Ballroom Dancing-g3OOTbnpgR0.f136.mp4
[download] 100% of 499.63MiB in 03:23
[download] Destination: How To Create Frame In Ballroom Dancing-g3OOTbnpgR0.f140.m4a
[download] 100% of 51.30MiB in 00:15
[ffmpeg] Merging formats into "How To Create Frame In Ballroom Dancing-g3OOTbnpgR0.mp4"
Deleting original file How To Create Frame In Ballroom Dancing-g3OOTbnpgR0.f136.mp4 (pass -k to keep)
Deleting original file How To Create Frame In Ballroom Dancing-g3OOTbnpgR0.f140.m4a (pass -k to keep)
[mike@lenovo1 covid-teaching]$ ls -lh 'How To Create Frame In Ballroom Dancing-g3OOTbnpgR0.mp4'
-rw-r--r-- 1 mike mike 553M Aug 8 23:45 'How To Create Frame In Ballroom Dancing-g3OOTbnpgR0.mp4'So I will mark this solved now.
Last edited by mcloaked (2020-08-09 17:27:41)
Mike C
Offline