Hello,
I'm experiencing a failed assert when seeking some flv videos - always on the same position.
See attachment for the error message.
It happened with default settings but I already tried some different settings.
Windows 7 64bit & Avidemux 2.6.21 / 2.7.0 64bit.
I can upload the problematic files (~1-3GB) if you don't mind it's a pron-stream.
Any help is appreciated.
Thank you.
Please retry with the latest win64 nightly (http://avidemux.org/nightly/win64/). If the issue persists, please reproduce the crash and, without restarting Avidemux, compress and attach admlog.txt from %localappdata%\avidemux\ folder to your reply.
Same issue with the nightly build. Log attached.
Thanks.
Thank you. The likely reason for the crash is highly broken timing in this video, there are duplicated PTS:
[addReferenceVideo] 14:33:50-391 [editor] Original frame increment 00:08:19,999 499999968
[addReferenceVideo] 14:33:50-395 [Editor] min increment 00:00:00,000 - 0
[addReferenceVideo] 14:33:50-395 [Editor] max increment 00:00:02,380 - 2380000
(minimum frame increment equal zero means adjacent frames have identical presentation time stamps). If three frames have the same PTS, but only the last is a keyframe, TimeToFrame (https://github.com/mean00/avidemux2/blob/master/avidemux/common/ADM_editor/src/ADM_segment.cpp#L512) will return the frame number of the first frame of the triplet. Subsequently we get the warning from ADM_EditorSegment::intraTimeToFrame (https://github.com/mean00/avidemux2/blob/master/avidemux/common/ADM_editor/src/ADM_segment.cpp#L560) and crash in ADM_Composer::DecodePictureUpToIntra (https://github.com/mean00/avidemux2/blob/master/avidemux/common/ADM_editor/src/ADM_edRenderInternal.cpp#L394) because neither of the first two frames (out of 3 or more) with identical PTS is a keyframe.
Interesting.
The video comes from an RTMP stream.
If I copy the video stream (and skip the audio) with ffmpeg, I can seek with avidemux afterwards without crashing.
Will there be a fix?
Quote from: admx on November 20, 2017, 08:55:03 PM
If I copy the video stream (and skip the audio) with ffmpeg, I can seek with avidemux afterwards without crashing.
Please just load the file generated with FFmpeg in Avidemux and post the resulting admlog.txt.
QuoteWill there be a fix?
Do you have a Linux system to build Avidemux from source to test patches? This would make a fix much more likely.
A sample file would help indeed