ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.41k stars 10.04k forks source link

-f worst downloads larger than expected #22988

Open ghost opened 5 years ago

ghost commented 5 years ago

Checklist

Verbose log

youtube-dl -F https://www.youtube.com/watch?v=-8yRaHH9HfE
[youtube] -8yRaHH9HfE: Downloading webpage
[youtube] -8yRaHH9HfE: Downloading video info webpage
[info] Available formats for -8yRaHH9HfE:
format code  extension  resolution note
249          webm       audio only tiny   56k , opus @ 50k (48000Hz), 5.18MiB
250          webm       audio only tiny   72k , opus @ 70k (48000Hz), 6.71MiB
140          m4a        audio only tiny  131k , m4a_dash container, mp4a.40.2@128k (44100Hz), 13.25MiB
251          webm       audio only tiny  139k , opus @160k (48000Hz), 13.00MiB
160          mp4        256x144    144p  129k , avc1.4d400c, 30fps, video only, 6.89MiB
278          webm       256x144    144p  134k , webm container, vp9, 30fps, video only, 9.82MiB
242          webm       426x240    240p  225k , vp9, 30fps, video only, 13.71MiB
133          mp4        426x240    240p  311k , avc1.4d4015, 30fps, video only, 14.26MiB
243          webm       640x360    360p  409k , vp9, 30fps, video only, 23.22MiB
134          mp4        640x360    360p  608k , avc1.4d401e, 30fps, video only, 26.30MiB
244          webm       854x480    480p  756k , vp9, 30fps, video only, 34.56MiB
135          mp4        854x480    480p  891k , avc1.4d401f, 30fps, video only, 37.68MiB
247          webm       1280x720   720p 1517k , vp9, 30fps, video only, 59.58MiB
136          mp4        1280x720   720p 1557k , avc1.4d401f, 30fps, video only, 56.31MiB
248          webm       1920x1080  1080p 2655k , vp9, 30fps, video only, 171.66MiB
137          mp4        1920x1080  1080p 4361k , avc1.640028, 30fps, video only, 200.94MiB
43           webm       640x360    360p , vp8.0, vorbis@128k, 79.62MiB
18           mp4        640x360    360p  562k , avc1.42001E, mp4a.40.2@ 96k (44100Hz), 57.54MiB
22           mp4        1280x720   720p  679k , avc1.64001F, mp4a.40.2@192k (44100Hz) (best)
[bluebird@localhost ~]$ youtube-dl -f worst https://www.youtube.com/watch?v=-8yRaHH9HfE
[youtube] -8yRaHH9HfE: Downloading webpage
[youtube] -8yRaHH9HfE: Downloading video info webpage
[download] Destination: 12 Insane DESCENDANTS of Famous People--8yRaHH9HfE.webm
[download]   0.4% of 79.62MiB at 56.92KiB/s ETA 23:47^C
ERROR: Interrupted by user

Description

The '-f worst' flag is not selecting the smallest file-size possible, it's selecting a 79mb file (apparently -f 43) when there's -f 18 at 57mb in size, and a muxing option of 278 and 249 which would make the file roughly 15mb. I have ffmpeg installed, so I don't understand why 79mb is the worst format available... (We're rural, so we pay about $30 per GB each month for data... 5 hours of blurry video is much better than 15 minutes at HD)

ghost commented 5 years ago

Just as an aside, I am awed by how many issues you guys are able to solve/close each week. How do you ever get anything else done?

Current workaround: With some searching I did find the documented method. I will be making a bashrc alias using the following line:

alias worstyoutube-dl='youtube-dl -f "worstvideo[ext=webm]+worstaudio[ext=webm]"'

I think I'm mostly just upset that the -f 17 format seems to be dropped for all YT videos.