mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.23k stars 2.9k forks source link

can't play DVD #4798

Closed ghost closed 7 years ago

ghost commented 7 years ago

mpv version and platform

mpv 0.26.0 (C) 2000-2017 mpv/MPlayer/mplayer2 projects
 built on UNKNOWN
ffmpeg library versions:
   libavutil       55.34.101 (runtime 55.58.100)
   libavcodec      57.64.101
   libavformat     57.56.101
   libswscale      4.2.100 (runtime 4.6.100)
   libavfilter     6.65.100
   libswresample   2.3.100 (runtime 2.7.100)
ffmpeg version: 3.3.3-3

Reproduction steps

Insert video DVD into the DVD drive open terminal, and type: mpv dvd://

Expected behavior

play

Actual behavior

error

Log file

[   0.002][v][cplayer] mpv 0.26.0 (C) 2000-2017 mpv/MPlayer/mplayer2 projects
[   0.002][v][cplayer]  built on UNKNOWN
[   0.002][v][cplayer] ffmpeg library versions:
[   0.002][v][cplayer]    libavutil       55.34.101 (runtime 55.58.100)
[   0.002][v][cplayer]    libavcodec      57.64.101
[   0.002][v][cplayer]    libavformat     57.56.101
[   0.002][v][cplayer]    libswscale      4.2.100 (runtime 4.6.100)
[   0.002][v][cplayer]    libavfilter     6.65.100
[   0.002][v][cplayer]    libswresample   2.3.100 (runtime 2.7.100)
[   0.002][v][cplayer] ffmpeg version: 3.3.3-3
[   0.002][v][cplayer] 
[   0.002][v][cplayer] Configuration: ./waf configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --confdir=/etc/mpv --zshdir=/usr/share/zsh/vendor-completions --enable-cdda --enable-dvdnav --enable-dvdread --enable-encoding --enable-libmpv-shared --enable-libsmbclient --enable-sdl2 --enable-sndio --enable-zsh-comp --disable-build-date
[   0.002][v][cplayer] List of enabled features: 52arch alsa asm atomics caca cdda cplayer cplugins debug-build drm dvdnav dvdread dvdread-common egl-drm egl-helpers egl-x11 encoding fchmod gbm gbm.h gl gl-wayland gl-x11 glibc-thread-name gnuc iconv is_ffmpeg jack jpeg lcms2 libass libass-osd libav libavcodec libavdevice libbluray libdl libm libmpv-shared librt libsmbclient linux-fstatfs lua nanosleep optimize oss-audio plain-gl posix posix-or-mingw posix-spawn pthreads pulse rubberband sdl2 shm sndio stdatomic termios uchardet vaapi vaapi-drm vaapi-egl vaapi-glx vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vdpau-gl-x11 vt.h wayland x11 xv zlib zsh-comp
[   0.002][v][cplayer] Command line options: 'dvd://' '--log-file=output1111.txt'
[   0.002][v][cplayer] mpv 0.26.0 (C) 2000-2017 mpv/MPlayer/mplayer2 projects
[   0.002][v][cplayer]  built on UNKNOWN
[   0.002][v][cplayer] ffmpeg library versions:
[   0.002][v][cplayer]    libavutil       55.34.101 (runtime 55.58.100)
[   0.002][v][cplayer]    libavcodec      57.64.101
[   0.002][v][cplayer]    libavformat     57.56.101
[   0.002][v][cplayer]    libswscale      4.2.100 (runtime 4.6.100)
[   0.002][v][cplayer]    libavfilter     6.65.100
[   0.002][v][cplayer]    libswresample   2.3.100 (runtime 2.7.100)
[   0.002][v][cplayer] ffmpeg version: 3.3.3-3
[   0.002][v][cplayer] 
[   0.002][v][cplayer] Configuration: ./waf configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --confdir=/etc/mpv --zshdir=/usr/share/zsh/vendor-completions --enable-cdda --enable-dvdnav --enable-dvdread --enable-encoding --enable-libmpv-shared --enable-libsmbclient --enable-sdl2 --enable-sndio --enable-zsh-comp --disable-build-date
[   0.002][v][cplayer] List of enabled features: 52arch alsa asm atomics caca cdda cplayer cplugins debug-build drm dvdnav dvdread dvdread-common egl-drm egl-helpers egl-x11 encoding fchmod gbm gbm.h gl gl-wayland gl-x11 glibc-thread-name gnuc iconv is_ffmpeg jack jpeg lcms2 libass libass-osd libav libavcodec libavdevice libbluray libdl libm libmpv-shared librt libsmbclient linux-fstatfs lua nanosleep optimize oss-audio plain-gl posix posix-or-mingw posix-spawn pthreads pulse rubberband sdl2 shm sndio stdatomic termios uchardet vaapi vaapi-drm vaapi-egl vaapi-glx vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vdpau-gl-x11 vt.h wayland x11 xv zlib zsh-comp
[   0.002][v][cplayer] Reading config file /etc/mpv/encoding-profiles.conf
[   0.003][v][cplayer] Reading config file /home/user/.config/mpv/mpv.conf
[   0.003][v][cplayer] Setting option 'volume' = '50' (flags = 4)
[   0.003][v][cplayer] Setting option 'log-file' = 'output1111.txt' (flags = 8)
[   0.004][v][global] user path: 'output1111.txt' -> 'output1111.txt'
[   0.004][v][osc] Loading lua script @osc.lua...
[   0.004][v][global] config path: 'scripts' -/-> '/home/user/.config/mpv/scripts'
[   0.004][v][global] config path: 'scripts' -/-> '/home/user/.mpv/scripts'
[   0.004][v][global] config path: 'scripts' -/-> '/etc/mpv/scripts'
[   0.004][v][osc] loading mp.defaults
[   0.004][v][osc] loading @osc.lua
[   0.007][v][global] config path: 'lua-settings/osc.conf' -/-> '/home/user/.config/mpv/lua-settings/osc.conf'
[   0.007][v][global] config path: 'lua-settings/osc.conf' -/-> '/home/user/.mpv/lua-settings/osc.conf'
[   0.007][v][global] config path: 'lua-settings/osc.conf' -/-> '/etc/mpv/lua-settings/osc.conf'
[   0.007][v][osc] lua-settings/osc.conf not found. 
[   0.007][v][cplayer] Run command: define-section, flags=0, args=[showhide, mouse_move script-binding osc/__keybinding1
[   0.007][v][cplayer] mouse_leave script-binding osc/__keybinding2
[   0.007][v][cplayer] , force]
[   0.007][v][cplayer] Run command: enable-section, flags=0, args=[showhide, allow-hide-cursor+allow-vo-dragging]
[   0.007][v][cplayer] Run command: define-section, flags=0, args=[input, mouse_btn0 script-binding osc/__keybinding3
[   0.007][v][cplayer] shift+mouse_btn0 script-binding osc/__keybinding4
[   0.007][v][cplayer] mouse_btn2 script-binding osc/__keybinding5
[   0.007][v][cplayer] mouse_btn3 script-binding osc/__keybinding6
[   0.007][v][cplayer] mouse_btn4 script-binding osc/__keybinding7
[   0.007][v][cplayer] axis_up script-binding osc/__keybinding8
[   0.007][v][cplayer] axis_down script-binding osc/__keybinding9
[   0.007][v][cplayer] mouse_btn0_dbl ignore
[   0.007][v][cplayer] shift+mouse_btn0_dbl ignore
[   0.007][v][cplayer] mouse_btn2_dbl ignore
[   0.007][v][cplayer] , force]
[   0.007][v][cplayer] Run command: enable-section, flags=0, args=[input, ]
[   0.007][v][cplayer] Run command: define-section, flags=0, args=[input_osc, del script-binding osc/__keybinding10
[   0.007][v][cplayer] , default]
[   0.007][v][cplayer] Run command: enable-section, flags=0, args=[input_osc, allow-hide-cursor+allow-vo-dragging]
[   0.007][v][cplayer] Run command: define-section, flags=0, args=[input_forced_osc, , force]
[   0.007][v][cplayer] Run command: enable-section, flags=0, args=[input_forced_osc, allow-hide-cursor+allow-vo-dragging]
[   0.007][v][cplayer] Done loading @osc.lua.
[   0.007][v][ytdl_hook] Loading lua script @ytdl_hook.lua...
[   0.007][v][global] config path: 'scripts' -/-> '/home/user/.config/mpv/scripts'
[   0.007][v][global] config path: 'scripts' -/-> '/home/user/.mpv/scripts'
[   0.007][v][global] config path: 'scripts' -/-> '/etc/mpv/scripts'
[   0.007][v][ytdl_hook] loading mp.defaults
[   0.007][v][cplayer] Run command: disable-section, flags=0, args=[input]
[   0.007][v][global] config path: 'fonts' -/-> '/home/user/.config/mpv/fonts'
[   0.007][v][global] config path: 'fonts' -/-> '/home/user/.mpv/fonts'
[   0.007][v][global] config path: 'fonts' -/-> '/etc/mpv/fonts'
[   0.007][v][osd/libass] Shaper: FriBidi 0.19.7 (SIMPLE) HarfBuzz-ng 1.4.2 (COMPLEX)
[   0.007][v][global] config path: 'subfont.ttf' -/-> '/home/user/.config/mpv/subfont.ttf'
[   0.007][v][global] config path: 'subfont.ttf' -/-> '/home/user/.mpv/subfont.ttf'
[   0.007][v][global] config path: 'subfont.ttf' -/-> '/etc/mpv/subfont.ttf'
[   0.007][v][global] config path: 'fonts.conf' -/-> '/home/user/.config/mpv/fonts.conf'
[   0.007][v][global] config path: 'fonts.conf' -/-> '/home/user/.mpv/fonts.conf'
[   0.007][v][global] config path: 'fonts.conf' -/-> '/etc/mpv/fonts.conf'
[   0.007][v][osd/libass] Setting up fonts...
[   0.008][v][ytdl_hook] loading @ytdl_hook.lua
[   0.008][v][global] config path: 'lua-settings/ytdl_hook.conf' -/-> '/home/user/.config/mpv/lua-settings/ytdl_hook.conf'
[   0.008][v][global] config path: 'lua-settings/ytdl_hook.conf' -/-> '/home/user/.mpv/lua-settings/ytdl_hook.conf'
[   0.008][v][global] config path: 'lua-settings/ytdl_hook.conf' -/-> '/etc/mpv/lua-settings/ytdl_hook.conf'
[   0.008][v][ytdl_hook] lua-settings/ytdl_hook.conf not found. 
[   0.008][v][cplayer] Run command: hook-add, flags=0, args=[on_load, 1, 10]
[   0.008][v][cplayer] Run command: hook-add, flags=0, args=[on_preloaded, 2, 10]
[   0.008][v][cplayer] Done loading @ytdl_hook.lua.
[   0.009][v][global] config path: 'scripts' -/-> '/home/user/.config/mpv/scripts'
[   0.009][v][global] config path: 'scripts' -/-> '/home/user/.mpv/scripts'
[   0.009][v][global] config path: 'scripts' -/-> '/etc/mpv/scripts'
[   0.009][v][global] config path: 'watch_later' -> '/home/user/.config/mpv/watch_later'
[   0.009][i][cplayer] Playing: dvd://
[   0.009][v][cplayer] Running hook: ytdl_hook/on_load
[   0.011][v][osd/libass] Using font provider fontconfig
[   0.011][v][osd/libass] Done.
[   0.012][v][cplayer] Run command: hook-ack, flags=0, args=[on_load]
[   0.012][v][dvdnav] Opening dvd://
[   0.320][v][dvdnav] List of available titles:
[   0.522][v][dvdnav] title:   0 duration: 01:51:50
[   0.522][v][dvdnav] title:   1 duration: 01:51:05
[   0.522][v][dvdnav] title:   2 duration: 00:00:26
[   0.659][v][dvdnav] title:   3 duration: 00:00:58
[   0.724][v][dvdnav] title:   4 duration: 00:01:52
[   0.792][v][dvdnav] title:   5 duration: 00:00:05
[   0.792][v][dvdnav] title:   6 duration: 00:00:34
[   0.855][v][dvdnav] title:   7 duration: 00:00:27
[   0.855][v][dvdnav] title:   8 duration: 00:00:27
[   0.855][i][dvdnav] Selecting title 0.
[   0.856][v][dvdnav] Stream opened successfully.
[   0.856][v][demux] Trying demuxers for level=force.
[   0.856][v][dvdnav] DVDNAV: event DVDNAV_HOP_CHANNEL (12).
[   0.856][v][dvdnav] DVDNAV: event DVDNAV_HIGHLIGHT (9).
[   0.856][v][dvdnav] DVDNAV: event DVDNAV_VTS_CHANGE (5).
[   0.856][i][dvdnav] DVDNAV, switched to title: 1
[   0.856][v][dvdnav] DVDNAV: event DVDNAV_CELL_CHANGE (6).
[   0.856][v][dvdnav] DVDNAV: event DVDNAV_SPU_CLUT_CHANGE (10).
[   0.856][v][dvdnav] DVDNAV: event DVDNAV_SPU_STREAM_CHANGE (3).
[   0.856][v][dvdnav] DVDNAV: event DVDNAV_AUDIO_STREAM_CHANGE (4).
[   1.095][e][dvdnav] Error getting next block from DVD 1 (Error reading NAV packet.)
[   1.139][e][dvdnav] Error getting next block from DVD 1 (Error reading NAV packet.)
[   1.139][v][disc] reset to time: 0.000000
[   1.139][v][demux] Trying demuxers for level=force.
[   1.183][e][dvdnav] Error getting next block from DVD 1 (Error reading NAV packet.)
[   1.184][v][lavf] Found 'mpeg' at score=100 size=0 (forced).
[   1.231][e][dvdnav] Error getting next block from DVD 1 (Error reading NAV packet.)
[   1.275][e][dvdnav] Error getting next block from DVD 1 (Error reading NAV packet.)
[   1.319][e][dvdnav] Error getting next block from DVD 1 (Error reading NAV packet.)
[   1.363][e][dvdnav] Error getting next block from DVD 1 (Error reading NAV packet.)
[   1.407][e][dvdnav] Error getting next block from DVD 1 (Error reading NAV packet.)
[   1.455][e][dvdnav] Error getting next block from DVD 1 (Error reading NAV packet.)
[   1.455][e][lavf] av_find_stream_info() failed
[   1.456][v][cplayer] Opening failed or was aborted: dvd://
[   1.456][v][cplayer] finished playback, unrecognized file format (reason 4)
[   1.456][e][cplayer] Failed to recognize file format.
[   1.456][i][cplayer] 
[   1.456][i][cplayer] 
[   1.456][i][cplayer] Exiting... (Errors when loading file)
[   1.456][v][ytdl_hook] Exiting...
[   1.456][v][osc] Exiting...
wiiaboo commented 7 years ago

Can you play it with VLC?

ghost commented 7 years ago

I can't play with VLC also. Here is the VLC terminal output:

libdvdnav: DVD disk reports itself with Region mask 0x00fd0000. Regions: 2
libdvdnav: Language 'en' not found, using '��' instead
libdvdnav: Menu Languages available: �� 
libdvdnav: Language 'en' not found, using '��' instead
libdvdnav: Menu Languages available: �� 
libdvdnav: Language 'en' not found, using '��' instead
libdvdnav: Menu Languages available: �� 
libdvdnav: Language 'en' not found, using '��' instead
libdvdnav: Menu Languages available: �� 
[00007f55cc005d58] core input error: ES_OUT_RESET_PCR called
[00007f55cc005d58] core input error: ES_OUT_RESET_PCR called
[00007f55cc005d58] core input error: ES_OUT_RESET_PCR called
[00007f55cc005d58] core input error: ES_OUT_RESET_PCR called
wiiaboo commented 7 years ago

Then it's probably a dvdnav/dvdread issue. Open an issue in https://code.videolan.org/videolan/libdvdnav/issues or in videolan's bug tracker.