You are not logged in.

#1 2015-08-30 16:04:58

Webbeh
Member
Registered: 2012-07-08
Posts: 51

[Solved] LibAVFormat - SpdifEnc not working properly.

Hello,

After a reboot of my computer, which happened with NO upgrade whatsoever, I can currently not use any SPDIF passthrough option on MPV without having this kind of error :

ALSA lib conf.c:4590:(parse_args) Unknown parameter AES0
ALSA lib conf.c:4723:(snd_config_expand) Parse arguments error: No such file or directory
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM hw:2,7,AES0=6,AES1=130,AES2=0,AES3=2
[ao/alsa] Playback open error: No such file or directory
[ao] Failed to initialize audio driver 'alsa'

I have been using the same config file for MPV for almost a year now without having any issue. No hardware was changed, the working HDMI audio device is still the same and still at 2,7.
Every other codec works perfectly, but all the ad=spdif:XXXX options are just plainly not working.

I have tried using ffmpeg-git, mpv-git (and x265-hg, as ffmpeg-git dependency), no change at all.

Here's a complete log of a movie that WAS working 2 reboots ago with the exact same command line and options, and is not working anymore (using mpv-git and ffmpeg-git, but official mpv and ffmpeg give the same result).

[cplayer] Command line options: 'The Mask.mkv' '-v'
[cplayer] mpv git-f1778d1 (C) 2000-2015 mpv/MPlayer/mplayer2 projects
[cplayer]  built on Wed Aug 26 20:14:08 CEST 2015
[cplayer] ffmpeg library versions:
[cplayer]    libavutil       54.27.100
[cplayer]    libavcodec      56.41.100
[cplayer]    libavformat     56.36.100
[cplayer]    libswscale      3.1.101
[cplayer]    libavfilter     5.16.101
[cplayer]    libswresample   1.2.100
[cplayer] 
[cplayer] Configuration: ./waf configure --prefix=/usr --confdir=/etc/mpv --enable-zsh-comp --enable-libmpv-shared --enable-cdda
[cplayer] List of enabled features: alsa asm atomics audio-input av-pix-fmt-mmal avcodec-chroma-pos-api avframe-metadata avframe-skip-samples build-date caca cdda cplayer debug-build dlopen drm dvbin dvdnav dvdread enca encoding fchmod gl gl-wayland gl-x11 glibc-thread-name glob iconv jack jpeg ladspa lcms2 libass libass-osd libav libavdevice libavfilter libbluray libdl libguess libm libmpv-shared librt libsmbclient libswresample libv4l2 linux-fstatfs lua nanosleep optimize oss-audio oss-audio-native posix posix-or-mingw posix-spawn pthreads pulse pvr resampler rubberband shm stdatomic subprocess termios tv tv-v4l2 vaapi vaapi-glx vaapi-hwaccel vaapi-vpp vdpau vdpau-gl-x11 vdpau-hwaccel videodev vt.h wayland x11 xext xinerama xrandr xss xv zlib zsh-comp
[global] config path: '' -> '/home/oak/.mpv'
[global] config path: 'mpv.conf' -/-> '/home/oak/.mpv/mpv.conf'
[global] config path: 'config' -> '/home/oak/.mpv/config'
[global] config path: 'mpv.conf' -/-> '/etc/mpv/mpv.conf'
[global] config path: 'config' -/-> '/etc/mpv/config'
[cplayer] Reading config file /home/oak/.mpv/config
[cplayer] Setting option 'vo' = 'vdpau' (flags = 4)
[cplayer] Setting option 'hwdec' = 'vdpau' (flags = 4)
[cplayer] Setting option 'ao' = 'alsa:device=[hw:2,7]' (flags = 4)
[cplayer] Setting option 'vd-lavc-threads' = '8' (flags = 4)
[cplayer] Setting option 'ad' = 'spdif:dtshd,spdif:truehd,spdif:dts,spdif:eac3,spdif:ac3' (flags = 4)
[cplayer] Setting option 'audio-channels' = '6' (flags = 4)
[cplayer] Setting option 'ad-lavc-ac3drc' = '0' (flags = 4)
[cplayer] Setting option 'fs' = 'yes' (flags = 4)
[cplayer] Setting option 'osc' = 'no' (flags = 4)
[cplayer] Setting option 'user-agent' = 'Mozilla/5.0' (flags = 4)
[cplayer] Setting option 'cache' = '8192' (flags = 4)
[cplayer] Setting option 'cache-seek-min' = '50' (flags = 4)
[cplayer] Setting option 'v' = '' (flags = 8)
[global] config path: 'input.conf' -/-> '/home/oak/.mpv/input.conf'
[global] config path: 'input.conf' -/-> '/etc/mpv/input.conf'
[input] Falling back on default (hardcoded) input config
[ytdl_hook] Loading script @ytdl_hook.lua...
[global] config path: 'scripts' -/-> '/home/oak/.mpv/scripts'
[global] config path: 'scripts' -/-> '/etc/mpv/scripts'
[ytdl_hook] loading mp.defaults
[ytdl_hook] loading @ytdl_hook.lua
[cplayer] Run command: hook-add, flags=0, args=[on_load, 1, 10]
[cplayer] Done loading @ytdl_hook.lua.
[global] config path: 'scripts' -/-> '/home/oak/.mpv/scripts'
[global] config path: 'scripts' -/-> '/etc/mpv/scripts'
[global] config path: 'watch_later' -> '/home/oak/.mpv/watch_later'
[cplayer] Playing: The Mask.mkv
[cplayer] Running hook: ytdl_hook/on_load
[cplayer] Run command: hook-ack, flags=0, args=[on_load]
[file] Opened: The Mask.mkv
[cache] Cache size set to 83192 KiB (75000 KiB backbuffer)
[demux] Trying demuxer: disc (force-level: normal)
[demux] Trying demuxer: edl (force-level: normal)
[demux] Trying demuxer: cue (force-level: normal)
[demux] Trying demuxer: rawaudio (force-level: normal)
[demux] Trying demuxer: rawvideo (force-level: normal)
[demux] Trying demuxer: tv (force-level: normal)
[demux] Trying demuxer: libass (force-level: normal)
[demux] Trying demuxer: mkv (force-level: normal)
[mkv] Found the head...
[mkv] + a segment...
[mkv] Parsing seek head...
[mkv] |+ segment information...
[mkv] | + timecode scale: 1000000
[mkv] | + duration: 6072.483s
[mkv] | + segment uid 8a c8 1d b4 fa c4 f0 cf b6 2e 19 4f 8b f9 c7 a7
[mkv] |+ segment tracks...
[mkv] | + a track...
[mkv] |  + Track number: 1
[mkv] |  + Name: x264 CRF 19.5 High@L4.1 by HDZ @8113.67 kb/s
[mkv] |  + Track type: Video
[mkv] |  + Video track
[mkv] |   + Display width: 1920
[mkv] |   + Display height: 1080
[mkv] |   + Pixel width: 1920
[mkv] |   + Pixel height: 1080
[mkv] |  + Codec ID: V_MPEG4/ISO/AVC
[mkv] |  + CodecPrivate, length 42
[mkv] |  + Default flag: 0
[mkv] |  + Default duration: 41.708ms ( = 23.976 fps)
[mkv] | + a track...
[mkv] |  + Track number: 2
[mkv] |  + Name: DTS-HD Master Audio 5.1 / 48 kHz / 2099 kbps / 16-bit English
[mkv] |  + Track type: Audio
[mkv] |  + Audio track
[mkv] |   + Sampling frequency: 48000.000000
[mkv] |   + Channels: 6
[mkv] |  + Codec ID: A_DTS
[mkv] |  + Default flag: 0
[mkv] |  + Default duration: 10.667ms ( = 93.750 fps)
[mkv] | + a track...
[mkv] |  + Track number: 3
[mkv] |  + Name: DTS-HD Master Audio 5.1 / 48 kHz / 2115 kbps / 16-bit Français
[mkv] |  + Track type: Audio
[mkv] |  + Audio track
[mkv] |   + Sampling frequency: 48000.000000
[mkv] |   + Channels: 6
[mkv] |  + Codec ID: A_DTS
[mkv] |  + Language: fre
[mkv] |  + Default flag: 0
[mkv] |  + Default duration: 10.667ms ( = 93.750 fps)
[mkv] | + a track...
[mkv] |  + Track number: 4
[mkv] |  + Name: Français Complets
[mkv] |  + Track type: Subtitle
[mkv] |  + Codec ID: S_TEXT/UTF8
[mkv] |  + Language: fre
[mkv] |  + Default flag: 0
[mkv] | + a track...
[mkv] |  + Track number: 5
[mkv] |  + Name: Français Forcés
[mkv] |  + Track type: Subtitle
[mkv] |  + Codec ID: S_TEXT/UTF8
[mkv] |  + Language: fre
[mkv] |  + Default flag: 0
[mkv] Parsing attachments...
[mkv] Attachment: The Mask - 1080p.png, image/png, 2962597 bytes
[mkv] Parsing chapters...
[mkv] New edition 0
[mkv] Default edition flag: 0
[mkv] Chapter 0 from 00:00:00.000 to 00:00:00.000, 00:00:00.000
[mkv] Chapter 1 from 00:03:38.343000000 to 00:00:00.000, 00:03:38.343
[mkv] Chapter 2 from 00:06:59.377000000 to 00:00:00.000, 00:06:59.377
[mkv] Chapter 3 from 00:09:28.693000000 to 00:00:00.000, 00:09:28.693
[mkv] Chapter 4 from 00:12:18.29000000 to 00:00:00.000, 00:12:18.029
[mkv] Chapter 5 from 00:14:55.770000000 to 00:00:00.000, 00:14:55.770
[mkv] Chapter 6 from 00:17:48.609000000 to 00:00:00.000, 00:17:48.609
[mkv] Chapter 7 from 00:22:53.872000000 to 00:00:00.000, 00:22:53.872
[mkv] Chapter 8 from 00:26:33.550000000 to 00:00:00.000, 00:26:33.550
[mkv] Chapter 9 from 00:30:34.624000000 to 00:00:00.000, 00:30:34.624
[mkv] Chapter 10 from 00:33:57.369000000 to 00:00:00.000, 00:33:57.369
[mkv] Chapter 11 from 00:37:26.35000000 to 00:00:00.000, 00:37:26.035
[mkv] Chapter 12 from 00:39:43.256000000 to 00:00:00.000, 00:39:43.256
[mkv] Chapter 13 from 00:42:54.614000000 to 00:00:00.000, 00:42:54.614
[mkv] Chapter 14 from 00:46:03.52000000 to 00:00:00.000, 00:46:03.052
[mkv] Chapter 15 from 00:48:35.79000000 to 00:00:00.000, 00:48:35.079
[mkv] Chapter 16 from 00:52:56.465000000 to 00:00:00.000, 00:52:56.465
[mkv] Chapter 17 from 00:55:48.345000000 to 00:00:00.000, 00:55:48.345
[mkv] Chapter 18 from 01:00:47.310000000 to 00:00:00.000, 01:00:47.310
[mkv] Chapter 19 from 01:04:04.716000000 to 00:00:00.000, 01:04:04.716
[mkv] Chapter 20 from 01:09:00.720000000 to 00:00:00.000, 01:09:00.720
[mkv] Chapter 21 from 01:16:01.182000000 to 00:00:00.000, 01:16:01.182
[mkv] Chapter 22 from 01:19:52.621000000 to 00:00:00.000, 01:19:52.621
[mkv] Chapter 23 from 01:26:11.833000000 to 00:00:00.000, 01:26:11.833
[mkv] Chapter 24 from 01:28:49.741000000 to 00:00:00.000, 01:28:49.741
[mkv] Chapter 25 from 01:32:57.655000000 to 00:00:00.000, 01:32:57.655
[mkv] |+ found cluster
[mkv] Deferring reading cues.
[mkv] All headers are parsed!
[mkv] Aspect: 1.777778
[demux] Detected file format: Matroska
[cache] blocking for STREAM_CTRL 8
[cache] blocking for STREAM_CTRL 8
[find_files] Loading external files in .
[global] config path: 'sub/' -/-> '/home/oak/.mpv/sub/'
[global] config path: 'sub/' -/-> '/etc/mpv/sub/'
[cplayer]  (+) Video --vid=1 'x264 CRF 19.5 High@L4.1 by HDZ @8113.67 kb/s' (h264)
[cplayer]      Video --vid=2 [P] 'The Mask - 1080p.png' (png)
[cplayer]  (+) Audio --aid=1 --alang=eng 'DTS-HD Master Audio 5.1 / 48 kHz / 2099 kbps / 16-bit English' (dts)
[cplayer]      Audio --aid=2 --alang=fre 'DTS-HD Master Audio 5.1 / 48 kHz / 2115 kbps / 16-bit Français' (dts)
[cplayer]      Subs  --sid=1 --slang=fre 'Français Complets' (subrip)
[cplayer]      Subs  --sid=2 --slang=fre 'Français Forcés' (subrip)
[cplayer] File tags:
[cplayer]  Title: The Mask / 1994 / 1080p HDZ BD-Rip
[vo/vdpau/x11] X11 opening display: :0.0
[vo/vdpau/x11] X11 running at 1920x1080 (":0.0" => local display)
[vo/vdpau/x11] Detected wm supports NetWM.
[vo/vdpau/x11] Detected wm supports ABOVE state.
[vo/vdpau/x11] Detected wm supports BELOW state.
[vo/vdpau/x11] Detected wm supports FULLSCREEN state.
[vo/vdpau/x11] Display 0 (HDMI-0): [0, 0, 1920, 1080] @ 50.000000 FPS
[vo/vdpau/x11] Current display FPS: 50.000000
[vo/vdpau] Assuming 50.000000 FPS for framedrop.
[vd] Container reported FPS: 23.976025
[vd] Codec list:
[vd]     lavc:h264 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
[vd]     lavc:h264_vdpau (h264) - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration)
[vd] Opening video decoder lavc:h264
[vd] Using hardware decoding.
[vd] Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [lavc:h264]
[vo/vdpau/x11] Disabling screensaver.
[ad] Codec list:
[ad]     spdif:dts - libavformat/spdifenc audio pass-through decoder
[ad]     lavc:dca (dts) - DCA (DTS Coherent Acoustics)
[ad]     spdif:dts-hd (dts) - libavformat/spdifenc audio pass-through decoder
[ad] Opening audio decoder spdif:dts
[ad] Selected audio codec: libavformat/spdifenc audio pass-through decoder [spdif:dts]
[cplayer] Starting playback...
[af] Audio filter chain:
[af]   [in] 48000Hz stereo 2ch spdif-dts
[af]   [out] 48000Hz stereo 2ch spdif-dts
[af]   [ao] 48000Hz stereo 2ch spdif-dts
[ao] Trying preferred audio driver 'alsa'
[ao/alsa] Setting option 'device' = 'hw:2,7' (flags = 0)
[ao/alsa] requested format: 48000 Hz, stereo channels, spdif-dts
[ao/alsa] using ALSA version: 1.0.29
[ao/alsa] opening device 'hw:2,7' => 'hw:2,7,AES0=6,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4590:(parse_args) Unknown parameter AES0
ALSA lib conf.c:4723:(snd_config_expand) Parse arguments error: No such file or directory
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM hw:2,7,AES0=6,AES1=130,AES2=0,AES3=2
[ao/alsa] Playback open error: No such file or directory
[ao] Failed to initialize audio driver 'alsa'
[ad] Uninit audio decoder.
[ad] Codec list:
[ad]     spdif:dts - libavformat/spdifenc audio pass-through decoder
[ad]     lavc:dca (dts) - DCA (DTS Coherent Acoustics)
[ad]     spdif:dts-hd (dts) - libavformat/spdifenc audio pass-through decoder
[ad] Opening audio decoder spdif:dts
[ad] Selected audio codec: libavformat/spdifenc audio pass-through decoder [spdif:dts]
[vd] Pixel formats supported by decoder: vdpau vaapi_vld yuv420p
[af] Audio filter chain:
[af]   [in] 48000Hz stereo 2ch spdif-dts
[af]   [out] 48000Hz stereo 2ch spdif-dts
[af]   [ao] 48000Hz stereo 2ch spdif-dts
[ao] Trying preferred audio driver 'alsa'
[ao/alsa] Setting option 'device' = 'hw:2,7' (flags = 0)
[ao/alsa] requested format: 48000 Hz, stereo channels, spdif-dts
[ao/alsa] using ALSA version: 1.0.29
[ao/alsa] opening device 'hw:2,7' => 'hw:2,7,AES0=6,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4590:(parse_args) Unknown parameter AES0
ALSA lib conf.c:4723:(snd_config_expand) Parse arguments error: No such file or directory
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM hw:2,7,AES0=6,AES1=130,AES2=0,AES3=2
[ao/alsa] Playback open error: No such file or directory
[ao] Failed to initialize audio driver 'alsa'
[cplayer] Could not open/initialize audio device -> no sound.
[ad] Uninit audio filters...
[ad] Uninit audio decoder.
[cplayer] Audio: no audio
[vf] Video filter chain:
[vf]   [vd] 1920x1080 vdpau auto/auto CL=mpeg2/4/h264
[vf]   [in] 1920x1080 vdpau bt.709/limited CL=mpeg2/4/h264
[vf]   [out] 1920x1080 vdpau bt.709/limited CL=mpeg2/4/h264
[cplayer] VO: [vdpau] 1920x1080 vdpau
[cplayer] VO: Description: VDPAU with X11
[vo/vdpau/x11] not waiting for MapNotify
[vo/vdpau] Compositing window manager detected. Assuming timing info is inaccurate.
[vo/vdpau] Window size: 1920x1080
[vo/vdpau] Video source: 1920x1080 (1920x1080)
[vo/vdpau] Video display: (0, 0) 1920x1080 -> (0, 0) 1920x1080
[vo/vdpau] Video scale: 1.000000/1.000000
[vo/vdpau] OSD borders: l=0 t=0 r=0 b=0
[vo/vdpau] Video borders: l=0 t=0 r=0 b=0
[vo/vdpau] Recreating vdpau video mixer.
[global] config path: 'fonts' -/-> '/home/oak/.mpv/fonts'
[global] config path: 'fonts' -/-> '/etc/mpv/fonts'
[global] config path: 'subfont.ttf' -/-> '/home/oak/.mpv/subfont.ttf'
[global] config path: 'subfont.ttf' -/-> '/etc/mpv/subfont.ttf'
[global] config path: 'fonts.conf' -/-> '/home/oak/.mpv/fonts.conf'
[global] config path: 'fonts.conf' -/-> '/etc/mpv/fonts.conf'
[osd/libass] Setting up fonts...
[osd/libass] Done.
[global] config path: 'fonts' -/-> '/home/oak/.mpv/fonts'
[global] config path: 'fonts' -/-> '/etc/mpv/fonts'
[global] config path: 'subfont.ttf' -/-> '/home/oak/.mpv/subfont.ttf'
[global] config path: 'subfont.ttf' -/-> '/etc/mpv/subfont.ttf'
[global] config path: 'fonts.conf' -/-> '/home/oak/.mpv/fonts.conf'
[global] config path: 'fonts.conf' -/-> '/etc/mpv/fonts.conf'
[osd/libass] Setting up fonts...
[osd/libass] Done.
[global] config path: 'fonts' -/-> '/home/oak/.mpv/fonts'
[global] config path: 'fonts' -/-> '/etc/mpv/fonts'
[global] config path: 'subfont.ttf' -/-> '/home/oak/.mpv/subfont.ttf'
[global] config path: 'subfont.ttf' -/-> '/etc/mpv/subfont.ttf'
[global] config path: 'fonts.conf' -/-> '/home/oak/.mpv/fonts.conf'
[global] config path: 'fonts.conf' -/-> '/etc/mpv/fonts.conf'
[osd/libass] Setting up fonts...
[osd/libass] Done.
[cplayer] first video frame after restart shown
[cplayer] playback restart complete
[statusline] V: 00:00:00 / 01:41:12 (0%) Cache: 10s+7MB
[cplayer] Run command: quit, flags=9, args=[0]
[cplayer] EOF code: 6  
[vd] Uninit video.
[cache] Terminating cache...
[cache] Cache exiting...
[cplayer] 
[cplayer] 
[cplayer] Exiting... (Quit)
[ytdl_hook] Exiting...
[vo/vdpau/x11] Enabling screensaver.
[vo/vdpau/x11] uninit ...

I am currently trying a rollback to a few days ago, and will try a full reinstall too. But if someone has any idea why this doesn't work anymore... I'd be pleased to know !

Thank you !

Last edited by Webbeh (2015-09-12 02:25:31)

Offline

#2 2015-09-12 02:24:06

Webbeh
Member
Registered: 2012-07-08
Posts: 51

Re: [Solved] LibAVFormat - SpdifEnc not working properly.

After downgrading MPV from version 1:0.10.0-1 to 0.9.2-2, it works again.

Reporting this bug on MPV's team.

EDIT: Follow the issue : https://github.com/mpv-player/mpv/issues/2314

Last edited by Webbeh (2015-09-12 02:41:14)

Offline

Board footer

Powered by FluxBB