[mythtv-users] DVD audio problems (PCM_S16BE)

Neil Salstrom salstrom at gmail.com
Sat Nov 9 19:34:39 UTC 2013


I've had an issue since upgrading to 0.27-fixes where DVD's with stereo
audio don't play the audio in the main video track.  Audio plays fine
during the menu however when the movie itself plays there is no sound.  It
play fine using VLC on the same system.

I tried again this morning using a compile from the latest git of 0.27-fixes

We have a number of exercise DVD's and a dog training DVD that all have
this issue.  For the dog training DVD the audio information according to
VLC is:

Codec: DVD lpcm audio (lpcm)
Language: English
Channels: Stereo
Sample rate: 48000 Hz
Bits per sample: 16

During playback (no audio can be heard) bringing up the playback data shows
the audio as:

Audio: PCM_S16BE
Channels: 2
Sample Rate: 48.0kHz

During the menu (when audio can be heard) the playback data shows:

Audio: AC3
Channels: 2
Sample Rate: 48.0kHz

My mythtv version is:

mythfrontend --version
Please attach all output as a file in bug reports.
MythTV Version : v0.27-79-gd31e729-dirty
MythTV Branch : fixes/0.27
Network Protocol : 77
Library API : 0.27.20131107-1
QT Version : 4.8.1
Options compiled in:
 linux profile use_hidesyms using_alsa using_pulse using_backend
using_bindings_perl using_bindings_python using_bindings_php using_dvb
using_frontend using_hdhomerun using_libcrypto using_libdns_sd
using_libfftw3 using_libxml2 using_lirc using_mheg using_opengl
using_opengl_video using_qtwebkit using_qtscript using_qtdbus using_sdl
using_taglib using_v4l2 using_x11 using_xrandr using_xv using_profiletype
using_mythlogserver using_bindings_perl using_bindings_python
using_bindings_php using_mythtranscode using_opengl using_vdpau
using_ffmpeg_threads using_mheg using_libass using_libxml2

A playback log shows:

