Reproducible crash when appending >25 clips

Started by gamez, August 21, 2012, 08:03:09 AM

Previous topic - Next topic

gamez

Hi there,

i am using a script with many lines such as

Quote
app.forceUnpack();
app.append("file001.avi");
app.forceUnpack();
app.append("file002.avi");
...

to merge video clips together.

The script works OK for something like 20 files (I can post the full script if needed), but when the number of file exceeds something like 25 or 26 then avidemux2_cli gives me a dump

Quote
...
OpenDML file successfully read..
[Editor] Duration in seconds: 5, in samples: 240240

Decoder FCC: XVID (44495658)
Searching decoder (1920 x 1080, extradataSize:0)...
[lavc] Build: 3484160
[lavc] Using 0 bytes of extradata for MPEG4 decoder
[lavc] Enabling MT decoder with 4 threads
[lavc] Decoder init: CODEC_ID_MPEG4 video decoder initialized!

*********** EXCEPTION **************
Registers:
EAX: DEAD0010  EBX: 00000010  ECX: 00000010  EDX: 012C0608  ESI: 00000000
EDI: 00000001  ESP: 0022F308  EBP: 003FC000  EIP: 65101B85  EFlags: 00010202

Exception Code: EXCEPTION_ACCESS_VIOLATION (C0000005)
Exception Flags: 00000000

Origin:
unknown function <+0x8>  [unknown module]
*********** EXCEPTION **************

*********** BACKTRACE **************
unknown function  [unknown module]
unknown function  [unknown module]
*********** BACKTRACE **************

Cleaning up
[lavc] Killing decoding threads

while avidemux2 just hangs up.

Any ideas?

Thanks, g.

Jan Gruuthuse

Yeah, if the avi files are large could be an memory issue?
You can replace cli by the GUI avidemux QT and see what happens there?
If kind of memory issue proceed with 10 avi's and then next 10, using afterwards the newly created videos
001 to 009 to B01
010 to 019 to B02
...
open B01 append B02, ...
If re-encoding, you can do without re-encoding processing the B videos. Load B01 appending the others and use copy for both video and audio.

I'm getting complaints using from 10th mpeg-ts (2GB each) VPAU is already in use, could be something similar.
I have 16 GB ram, only around 2 GB is used. Could be some buffer/indexing going wrong (ubuntu 12.04 64-bit)
Or there is an issue with loading that part. skip that part and append next part and see if issue is still there.
Issue could be if the recording has suddenly an extra audio track/audio change. Seen that on DVB broadcast when program changes and 5.1 track is activated.

gamez

Hi Jan,

thanks.

Under Windows, I have the GTK Gui and the CLI; both crash in the same way at more or less the same number of appends.

All files are pretty small, totally identical in terms of format, around 5 secs long with around 1 MB each. I'm doing a pure copy/append, w/o any re-encoding. That shouldn't create any mem problems, should it?

Are you saying that > 10 appends are beyond avidemux' specifications?

g.

Jan Gruuthuse

#3
Quoteif the avi files are large
No that is not what I'm saying. Just said: I had vdpau issue when loading 10 times 2 GB clips (20 GB video).
All clips are in the same folder? Have the same name structure, not individual names with spaces or non English ascii in it like ü, ñ, ß, ...
Can set your properties of terminal window so it does not close when you run the batch file?
When avidemux crashes again, don't close that window.
Open internet browser and copy paste this in its addressbar:
%APPDATA%/avidemux/admlog.txt
See if it tells any horrible things at the end? If it does not make sence to you.
Open a new tab in your brouwser: copy paste this address in addressbar:
https://gist.github.com/
Goto previous tab in browser with the admlog.txt in it.
From browser menu (file or edit) select all, copy
Select the gist.github tab
Type a description in Gist descritpion
Give it a file name in name this file ...
Now paste the copied content in the square below those 2 fields
Bottom right click Create Public Gist
Copy now from addressbar the new link showing.
Provide that link here

Perhaps a developer/user has a clue what is going on.

You don't have a Qt version on windows? Sorry for my ignorance, windows left her the building some time ago.
Try with version 2.6 see if that helps? You find this @ http://avidemux.org/nightly/ or http://avidemux.razorbyte.com.au/

gamez

#4
Hi Jan,

the CLI doesn't create an admlog.txt file, but for the GTK you can find it here.

Unfortunately, the last line is

Quote
[lavc] Decoder init: CODEC_ID_MPEG4 video decoder initialized!

obviously just before the exception occurs.

g.

Jan Gruuthuse

Would definitely try with avidemux 2.6 as your video content is HD and see how that goes. Perhaps 2.6 handles these better?
Lot of avidemux complaining on frames?
Quote[lavc] Invalid and inefficient vfw-avi packed B frames detected
Quote* Frame 146 is A B frame, flag not ok
* Frame 147 is A B frame, flag not ok

[Editor] Decoder says it is vop packed
Mmm this appear to have b-frame...
Quote[lavc] Warning: data is not aligned! This can lead to a speedloss

Has avidemux created an idx file for each video clip? If timings do not match up, could be another cause of problem.

My user opinion, could be developers have another view/knowledge on this. Since they know how avidemux internally ticks..

gamez

Well, 2.6 seems to introduce significant changes around the scripting engine... the CLI just crashes with

Quote
Unable to appropriate script engine for script file

The GTK allows me to open/run either a "Tinypy" or a "SpiderMonkey" script, but neither one processes the scripts I was using so far.

Honestly I fear this 2.6 won't bring me any closer to a solution.

g.

Jan Gruuthuse

When the project file 1st line for:
SpiderMonkey Project:
Quote//AD  <- Needed to identify //
Tinypy Project:
Quote#PY  <- Needed to identify #

load 1st video, append 2nd video: save project
compare what instructions have changed
also pay notice to the changed audio section (audiotracks and so on)

in tools you have expression evaluator for both.