You are not logged in.

#1 2015-11-12 02:37:01

navi_se
Member
Registered: 2015-07-06
Posts: 139

MPV + youtube-dl is painfully slow: how to speed it up [SOLVED]

I am using MPV to stream youtube videos (together with the never praised enough qutebrowser). For some reason youtube videos takes ages before the stream start. Plenty of other website have the stream start almost immediatly. I assume because youtube-dl downloads a large chunk of the video, if not all of it. Is there any way to speed up the process?  Maybe a configuration on how much cache from youtube is required? Googling yield close to none result, so this is probably a long shot.

Last edited by navi_se (2015-11-13 18:45:09)

Offline

#2 2015-11-12 14:26:56

navi_se
Member
Registered: 2015-07-06
Posts: 139

Re: MPV + youtube-dl is painfully slow: how to speed it up [SOLVED]

For those interested, I managed to solve the problem by using qutebrowser ability to stream HTML5 videos directly. This is not necessarly enable by default, but can be achieved by installing

$ sudo pacman -S gst-libav gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly 

reboot and qute can handle all your youtube and similar videosites.

Last edited by navi_se (2015-11-12 14:27:07)

Offline

#3 2015-11-12 14:40:45

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: MPV + youtube-dl is painfully slow: how to speed it up [SOLVED]

Regarding mpv, from its release notes:

NOTE: The previous release changed the default format for youtube-dl and
removed some workarounds related to MPEG DASH support. However, the required
changes to FFmpeg code (FFmpeg/FFmpeg@4ab5666)
are not in any FFmpeg release yet (as of 2015-11-10), so for now, playing DASH
streams requires using FFmpeg git master. You can work around this by using the
--ytdl-format=best option.

So, if you're not using ffmpeg-git, you should use --ytdl-format=best

Offline

#4 2015-11-13 18:44:14

navi_se
Member
Registered: 2015-07-06
Posts: 139

Re: MPV + youtube-dl is painfully slow: how to speed it up [SOLVED]

Yes! This did the trick, video in mpv seem to spawn way faster using the option

 mpv --ytdl-format=best {some youtube url}

thanks!

Offline

Board footer

Powered by FluxBB