Opened 13 years ago

Closed 13 years ago

#9419 closed Bug Report (Works for me)

Alsa buffer under run

Reported by: bernhart2002@… Owned by: JYA
Priority: minor Milestone:
Component: MythTV - Audio Output Version: 0.24-fixes
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Video files with MPEG-4 AAC audio codex with a bit rate of 16kbps causes the audio to hicup. The audio for these files worked fine in 0.23 and play prefect with gstreamer. The audio sample rate is 48000 hz. I can provide you with a sample file if you want it. I am running mythtv 0.24-fixes (2f3a2f8) this is the daily builds from mythbuntu below is the log

011-01-01 12:55:24.312 TV: Attempting to change from None to WatchingVideo? 2011-01-01 12:55:24.641 Pulse: PulseAudio? suspend OK 2011-01-01 12:55:24.986 VDPAU: Version 1 2011-01-01 12:55:24.986 VDPAU: Information NVIDIA VDPAU Driver Shared Library 195.36.24 Thu Apr 22 19:52:55 PDT 2010 2011-01-01 12:55:25.001 AFD Warning: ScanATSCCaptionStreams() called with no PMT 2011-01-01 12:55:25.001 AFD: Opened codec 0x226ce40, id(MPEG4) type(Video) 2011-01-01 12:55:25.001 AFD: codec AAC has 2 channels 2011-01-01 12:55:25.002 AFD: Opened codec 0x226d7f0, id(AAC) type(Audio) 2011-01-01 12:55:25.141 Pulse: PulseAudio? resume OK 2011-01-01 12:55:25.241 Pulse: PulseAudio? suspend OK 2011-01-01 12:55:25.254 AO: Opening audio device 'iec958:CARD=NVidia,DEV=0' ch 2(2) sr 48000 sf signed 16 bit reenc 0 2011-01-01 12:55:25.294 AudioPlayer?: Enabling Audio 2011-01-01 12:55:25.359 VDPAU: Created 2 output surfaces. 2011-01-01 12:55:25.359 VDPAU: Created VDPAU render device 1280x720 2011-01-01 12:55:25.387 AFD: No DTS Seeking Hack! 2011-01-01 12:55:25.468 Player(0): Video timing method: USleep with busy wait 2011-01-01 12:55:25.469 TV: Changing from None to WatchingVideo? 2011-01-01 12:55:25.474 VDPAU: Added 2 output surfaces (total 4, max 4) 2011-01-01 12:55:27.309 ALSA, Error: WriteAudio?: buffer underrun

Change History (8)

comment:1 Changed 13 years ago by JYA

Status: newinfoneeded_new

I see no abnormal error here.

a buffer underrun occurring right at the start of playback is expected.

please provide a log actually showing a problem

comment:2 Changed 13 years ago by bernhart2002@…

here is output from mythfront -v audio

2011-01-01 14:13:19.855 TV: Attempting to change from None to WatchingVideo?

2011-01-01 14:13:19.967 Pulse: Operation: success 1 remaining 1

2011-01-01 14:13:19.988 Pulse: Operation: success 1 remaining 0

2011-01-01 14:13:19.998 Pulse: PulseAudio? suspend OK

2011-01-01 14:13:20.001 AO: Sample rate 44100 is supported

2011-01-01 14:13:20.001 AO: Sample rate 48000 is supported

2011-01-01 14:13:20.001 AO: Sample rate 96000 is supported

2011-01-01 14:13:20.001 AO: 2 channel(s) are supported

2011-01-01 14:13:20.012 AO: AC3 or DTS capable

2011-01-01 14:13:20.012 AO: 6 channel(s) are supported

2011-01-01 14:13:20.013 AO: Killing AudioOutputDSP

2011-01-01 14:13:20.147 VDPAU: Version 1

2011-01-01 14:13:20.147 VDPAU: Information NVIDIA VDPAU Driver Shared Library 195.36.24 Thu Apr 22 19:52:55 PDT 2010

2011-01-01 14:13:20.147 AFD Warning: ScanATSCCaptionStreams() called with no PMT

2011-01-01 14:13:20.147 AFD: Opened codec 0x432b2b0, id(MPEG4) type(Video)

2011-01-01 14:13:20.147 AFD: codec AAC has 2 channels

2011-01-01 14:13:20.148 AFD: Opened codec 0x4329b00, id(AAC) type(Audio)

2011-01-01 14:13:20.148 AFD: Audio Track #1 is A/V stream #1 and has 2 channels in the English

language(6647399).

