Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I get youtube-dl to avoid `av01` encoded formats #23162

Closed
txtsd opened this issue Nov 21, 2019 · 1 comment
Closed

How do I get youtube-dl to avoid `av01` encoded formats #23162

txtsd opened this issue Nov 21, 2019 · 1 comment

Comments

@txtsd
Copy link

@txtsd txtsd commented Nov 21, 2019

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

How do I get youtube-dl to avoid av01 encoded formats? I want bestvideo but not av01.*.

Example

[txtsd@dungeon-of-data]─[~/YouTube/Lucas the Spider]
λ youtube-dl --output "%(title)s (%(id)s).%(ext)s" --format "bestvideo[height<=?1080][fps<=?60]+bestaudio/best" "https://www.youtube.com/watch?v=ti5qtf9xl6o"
[youtube] ti5qtf9xl6o: Downloading webpage
[youtube] ti5qtf9xl6o: Downloading video info webpage
WARNING: enUS subtitles not available for ti5qtf9xl6o
WARNING: jp subtitles not available for ti5qtf9xl6o
WARNING: jpn subtitles not available for ti5qtf9xl6o
[info] Writing video subtitles to: Lucas the Spider - The Imposter (ti5qtf9xl6o).en.vtt
[download] Destination: Lucas the Spider - The Imposter (ti5qtf9xl6o).f398.mp4
[download] 100% of 3.77MiB in 00:01
[download] Destination: Lucas the Spider - The Imposter (ti5qtf9xl6o).f251.webm
[download] 100% of 924.41KiB in 00:00
[ffmpeg] Merging formats into "Lucas the Spider - The Imposter (ti5qtf9xl6o).mkv"
Deleting original file Lucas the Spider - The Imposter (ti5qtf9xl6o).f398.mp4 (pass -k to keep)
Deleting original file Lucas the Spider - The Imposter (ti5qtf9xl6o).f251.webm (pass -k to keep)
[ffmpeg] Embedding subtitles in 'Lucas the Spider - The Imposter (ti5qtf9xl6o).mkv'
Deleting original file Lucas the Spider - The Imposter (ti5qtf9xl6o).en.vtt (pass -k to keep)
[txtsd@dungeon-of-data]─[~/YouTube/Lucas the Spider]
λ mediainfo "Lucas the Spider - The Imposter (ti5qtf9xl6o).mkv"
General
Unique ID                                : 12301917490339933252276574636136254286 (0x941435C473430DEF0BB4D013358CB4E)
Complete name                            : Lucas the Spider - The Imposter (ti5qtf9xl6o).mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 4.67 MiB
Duration                                 : 1 min 0 s
Overall bit rate                         : 644 kb/s
Writing application                      : Lavf58.29.100
Writing library                          : Lavf58.29.100
ErrorDetectionType                       : Per level 1

Video
ID                                       : 1
Format                                   : AV1
Format/Info                              : AOMedia Video 1
Format profile                           : Main@L3.1
Codec ID                                 : V_AV1
Duration                                 : 1 min 0 s
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Title                                    : ISO Media file produced by Google Inc.
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 2
Format                                   : Opus
Codec ID                                 : A_OPUS
Duration                                 : 1 min 0 s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Bit depth                                : 32 bits
Compression mode                         : Lossy
Delay relative to video                  : -7 ms
Language                                 : English
Default                                  : Yes
Forced                                   : No

Text
ID                                       : 3
Format                                   : D_WEBVTT/SUBTITLES
Codec ID                                 : D_WEBVTT/SUBTITLES
Duration                                 : 55 s 400 ms
Language                                 : English
Default                                  : No
Forced                                   : No
[txtsd@dungeon-of-data]─[~/YouTube/Lucas the Spider]
λ youtube-dl -F "https://www.youtube.com/watch?v=ti5qtf9xl6o"
[youtube] ti5qtf9xl6o: Downloading webpage
[youtube] ti5qtf9xl6o: Downloading video info webpage
WARNING: enUS subtitles not available for ti5qtf9xl6o
WARNING: jp subtitles not available for ti5qtf9xl6o
WARNING: jpn subtitles not available for ti5qtf9xl6o
[info] Available formats for ti5qtf9xl6o:
format code  extension  resolution note
249          webm       audio only tiny   58k , opus @ 50k (48000Hz), 375.59KiB
250          webm       audio only tiny   75k , opus @ 70k (48000Hz), 482.24KiB
140          m4a        audio only tiny  130k , m4a_dash container, mp4a.40.2@128k (44100Hz), 962.24KiB
251          webm       audio only tiny  143k , opus @160k (48000Hz), 924.41KiB
160          mp4        256x144    144p   39k , avc1.4d400c, 24fps, video only, 211.87KiB
394          mp4        256x144    144p   66k , av01.0.00M.08, 24fps, video only, 442.75KiB
133          mp4        426x240    240p   76k , avc1.4d4015, 24fps, video only, 399.04KiB
278          webm       256x144    144p   90k , webm container, vp9, 24fps, video only, 470.38KiB
395          mp4        426x240    240p   92k , av01.0.00M.08, 24fps, video only, 570.34KiB
242          webm       426x240    240p   94k , vp9, 24fps, video only, 524.65KiB
134          mp4        640x360    360p  140k , avc1.4d401e, 24fps, video only, 728.97KiB
243          webm       640x360    360p  175k , vp9, 24fps, video only, 897.30KiB
135          mp4        854x480    480p  176k , avc1.4d401e, 24fps, video only, 1004.14KiB
396          mp4        640x360    360p  184k , av01.0.01M.08, 24fps, video only, 1001.21KiB
244          webm       854x480    480p  278k , vp9, 24fps, video only, 1.29MiB
136          mp4        1280x720   720p  324k , avc1.4d401f, 24fps, video only, 1.63MiB
397          mp4        854x480    480p  341k , av01.0.04M.08, 24fps, video only, 1.66MiB
247          webm       1280x720   720p  573k , vp9, 24fps, video only, 2.32MiB
398          mp4        1280x720   720p  856k , av01.0.05M.08, 24fps, video only, 3.77MiB
43           webm       640x360    360p , vp8.0, vorbis@128k, 3.12MiB
22           mp4        1280x720   720p  354k , avc1.64001F, mp4a.40.2@192k (44100Hz)
18           mp4        640x360    360p  368k , avc1.42001E, mp4a.40.2@ 96k (44100Hz), 2.67MiB (best)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.