Mpv: Audio --aid=2 (mlp) no sound.

Created on 1 Oct 2019  ·  14Comments  ·  Source: mpv-player/mpv

mpv version and platform

mpv 0.29.1

Reproduction steps

  1. play video file
  2. switch audio track 2
  3. close video

Expected behavior

no sound, but mplayer and other player normal.

Actual behavior

no sound(aid:2)

Log file

https://drive.google.com/file/d/1XPdG4qK3GTfrIDQ-rZ9Erh1iK2S93PFS/view?usp=sharing

Sample files

https://drive.google.com/file/d/1vUN9T3RcSYLlVYNRUCyT8W2bT2DoUPVd/view?usp=sharing

audio win ffmpeg

Most helpful comment

FFmpeg patch, it is on ffmpeg-devel mailing list.

All 14 comments

seems like an ffmpeg or file problem:

ffmpeg -i 葉復台-發發發-美華-國.mpg 
ffmpeg version N-47246-gd51d71c1e3 Copyright (c) 2000-2019 the FFmpeg developers
  built with Apple LLVM version 10.0.1 (clang-1001.0.46.4)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-d51d71c --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --cc=/usr/bin/clang --host-cflags='-Os -w -pipe -march=nehalem -Xclang -target-feature -Xclang -aes -mmacosx-version-min=10.14 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers/' --host-ldflags='-L/usr/local/opt/openssl/lib -L/usr/local/opt/libxml2/lib -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk' --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libgsm --enable-libsoxr --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libxml2 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --disable-decoder=jpeg2000 --extra-cflags=-I/usr/local/Cellar/openjpeg/2.3.1/include/openjpeg-2.3 --enable-openssl --enable-libopus --enable-librtmp --enable-librubberband --enable-ffplay --enable-libsnappy --enable-libspeex --enable-libtesseract --enable-libtheora --enable-libwavpack --enable-libwebp --enable-libx265 --enable-lzma --enable-libzmq --enable-libzimg --enable-videotoolbox --enable-opencl
  libavutil      56. 32.100 / 56. 32.100
  libavcodec     58. 55.100 / 58. 55.100
  libavformat    58. 30.100 / 58. 30.100
  libavdevice    58.  9.100 / 58.  9.100
  libavfilter     7. 58.100 /  7. 58.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
[mpeg @ 0x7f7f1b001800] start time for stream 3 is not set in estimate_timings_from_pts
[mpeg @ 0x7f7f1b001800] Could not find codec parameters for stream 3 (Audio: mlp, 0 channels): unspecified sample format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Guessed Channel Layout for Input Stream #0.2 : stereo
Input #0, mpeg, from '/Volumes/AkemiData/Downloads/葉復台-發發發-美華-國.mpg':
  Duration: 00:04:30.11, start: 2118.966900, bitrate: 9512 kb/s
    Stream #0:0[0x1bf]: Data: dvd_nav_packet
    Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, top first), 720x480 [SAR 8:9 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:2[0xa0]: Audio: pcm_dvd, 48000 Hz, stereo, s16, 1536 kb/s
    Stream #0:3[0xa1]: Audio: mlp, 0 channels

Thx for resp, But mplayer is normal, isn't it also ffmpeg?

This is known bug, misdetection of PCM as MLP.

@richardpl
mpv or ffmpeg bug? Is there a link to the reference?

ffmpeg does the probing so I assume this is an ffmpeg bug. mplayer just vendors an older version of ffmpeg I believe.

@CounterPillow
I tried to use the old mpv version (2016-11-20), the problem is still the same, so that ffmpeg bug has existed for nearly three years?

Next time report it earlier.

mplayer has its own mpg demuxer, so they don't get funny bugs like this.

but mplayer have switched to lavf.

A quick test with debian's mplayer confirms that this is not true.

Make sure you use latest version of mplayer. But that is irrelevant now as I have working patch for project you all hate.

@richardpl
Are you saying ffmpeg? Or mpv or mplayer project? Can I find the fixed version there? Any suggestions?

FFmpeg patch, it is on ffmpeg-devel mailing list.

Closing this in that case.

Was this page helpful?
0 / 5 - 0 ratings