i have a (av1 in a) .mp4 source file, that crashes avidemux.
(xxx.mp4 is a 2 second clip from that file that is sufficient to crash avidemux.
ffmpeg -i input.mp4 -c copy -t 00:00:02 xxx.mp4
out.mp4 is a -c copy of xxx.mp4
ffmpeg -i xxx.mp4 -c copy out.mp4 - figuring that sometimes a simple -c copy "fixes" things,
but not the case, here.)
(original source) file plays fine in various players (mplayer, mpv.net, mpc-hc...).
mediainfo, showed no (conformance) issues.
ffmpeg -i "xxx.mp4" -v error -f null - 2>&1 | tee "xxx.mp4_ERROR.log", shows no issues.
avidemux (gui) crashs on attempted open of the file.
avidemux_cli.exe says, Atom "?" too short: 5, crashing.
(now what that (Atom too short:) means, i have no clue.)
Windows 7, x64, avidemux_2.8.2r241212
as i'm on Win7, r241212 was the last build i could run, & way back when, when i
first ran into this, i thought it simply had to do with using an outdated avidemux
(perhaps an old av1 .dll or something like that), so i didn't really look further,
figuring that i'd eventually come across a tool i was comfortable with
& deal with said file at that point.
then i ran acrosss VxKex (https://github.com/i486/VxKex), which might allow a tool that otherwise wouldn't run on Win7,
to do so. & as it happens, later versions of avidemux will work with that hack.
so, i pulled down avidemux_mingw64_20261018, & i thought, great, now i can do
something with that file from way back when.
(& once i remembered which file it was ... ;-).)
so i threw said file into 20261018, & surprisingly, there too, it ... crashed.
& with that, i thought, ah, well something else, more then just an outdated avidemux,
might be going on. & at that point, i started messing around to see if i could make
some headway. & when a simple -c copy didn't accomplish anything, i figured changing
the container can't hurt to try, & that, happend to work...
source xxx.mp4, crashed avidemux
ffmpeg -i xxx.mp4 -c copy out.mp4
out.mp4, crashes avidemux
that said, if i change the containter from mp4 to mkv
ffmpeg -i out.mp4 -c copy out.mkv
out.mkv, successfully opens in avidemux
& i can successfully --save to out.from.mkv.2.mp4
& with that out.from.mkv..2.mp4, successfully open in avidemux
but the original source file, xxx.mp4, or the -c copy out.mp4, crashed avidemux
avidemux_cli_portable.exe --load C:\out\SALAMANDER\chk\out.mp4 --save C:\out\SALAMANDER\chk\out.save.mkv
:: avidemux_cli_portable.exe --load C:\out\SALAMANDER\chk\out.mkv --save C:\out\SALAMANDER\chk\out.save.mkv
pause
exit
*** Automated : 19 entries*************
load-->1
[TS Demuxer] Probing...
21:33:08-929 [checkMarker] [Ts Demuxer] Sync ok :0 Sync ko :3
21:33:08-934 [checkMarker] [Ts Demuxer] Sync ok :0 Sync ko :3
21:33:08-940 [detectTs] [TS Demuxer] Not a TS file
[TS Demuxer] Not a ts file
[avsProxy] Cannot open that
[flvHeader] Cannot open that
[mkvHeader] Cannot open that
Match ftyp
[MP4]MP4/MOV/3GP file detected...
[mxfHeader] Cannot open that (20000000)
[openDML] Cannot open that
21:33:08-970 [probe] [picHeader] Cannot open that
21:33:08-975 [probe] [asfHeader] Cannot open that
match :0 / 1 (probeSize:3474)
[PS Demuxer] Not a ps file
** opening 3gpp files **
21:33:08-989 [MP4Header::lookupMainAtoms] Analyzing file and atoms
21:33:08-996 [MP4Header::parseMvhd] Warning: movie scale is 11289600
21:33:09-002 [MP4Header::parseTrack] Parsing Track
21:33:09-007 [MP4Header::parseTrack] EDTS atom found
21:33:09-012 [MP4Header::parseEdts] Parsing Edts, trackType=0
21:33:09-018 [MP4Header::parseEdts] ELST atom found
21:33:09-022 [MP4Header::parseElst] Found 2 entries in edit list of version 0
21:33:09-029 [MP4Header::parseElst] Duration: 11289600, mediaTime: -1, speed: 65536
21:33:09-037 [MP4Header::parseElst] Duration: 11289600, mediaTime: 0, speed: 65536
21:33:09-045 [MP4Header::parseElst] delay = 11289600 in movie scale units, skip to time 0 in track s
cale units.
21:33:09-057 [MP4Header::parseMdia] <<Parsing Mdia>>
[mdhd] Language: und (code: 21956)
21:33:09-066 [MP4Header::parseHdlr] Parsing handler type, reading <hdlr>
21:33:09-073 [MP4Header::parseHdlr] hdlr subtype <vide> (video) found
21:33:09-079 [MP4Header::parseStbl] <<Parsing Stbl>>
21:33:09-084 [MP4Header::parseStsd] Number of entries in stsd: 1
[stsd] Entry 0 (counting from zero) of 1, "av01", bytes left: 171
21:33:09-096 [MP4Header::parseStsd] [STSD] VIDEO av01, size 179
[parseVideoSampleProps] Vendor: ""
[parseVideoSampleProps] Width: 854
[parseVideoSampleProps] Height: 480
Codec string: 23 <Lavc61.33.102 libsvtav1>
[parseVideoSampleProps] Color depth: 24
[parseVideoSampleProps] Color table absent.
21:33:09-125 [MP4Header::parseStsd] Found 16 bytes of AV1 extradata
0000 : .....$.......... 0a 0e 00 00 00 24 c6 ab df 00 be 04 04 04 04 10
Atom "?" too short: 5, crashing.
21:33:09-258 [abortExitHandler] already done, nothing to do
Press any key to continue . . .
so in the end, a work-around, changing the container from .mp4 to .mkv,
was sufficient to get the original source file to work in avidemux.
(that .mkv worked in both 241212 & 20261018, so the issue was not an outdated
avidemux, which i has surmissed, way back when.)
So, with all this, maybe there is something in here, that you might be able
to make more sense out of, that might be able to make avidemux a bit better.
Thanks.
Assert failed :0 at line 63, file /home/fx/hudson/workspace/mxe2024/avidemux_plugins/ADM_demuxers/Mp4/ADM_atom.cpp
ADM_setCrashHook [libADM_core6.dll]
ADM_setCrashHook [libADM_core6.dll]
ADM_backTrack [libADM_core6.dll]
MP4Header::parseStsd(adm_atom*, MPsampleinfo*, unsigned int, unsigned int) [libADM_dm_mp4.dll]
MP4Header::parseStbl(adm_atom*, unsigned int, unsigned int) [libADM_dm_mp4.dll]
MP4Header::parseMdia(adm_atom*, unsigned int*, unsigned int*) [libADM_dm_mp4.dll]
MP4Header::parseTrack(adm_atom*) [libADM_dm_mp4.dll]
MP4Header::lookupMainAtoms(adm_atom*) [libADM_dm_mp4.dll]
MP4Header::open(char const*) [libADM_dm_mp4.dll]
ADM_Composer::addFile(char const*) [avidemux_portable.exe]
A_openVideo(char const*) [avidemux_portable.exe]
MainWindow::openFiles(QList<QUrl>) [avidemux_portable.exe]
MainWindow::eventFilter(QObject*, QEvent*) [avidemux_portable.exe]
QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) [Qt5Core.dll]
QApplicationPrivate::notify_helper(QObject*, QEvent*) [Qt5Widgets.dll]
QCoreApplication::notifyInternal2(QObject*, QEvent*) [Qt5Core.dll]
QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) [Qt5Core.dll]
qt_plugin_instance [qwindows.dll]
QEventDispatcherWin32::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) [Qt5Core.dll]
qt_plugin_instance [qwindows.dll]
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) [Qt5Core.dll]
QCoreApplication::exec() [Qt5Core.dll]
UI_RunApp() [avidemux_portable.exe]
startAvidemux(int, char**) [avidemux_portable.exe]
SDL_main [avidemux_portable.exe]
ms2timedisplay(unsigned int) [avidemux_portable.exe]
unknown function [avidemux_portable.exe]
unknown function [avidemux_portable.exe]
BaseThreadInitThunk [kernel32.dll]
RtlUserThreadStart [ntdll.dll]