News:

--

Main Menu

Audio out of sync

Started by PMaff, January 21, 2014, 04:14:51 PM

Previous topic - Next topic

PMaff

I am new to avidemux.
Building of avidemux_2.6.7.tar.gz was ok.
When I start the testfilm
big_buck_bunny_1080p_h264.mov
from
http://blender-mirror.kino3d.org/peach/bigbuckbunny_movies/
I get an error message
"Trouble initializing audio device"

Audio works with mplayer (also compiled from sources) without problems.
mplayer says:
"ID_AUDIO_FORMAT=MP4A
ID_AUDIO_BITRATE=437600
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=6
...
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))"

Setting AAC with avidemux does not help.

Cutting a scene with avidemux and saving it as a film works, but the audio is out of sync.
Do I miss some settings here?

mean

It is the audio driver that is complainging , try changing to another one in preferences -> audio

PMaff

Quote from: mean on January 21, 2014, 04:54:23 PM
It is the audio driver that is complainging , try changing to another one in preferences -> audio

Thanks, switching to AlsaHw0 removed the error message in
Avidemux.
In Avidemux audio is in sync now.
Audio obviously is AAC 6 chan, 128kbps according to Avidemux

But when I set a marker A and endmarker B and save that part of the video to some file, the audio is not in sync when played with e.g. mplayer.
Any Idea what that could be?
The original testvideo plays fine with mplayer.
Tried with Audio Output MP2 (Twolame), 128 Bitrate, Remix Stereo and that worked but that is not a simple
cut from the original film.

Audio Output AAC (lav) simply crashes with:
MessageBox:

Segfault
at line 0, file ??ADM_backTrack

avcodec_free_frame
AUDMEncoder_Lavcodec_AAC::~AUDMEncoder_Lavcodec_AAC()
AUDMEncoder_Lavcodec_AAC::~AUDMEncoder_Lavcodec_AAC()
audioCreateEncodingStream(EditableAudioTrack*, bool, unsigned long)
admSaver::setupAudio()
admSaver::save()
A_Save(char const*)
A_SaveWrapper(char const*)
ADM_QT4_fileSel::GUI_FileSelWrite(char const*, void (*)(char const*))
HandleAction_Save(Action)
HandleAction(Action)
MainWindow::searchToolBar(QAction*)
QMetaObject::activate(QObject*, QMetaObject const*, int, void**)
QToolBar::actionTriggered(QAction*)

QMetaObject::activate(QObject*, QMetaObject const*, int, void**)
QToolButton::triggered(QAction*)

and

*********** BACKTRACK **************         
...
/lib64/libc.so.6(+0x34e10) [0x7f24037d7e10]:1:
/usr/lib64/libQtCore.so.4(_ZN23QCoreApplicatioedEvents(QObject*, int, QThreadData*)>:0     
/usr/lib64/libQtCore.so.4(+0x1aee53) [0x7f2405
/usr/lib64/libglib-2.0.so.0(g_main_context_dis
/usr/lib64/libglib-2.0.so.0(+0x47dd8) [0x7f240
/usr/lib64/libglib-2.0.so.0(g_main_context_ite
/usr/lib64/libQtCore.so.4(_ZN20QEventDispatcheprocessEvents(QFlags<QEventLoop::ProcessEvents
/usr/lib64/libQtGui.so.4(+0x28176e) [0x7f24064
/usr/lib64/libQtCore.so.4(_ZN10QEventLoop13prop::ProcessEventsFlag>)>:0                     
/usr/lib64/libQtCore.so.4(_ZN10QEventLoop4execag>)>:0                                       
/usr/lib64/libQtGui.so.4(_ZN7QDialog4execEv+0x
/usr/lib64/libQtGui.so.4(+0x6cbc82) [0x7f24068
/usr/lib64/libQtGui.so.4(_ZN11QMessageBox8critdget*, QString const&, QString const&, QFlags<
avidemux3_qt4(_ZN20ADM_Qt4CoreUIToolkit13GUI_E
...Video/Avidemux/a_HIG(char const*, char const*, ...)>:0       
avidemux3_qt4(_ZN8admSaver10setupAudioEv+0x11e
avidemux3_qt4(_ZN8admSaver4saveEv+0xe4) [0x441
avidemux3_qt4(_Z6A_SavePKc+0x29) [0x441f09]:18
avidemux3_qt4(_Z13A_SaveWrapperPKc+0xe) [0x43f
*********** BACKTRACK **************