streaming with mpv and ytdl
Posted: Sat Jan 24, 2015 5:46 am
Hi,
Checking out Smplayer 14.9.0 svn r6686 with mpv as backend. It has been working great. Thanks for the great work.
I have encountered some videos (not on Youtube) that I can download with youtube-dl and stream directly with mpv, but not with Smplayer using mpv as backend and the option '--ytdl-format=bestvideo+bestaudio' in Preferences > Advanced > Options for Mplayer/Mpv. The videos stream if the ytdl option is removed.
For example http://www.dailymotion.com/video/x2fc1m ... rauss_tech
From Smplayer's log:
/home/bee/bin/mpv --no-config --no-quiet --terminal --no-msg-color --slave-broken --no-fs --vd-lavc-threads=4 --hwdec=vaapi --sub-auto=fuzzy --vo=vaapi --ao=pulse --stop-screensaver --no-input-default-bindings --input-x11-keyboard=no --no-input-cursor --cursor-autohide=no --no-keepaspect --wid=71303219 --monitorpixelaspect=1 --osd-scale=1 --sub-ass --embeddedfonts --ass-line-spacing=0 --sub-scale=1 --ass-styles=/home/bee/.config/smplayer/styles.ass --sub-codepage=utf8:ISO-8859-1 --sub-pos=100 --volume=100 --cache=2048 --osd-level=0 --screenshot-template=cap_%F_%p_%02n --audio-channels=2 --af-add=scaletempo --af-add=equalizer=0:0:0:0:0:0:0:0:0:0 --softvol=yes --softvol-max=300 --ytdl --ytdl-format=bestvideo+bestaudio --term-playing-msg=MPV_VERSION=${=mpv-version:}
INFO_VIDEO_WIDTH=${=width}
INFO_VIDEO_HEIGHT=${=height}
INFO_VIDEO_ASPECT=${=video-aspect}
INFO_VIDEO_FPS=${=fps}
INFO_VIDEO_BITRATE=${=video-bitrate}
INFO_VIDEO_FORMAT=${=video-format}
INFO_VIDEO_CODEC=${=video-codec}
INFO_AUDIO_BITRATE=${=audio-bitrate}
INFO_AUDIO_FORMAT=${=audio-format}
INFO_AUDIO_CODEC=${=audio-codec}
INFO_AUDIO_RATE=${=audio-samplerate}
INFO_AUDIO_NCH=${=audio-channels}
INFO_LENGTH=${=length}
INFO_DEMUXER=${=demuxer}
INFO_TITLES=${=disc-titles}
INFO_CHAPTERS=${=chapters}
INFO_TRACKS_COUNT=${=track-list/count}
METADATA_TITLE=${metadata/by-key/title:}
METADATA_ARTIST=${metadata/by-key/artist:}
METADATA_ALBUM=${metadata/by-key/album:}
METADATA_GENRE=${metadata/by-key/genre:}
METADATA_DATE=${metadata/by-key/date:}
METADATA_TRACK=${metadata/by-key/track:}
METADATA_COPYRIGHT=${metadata/by-key/copyright:}
INFO_MEDIA_TITLE=${=media-title:}
--term-status-msg=STATUS: ${=time-pos} / ${=length:0} P: ${=pause} B: ${=paused-for-cache} I: ${=core-idle} http://www.dailymotion.com/video/x2fc1m ... rauss_tech
--slave-broken is deprecated (see manpage).
[input_file] Client connected
Playing: http://www.dailymotion.com/video/x2fc1m ... rauss_tech
[ytdl_hook] WARNING: video doesn't have subtitles
[ytdl_hook] ERROR: requested format not available
[ytdl_hook] youtube-dl failed, trying to play URL directly ...
Failed to recognize file format.
Exiting... (Errors when loading file)
Checking out Smplayer 14.9.0 svn r6686 with mpv as backend. It has been working great. Thanks for the great work.
I have encountered some videos (not on Youtube) that I can download with youtube-dl and stream directly with mpv, but not with Smplayer using mpv as backend and the option '--ytdl-format=bestvideo+bestaudio' in Preferences > Advanced > Options for Mplayer/Mpv. The videos stream if the ytdl option is removed.
For example http://www.dailymotion.com/video/x2fc1m ... rauss_tech
From Smplayer's log:
/home/bee/bin/mpv --no-config --no-quiet --terminal --no-msg-color --slave-broken --no-fs --vd-lavc-threads=4 --hwdec=vaapi --sub-auto=fuzzy --vo=vaapi --ao=pulse --stop-screensaver --no-input-default-bindings --input-x11-keyboard=no --no-input-cursor --cursor-autohide=no --no-keepaspect --wid=71303219 --monitorpixelaspect=1 --osd-scale=1 --sub-ass --embeddedfonts --ass-line-spacing=0 --sub-scale=1 --ass-styles=/home/bee/.config/smplayer/styles.ass --sub-codepage=utf8:ISO-8859-1 --sub-pos=100 --volume=100 --cache=2048 --osd-level=0 --screenshot-template=cap_%F_%p_%02n --audio-channels=2 --af-add=scaletempo --af-add=equalizer=0:0:0:0:0:0:0:0:0:0 --softvol=yes --softvol-max=300 --ytdl --ytdl-format=bestvideo+bestaudio --term-playing-msg=MPV_VERSION=${=mpv-version:}
INFO_VIDEO_WIDTH=${=width}
INFO_VIDEO_HEIGHT=${=height}
INFO_VIDEO_ASPECT=${=video-aspect}
INFO_VIDEO_FPS=${=fps}
INFO_VIDEO_BITRATE=${=video-bitrate}
INFO_VIDEO_FORMAT=${=video-format}
INFO_VIDEO_CODEC=${=video-codec}
INFO_AUDIO_BITRATE=${=audio-bitrate}
INFO_AUDIO_FORMAT=${=audio-format}
INFO_AUDIO_CODEC=${=audio-codec}
INFO_AUDIO_RATE=${=audio-samplerate}
INFO_AUDIO_NCH=${=audio-channels}
INFO_LENGTH=${=length}
INFO_DEMUXER=${=demuxer}
INFO_TITLES=${=disc-titles}
INFO_CHAPTERS=${=chapters}
INFO_TRACKS_COUNT=${=track-list/count}
METADATA_TITLE=${metadata/by-key/title:}
METADATA_ARTIST=${metadata/by-key/artist:}
METADATA_ALBUM=${metadata/by-key/album:}
METADATA_GENRE=${metadata/by-key/genre:}
METADATA_DATE=${metadata/by-key/date:}
METADATA_TRACK=${metadata/by-key/track:}
METADATA_COPYRIGHT=${metadata/by-key/copyright:}
INFO_MEDIA_TITLE=${=media-title:}
--term-status-msg=STATUS: ${=time-pos} / ${=length:0} P: ${=pause} B: ${=paused-for-cache} I: ${=core-idle} http://www.dailymotion.com/video/x2fc1m ... rauss_tech
--slave-broken is deprecated (see manpage).
[input_file] Client connected
Playing: http://www.dailymotion.com/video/x2fc1m ... rauss_tech
[ytdl_hook] WARNING: video doesn't have subtitles
[ytdl_hook] ERROR: requested format not available
[ytdl_hook] youtube-dl failed, trying to play URL directly ...
Failed to recognize file format.
Exiting... (Errors when loading file)