Author Topic: Error codec with avidemux and ffmpeg  (Read 267 times)

Offline francesco bat

  • Full Member
  • ***
  • Posts: 53
    • La Grotta del Pipistrello
Error codec with avidemux and ffmpeg
« on: February 07, 2013, 03:17:23 PM »
Hi !
Pclinuxos kde, updated; kernel-3.2.18-pclos2.bfs
If i try to convert a video webm in mkv with avidemux (copy stream video and audio) i get:

Code: [Select]
Crash

Assert failed :_roundup at line 198, file /usr/src/rpm/BUILD/avidemux_2.5.5/avidemux/ADM_userInterfaces/ADM_QT4/ADM_dialog/Q_encoding.cppADM_backTrack
 DIA_encoding::DIA_encoding(unsigned int)
 oplug_mp4(char const*, ADM_OUT_FORMAT)
 A_Save(char const*)
 A_SaveWrapper(char*)
 ADM_QT4_fileSel::GUI_FileSelWrite(char const*, void (*)(char const*))
 GUI_FileSelWrite(char const*, void (*)(char const*))
 HandleAction(Action)
 MainWindow::buttonPressed()
 MainWindow::qt_metacall(QMetaObject::Call, int, void**)
 QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**)
 QMetaObject::activate(QObject*, QMetaObject const*, int, void**)
 QAction::triggered(bool)
 QAction::activate(QAction::ActionEvent)
 QToolButton::nextCheckState()

QAbstractButton::mouseReleaseEvent(QMouseEvent*)
 QToolButton::mouseReleaseEvent(QMouseEvent*)
 QWidget::event(QEvent*)
 QAbstractButton::event(QEvent*)

I tried with avidemux portable (windows version) with wine and it works.
Before last pclinuxos updates, avidemux and ffmpeg had good work.
Bye
Francesco bat
I have PclinuxOS KDE standard :-)
I am in the italian forum, but i'm happy to be here too ;-)

Offline rich2005

  • Sr. Member
  • ****
  • Posts: 257
Re: Error codec with avidemux and ffmpeg
« Reply #1 on: February 08, 2013, 03:13:33 AM »
Interesting.   I had to find and download such a file, this one
Iron Man HD 1080p Test (MKV Format).webm, only a couple of minutes long, good for a test.
This does indeed crash in Avidemux-gtk mightily
-----------------
Assert failed :_roundup<MAX_BR_SLOT
 at line 115, file /usr/src/rpm/BUILD/avidemux_2.5.5/avidemux/ADM_userInterfaces/ADM_GTK/ADM_dialog/DIA_encoding.cppADM_backTrack
DIA_encoding::setFps(unsigned int)
...snip...
g_cclosure_marshal_VOID__VOID
g_closure_invoke
-----------------
Since Avidmux used to work etc.  I can only go by this example but:
Have a look in the Avidemux clip properties.  This clip has a strange frame size 1920x814 and the frame rate is reported as 999.999 ie. does not know. Mediainfo said the framerate was 23.2 again strange.

If you just want it in another (avi) format then try DivXencoder, a frontend for mencoder. Still screwed up and crashes Avidemux however, and no good for editing, the keyframes are every 1000-ish.

If you want to edit, then it looks like Openshot will do the job, however none of the presets have that strange frame size. You would have to make your own template to keep the original size.
Chopping a little bit out and saving to HD 1920x1080 @23.98 fps it letterboxes the video, which is nice. Sound seems in sync. If you just wanted to use as a convertor, the output opens in Avidemux, keyframes are every 12, & seems to save ok.

I know this does not address Avidemux crashing, just some thoughts.

Offline francesco bat

  • Full Member
  • ***
  • Posts: 53
    • La Grotta del Pipistrello
