I have problems with new youtube codec av1, mpv 0,28 doesnt read it, and mpv0,29 give me some lags.. So I would need a --ytdl-format filter in youtube-dl
to exclude that chain stream.:
Here, for example
youtube-dl -F https://www.youtube.com/watch?v=8EJ-vZyBzOQ
here, I can play vid by giving it directly by id number track=136 (AVC1) ==> this codec is supported by mpv28136 mp4 1280x720 720p 659k , avc1.4d401f, 25fps, video only, 8.78MiB
247 webm 1280x720 720p 767k , vp9, 25fps, video only, 10.74MiB
398 mp4 1280x720 720p 1073k , av01.0.05M.08, 25fps, video only, 16.43MiB
mpv --ytdl-format=136 https://www.youtube.com/watch?v=8EJ-vZyBzOQ
here, I can't play vid, id number track=398 (AV01) ==> this codec is not supported by mpv28
mpv --ytdl-format=398 https://www.youtube.com/watch?v=8EJ-vZyBzOQ
So, I know How can I filter vp9 codec(vcodec!=?vp9) or open vp9 (vcodec=vp9), but I dont know how to name that AVC1 codec so mpv know it.
This filter work for WEBM container.:
soun_uri="https://www.youtube.com/watch?v=8EJ-vZyBzOQ"
LIBGL_DEBUG=verbose mpv \
--ytdl-format="bestvideo[ext=webm][vcodec=vp9][height<=?720]+bestaudio[ext=webm]" "$soun_uri"
--------
AVC1 is supported, so I would need to exclude AV01
What Codec name do i use for AVC H.264 or MPEG-4 Part 10??? (AVC1)
soun_uri="https://www.youtube.com/watch?v=8EJ-vZyBzOQ"
LIBGL_DEBUG=verbose mpv \
--ytdl-format="bestvideo[ext=mp4][vcodec= XXXXXX ][height<=?720]+bestaudio[ext=m4a]" "$soun_uri"
Ive tried with:
vcodec=h264
vcodec=libx264
vcodec=avc1.. and some more.