2013-11-09 10:38:06.150933 I  TV: Changing from None to WatchingDVD
2013-11-09 10:38:06.153758 N  AudioPlayer: Enabling Audio
2013-11-09 10:38:06.156384 I  TV: Main UI disabled.
2013-11-09 10:38:06.156583 I  TV: Entering main playback loop.
2013-11-09 10:38:06.157991 I  ScreenSaverX11Private: DPMS Deactivated 1
2013-11-09 10:38:06.180352 I  VDPAU: Added 2 output surfaces (total 4, max
4)
2013-11-09 10:38:06.763451 I  AFD: codec AC3 has 0 channels
2013-11-09 10:38:06.763817 I  AFD: Opened codec 0x7fd4cc049220, id(AC3)
type(Audio)
2013-11-09 10:38:06.763834 I  DVD Audio Track #0 Language Extension Code - 0
2013-11-09 10:38:06.763861 I  AFD: Audio Track #1, of type (Normal) is A/V
stream #3 (id=0x80) and has 0 channels in the Undetermined
language(7695972).
2013-11-09 10:38:06.764002 I  AFD: Audio is disabled - trying to restart it
2013-11-09 10:38:06.764024 I  AFD: Selected track 1: Undetermined AC3 2ch
(A/V Stream #3)
2013-11-09 10:38:06.764030 I  AFD: Audio data is planar
2013-11-09 10:38:06.764046 I  AFD: Initializing audio parms from audio
track #1
2013-11-09 10:38:06.764064 I  AFD: Audio format changed from id(NONE)
-1Hz -1ch -1bps     (profile 0) to id(AC3)  48000Hz  2ch 32bps     (profile
0)
2013-11-09 10:38:06.764076 I  AOBase: Reconfigure(): No change -> exiting
2013-11-09 10:38:08.003833 I  AOBase: Pause 1
2013-11-09 10:38:08.003952 I  AOBase: Pause 1
2013-11-09 10:38:08.004032 I  AOBase: Pause 0
2013-11-09 10:38:08.010705 I  AOBase: OutputAudioLoop: Play Event
2013-11-09 10:38:13.670524 I  ALSA: WriteAudio: buffer underrun
2013-11-09 10:38:13.671153 I  AOBase: Pause 1
2013-11-09 10:38:13.671366 I  AOBase: Pause 1
2013-11-09 10:38:13.671463 I  AOBase: Pause 1
2013-11-09 10:38:13.671692 I  AOBase: Pause 1
2013-11-09 10:38:13.671781 I  AOBase: Pause 1
2013-11-09 10:38:13.671863 I  AOBase: Pause 1
2013-11-09 10:38:13.671944 I  AOBase: Pause 1
2013-11-09 10:38:13.672030 I  AOBase: Pause 1
2013-11-09 10:38:13.672136 I  AOBase: Pause 1
2013-11-09 10:38:13.698030 N  AudioPlayer: Enabling Audio
2013-11-09 10:38:13.700038 I  ScreenSaverX11Private: DPMS Deactivated 1
2013-11-09 10:38:13.700176 I  AOBase: Pause 0
2013-11-09 10:38:13.706620 I  AOBase: OutputAudioLoop: Play Event
2013-11-09 10:38:13.919128 I  AFD: codec PCM_DVD has 0 channels
2013-11-09 10:38:13.919204 I  AFD: Opened codec 0x7fd4cc048200, id(PCM_DVD)
type(Audio)
2013-11-09 10:38:13.919244 I  DVD Audio Track #0 Language Extension Code - 0
2013-11-09 10:38:13.919319 I  AFD: Audio Track #1, of type (Normal) is A/V
stream #3 (id=0xa0) and has 0 channels in the English language(6647399).
2013-11-09 10:38:13.919550 I  AFD: Audio is disabled - trying to restart it
2013-11-09 10:38:13.919591 I  AFD: Selected track 1: English PCM_DVD 2ch
(A/V Stream #3)
2013-11-09 10:38:13.919629 I  AFD: Initializing audio parms from audio
track #1
2013-11-09 10:38:13.919682 I  AFD: Audio format changed from id(NONE)
-1Hz -1ch -1bps     (profile 0) to id(PCM_S16BE)  48000Hz  2ch 32bps
(profile 0)
2013-11-09 10:38:13.919709 I  AOBase: Killing AudioOutputDSP
2013-11-09 10:38:13.929768 I  AOBase: OutputAudioLoop: Stop Event
2013-11-09 10:38:13.929797 I  AOBase: kickoffOutputAudioLoop exiting
2013-11-09 10:38:13.930257 I  AOBase: Original codec was PCM_S16BE, signed
32 bit, 48 kHz, 2 channels
2013-11-09 10:38:13.930331 I  AOBase: enc(0), passthru(0), features
(AC3,DTS,LPCM,EAC3,TRUEHD,DTSHD) configured_channels(2), 2 channels
supported(1) max_channels(6)
2013-11-09 10:38:13.930370 I  AOBase: Opening audio device
'hdmi:CARD=NVidia,DEV=3' ch 2(2) sr 48000 sf signed 32 bit reenc 0
2013-11-09 10:38:13.930387 I  ALSA: OpenDevice hdmi:CARD=NVidia,DEV=3
2013-11-09 10:38:13.931657 I  ALSA: SetParameters(format=10, channels=2,
rate=48000, buffer_time=500000, period_time=4)
2013-11-09 10:38:13.931749 I  ALSA: Buffer size range from 32 to 393216
2013-11-09 10:38:13.931764 I  ALSA: Period size range from 16 to 196608
2013-11-09 10:38:13.931807 I  ALSA: Buffer time = 500000 us
2013-11-09 10:38:13.931832 I  ALSA: Period time = 4 periods
2013-11-09 10:38:13.967624 I  ALSA: Buffer size = 24000 | Period size = 6000
2013-11-09 10:38:14.003701 I  AOBase: Audio fragment size: 24000
2013-11-09 10:38:14.003741 I  AOBase: Audio Stretch Factor: 1
2013-11-09 10:38:14.003833 I  AOBase: Ending Reconfigure()
2013-11-09 10:38:14.004073 I  AOBase: kickoffOutputAudioLoop: pid = 3297
2013-11-09 10:38:14.004146 I  AOBase: OutputAudioLoop: Play Event
2013-11-09 10:38:14.004463 E  AO: audio decode error: Invalid argument (0)
2013-11-09 10:38:14.004527 E  AFD: Unknown audio decoding error
2013-11-09 10:38:14.005863 E  AO: audio decode error: Invalid argument (0)
2013-11-09 10:38:14.005878 E  AFD: Unknown audio decoding error
2013-11-09 10:38:14.006160 E  AO: audio decode error: Invalid argument (0)
2013-11-09 10:38:14.006173 E  AFD: Unknown audio decoding error
2013-11-09 10:38:14.006461 E  AO: audio decode error: Invalid argument (0)
2013-11-09 10:38:14.006484 E  AFD: Unknown audio decoding error
2013-11-09 10:38:14.006936 E  AO: audio decode error: Invalid argument (0)


So the audio is playing during the menu but once the main video track
starts to play the audio does not work and the log is filled with the audio
decide error.

Has anyone else seen this?

Thanks!

Neil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20131109/aeb81376/attachment.html>


More information about the mythtv-users mailing list