Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179652 - media-video/avidemux produces jerky audio during playback (Audio output: ALSA)
Summary: media-video/avidemux produces jerky audio during playback (Audio output: ALSA)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-24 15:14 UTC by Paolo Ornati
Modified: 2007-12-01 15:11 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix alsa output handling of partial writes (avidemux-alsa.diff,315 bytes, patch)
2007-05-24 15:15 UTC, Paolo Ornati
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paolo Ornati 2007-05-24 15:14:34 UTC
Subject say it all.

Looking at the source I found the problem, it's in "avidemux/ADM_audiodevice/ADM_deviceALSA.cpp" --> alsaAudioDevice::play()

Basically it's writing to the output device but it doesn't handle partial writes correctly (did't advance the data buffer pointer, so it keeps writing old data).

I've done the obvious fix and now it works perfectly.

Patch attached, should be reported upstream since it's still in 2.4-preview1 (reported here to save me another Bugzilla subscription ;).

Reproducible: Always
Comment 1 Paolo Ornati 2007-05-24 15:15:38 UTC
Created attachment 120195 [details, diff]
Fix alsa output handling of partial writes
Comment 2 Paolo Ornati 2007-05-24 15:34:25 UTC
(In reply to comment #0)
> 
> I've done the obvious fix and now it works perfectly.

Well.. perfectly is a big word. After a little more testing it seems that there are still problems.

Anyway it goes mush better with this patch. Opening a video and playing it works perfectly (while it doesn't before) but stopping/seeking/playing can still produce bad audio output.

All this goes away with a different audio output (ARTS) so these problems are specific to ALSA  output.
Comment 3 Heiko Baums 2007-07-07 06:19:58 UTC
(In reply to comment #2)
> All this goes away with a different audio output (ARTS) so these problems are
> specific to ALSA  output.

I'm having the same problem but in my opinion it doesn't completely go away with ARTS but it's a bit better with ARTS than with ALSA.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2007-12-01 12:54:26 UTC
Still a problem with avidemux-2.4_pre3?
Comment 5 Paolo Ornati 2007-12-01 15:11:00 UTC
(In reply to comment #4)
> Still a problem with avidemux-2.4_pre3?
> 

No, they fixed it  :)