2011-01-01 14:13:20.148 AFD: Selected track 1: English AAC 2ch (A/V Stream #1)

2011-01-01 14:13:20.149 AFD: Initializing audio parms from audio track #1

2011-01-01 14:13:20.149 AFD: Audio format changed

from id(NONE) -1Hz -1ch -1bps to id( AAC) 48000Hz 2ch 16bps

2011-01-01 14:13:20.149 AO: Killing AudioOutputDSP

2011-01-01 14:13:20.268 Pulse: Operation: success 1 remaining 1

2011-01-01 14:13:20.288 Pulse: Operation: success 1 remaining 0

2011-01-01 14:13:20.299 Pulse: PulseAudio? resume OK

2011-01-01 14:13:20.368 Pulse: Operation: success 1 remaining 1

2011-01-01 14:13:20.389 Pulse: Operation: success 1 remaining 0

2011-01-01 14:13:20.399 Pulse: PulseAudio? suspend OK

2011-01-01 14:13:20.401 AO: Sample rate 44100 is supported

2011-01-01 14:13:20.401 AO: Sample rate 48000 is supported

2011-01-01 14:13:20.401 AO: Sample rate 96000 is supported

2011-01-01 14:13:20.401 AO: 2 channel(s) are supported

2011-01-01 14:13:20.413 AO: AC3 or DTS capable

2011-01-01 14:13:20.413 AO: 6 channel(s) are supported

2011-01-01 14:13:20.413 AO: Killing AudioOutputDSP

2011-01-01 14:13:20.413 AO: Original codec was AAC, signed 16 bit, 48 kHz, 2 channels

2011-01-01 14:13:20.413 AO: enc(0), passthru(0), canAC3(1), canDTS(1), canLPCM(0),

configured_channels(2), 2 channels supported(1)

2011-01-01 14:13:20.413 AO: Opening audio device 'iec958:CARD=NVidia,DEV=0' ch 2(2) sr 48000 sf signed

16 bit reenc 0

2011-01-01 14:13:20.414 ALSA: SetParameters?(format=2, channels=2, rate=48000, buffer_time=200000,

period_time=50000)

2011-01-01 14:13:20.414 ALSA: Buffer time = 200000 us

2011-01-01 14:13:20.414 ALSA: Period time = 50000 us

2011-01-01 14:13:20.442 ALSA: Buffer size = 9600 | Period size = 2400

2011-01-01 14:13:20.462 AO: Audio fragment size: 4800

2011-01-01 14:13:20.462 AO: Audio Stretch Factor: 1

2011-01-01 14:13:20.462 AO: Ending Reconfigure()

2011-01-01 14:13:20.462 AudioPlayer?: Enabling Audio

2011-01-01 14:13:20.463 AO: Reconfigure(): No change -> exiting

2011-01-01 14:13:20.463 AO: kickoffOutputAudioLoop: pid = 23717

2011-01-01 14:13:20.463 AO: OutputAudioLoop?: Play Event

2011-01-01 14:13:20.537 VDPAU: Created 2 output surfaces.

2011-01-01 14:13:20.537 VDPAU: Created VDPAU render device 1280x720

2011-01-01 14:13:20.565 AFD: No DTS Seeking Hack!

2011-01-01 14:13:20.575 AO: OutputAudioLoop?: Play Event

2011-01-01 14:13:20.619 Player(0): Video timing method: USleep with busy wait

2011-01-01 14:13:20.619 TV: Changing from None to WatchingVideo?

2011-01-01 14:13:20.626 AO: OutputAudioLoop?: Play Event

2011-01-01 14:13:20.627 VDPAU: Added 2 output surfaces (total 4, max 4)

2011-01-01 14:13:21.671 ALSA, Error: WriteAudio?: buffer underrun

2011-01-01 14:13:23.228 ALSA, Error: WriteAudio?: buffer underrun

2011-01-01 14:13:24.676 ALSA, Error: WriteAudio?: buffer underrun

2011-01-01 14:13:26.227 ALSA, Error: WriteAudio?: buffer underrun

2011-01-01 14:13:27.676 ALSA, Error: WriteAudio?: buffer underrun

2011-01-01 14:13:29.229 ALSA, Error: WriteAudio?: buffer underrun

2011-01-01 14:13:30.676 ALSA, Error: WriteAudio?: buffer underrun

2011-01-01 14:13:32.228 ALSA, Error: WriteAudio?: buffer underrun

2011-01-01 14:13:33.676 ALSA, Error: WriteAudio?: buffer underrun

2011-01-01 14:13:35.219 ALSA, Error: WriteAudio?: buffer underrun

2011-01-01 14:13:36.676 ALSA, Error: WriteAudio?: buffer underrun

2011-01-01 14:13:38.228 ALSA, Error: WriteAudio?: buffer underrun

2011-01-01 14:13:39.677 ALSA, Error: WriteAudio?: buffer underrun

2011-01-01 14:13:41.228 ALSA, Error: WriteAudio?: buffer underrun

2011-01-01 14:13:42.669 ALSA, Error: WriteAudio?: buffer underrun

2011-01-01 14:13:44.227 ALSA, Error: WriteAudio?: buffer underrun

2011-01-01 14:13:44.974 AO: Pause 1

Version 0, edited 13 years ago by bernhart2002@… (next)

comment:3 Changed 13 years ago by bernhart2002@…

I will find a small video and attach it to this ticket. I just need a little time

comment:4 Changed 13 years ago by bernhart2002@…

I have a 1.7 mb file that will repeat the problem which is too big to attach. If you email me directly I will send it to you. bernhart2002 at gmail dot com

comment:5 Changed 13 years ago by JYA

please upload it to http://www.filebin.ca/

comment:6 Changed 13 years ago by bernhart2002@…

I could not get filebin to work, some sort of server issue, so I placed the file here

http://www.4shared.com/get/H6PKnVPS/ginnie_roller_small.html

please let me know if you have any issues getting it

comment:7 Changed 13 years ago by stuartm

Status: infoneeded_newnew

comment:8 Changed 13 years ago by JYA

Resolution: Works for me
Status: newclosed

Plays perfectly fine for me, with or without upmix

Note: See TracTickets for help on using tickets.