Fix missing video frames when seeking with yt-dlp #19

Closed
opened 2024-08-04 01:22:41 +02:00 by oysteikt · 1 comment
Owner

When you play a video from youtube through yt-dlp inside mpv, and seek in front of what has already been cached, mpv will freeze for a while and then only resume music without any more video frames.

The origin of the bug seemingly has to do with codecs and remuxing, and it can be solved by forcing yt-dlp's format. This config file will let you force the yt-dlp format for only the urls matching youtube ($XDG_CONFIG_HOME/mpv/mpv.conf)

[youtube]
profile-cond=path:find('youtu%.?be')
--ytdl-format="137+140"
When you play a video from youtube through yt-dlp inside mpv, and seek in front of what has already been cached, `mpv` will freeze for a while and then only resume music without any more video frames. The origin of the bug seemingly has to do with codecs and remuxing, and it can be solved by forcing `yt-dlp`'s format. This config file will let you force the yt-dlp format for only the urls matching youtube (`$XDG_CONFIG_HOME/mpv/mpv.conf`) ``` [youtube] profile-cond=path:find('youtu%.?be') --ytdl-format="137+140" ```
Author
Owner

Fixed by b3e7f550b7

Fixed by b3e7f550b7c29fe7c186b3c9835405f29b48e7de
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Grzegorz/greg-ng#19
No description provided.