Re: Error codec with avidemux and ffmpeg
« Reply #2 on: February 08, 2013, 06:23:03 AM »
Interesting.   I had to find and download such a file, this one
Iron Man HD 1080p Test (MKV Format).webm, only a couple of minutes long, good for a test.
This does indeed crash in Avidemux-gtk mightily
-----------------
Assert failed :_roundup<MAX_BR_SLOT
 at line 115, file /usr/src/rpm/BUILD/avidemux_2.5.5/avidemux/ADM_userInterfaces/ADM_GTK/ADM_dialog/DIA_encoding.cppADM_backTrack
DIA_encoding::setFps(unsigned int)
...snip...
g_cclosure_marshal_VOID__VOID
g_closure_invoke
-----------------
Since Avidmux used to work etc.  I can only go by this example but:
Have a look in the Avidemux clip properties.  This clip has a strange frame size 1920x814 and the frame rate is reported as 999.999 ie. does not know. Mediainfo said the framerate was 23.2 again strange.

If you just want it in another (avi) format then try DivXencoder, a frontend for mencoder. Still screwed up and crashes Avidemux however, and no good for editing, the keyframes are every 1000-ish.

If you want to edit, then it looks like Openshot will do the job, however none of the presets have that strange frame size. You would have to make your own template to keep the original size.
Chopping a little bit out and saving to HD 1920x1080 @23.98 fps it letterboxes the video, which is nice. Sound seems in sync. If you just wanted to use as a convertor, the output opens in Avidemux, keyframes are every 12, & seems to save ok.

I know this does not address Avidemux crashing, just some thoughts.

Indeed !
With ffmpeg:
Code: [Select]
[francesco@francesco-pclinuxos ~]$ ffmpeg -i '/home/francesco/Video/screensavers/Do more with extensions in Opera.mkv' -vcodec copy -acodec copy output.mkv
ffmpeg version 0.7.12, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jun 13 2012 15:43:23 with gcc 4.5.2                                                         
  configuration: --prefix=/usr --enable-shared --libdir=/usr/lib --shlibdir=/usr/lib --incdir=/usr/include --disable-stripping --enable-postproc --enable-gpl --enable-pthreads --enable-libtheora --enable-libvorbis --disable-encoder=vorbis --enable-libvpx --enable-x11grab --enable-runtime-cpudetect --enable-libdc1394 --enable-libschroedinger --enable-librtmp --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libx264 --enable-nonfree --enable-libfaac --enable-libxvid                                                                                                   
  libavutil    50. 43. 0 / 50. 43. 0                                                                   
  libavcodec   52.123. 0 / 52.123. 0                                                                   
  libavformat  52.111. 0 / 52.111. 0                                                                   
  libavdevice  52.  5. 0 / 52.  5. 0                                                                   
  libavfilter   1. 80. 0 /  1. 80. 0                                                                   
  libswscale    0. 14. 1 /  0. 14. 1                                                                   
  libpostproc  51.  2. 0 / 51.  2. 0                                                                   
[matroska,webm @ 0x9efce20] Estimating duration from bitrate, this may be inaccurate                   
                                                                                                       
Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1)   
Input #0, matroska,webm, from '/home/francesco/Video/screensavers/Do more with extensions in Opera.mkv':                                                                                                     
  Metadata:                                                                                           
    ENCODER         : Lavf54.6.100                                                                     
  Duration: 00:00:44.99, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: vp8, yuv420p, 1920x1080, PAR 1:1 DAR 16:9, 1k fps, 25 tbr, 1k tbn, 1k tbc (default)
    Stream #0.1: Audio: vorbis, 44100 Hz, stereo, s16 (default)
Output #0, matroska, to 'output.mkv':
  Metadata:
    encoder         : Lavf52.111.0
    Stream #0.0: Video: libvpx, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31, 1k tbn, 1k tbc (default)
    Stream #0.1: Audio: libvorbis, 44100 Hz, stereo (default)
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop, [?] for help
[matroska @ 0x9f73980] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 40 >= 40
av_interleaved_write_frame(): Invalid data found when processing input

Bye
Francesco bat
I have PclinuxOS KDE standard :-)
I am in the italian forum, but i'm happy to be here too ;-)