Avidemux seems to have problems with Reddit videos, it encodes what appears to be only the first second of the video. I've tried various codecs to encode to such as x264, x265, xvid4 and also tried using mp4 and mkv containers, but they all result in the same thing.
Example original video: https://v.redd.it/v1ks7kkvjga41/DASH_720?source=fallback
Is it something to do with the way dash/HLS videos are made?
I'll look later into the particular sample, but yes, your assumption is most probably correct as for now we support only fragmented mp4 (dash) with an empty moov box. If it is not empty, Avidemux sees just the first fragment.
Apart from that, the log shows a massively broken file (duplicated pts).
Well, no, we correctly detect dash here but then due to duplicated pts and maybe other issues with the file things go terribly wrong, especially after recent improvements in time base handling.
Thank you very much for the sample, but is it just a rare exception or is everything on reddit of this kind?
It's all of them from what I've tried. I can't seem to post the links because this forum thinks it's spam.
Hopefully this works: https://paste.ee/p/PnLRU
Thanks for heads up, will look into the issue with the mp4 demuxer once the current work on copy mode related modifications in the editor is either completed or discarded.
Thanks eumagga0x2a, no rush at all, you can consider this super low priority ;D
Should be fixed for provided samples by [demuxers/Mp4] Support fragmented mp4 with default dts increment specified in trex box only (https://github.com/mean00/avidemux2/commit/3581d6a8edbb284856dda9b12cb669086db9c150), please try a future nightly.
Nightly builds (200318) with a followup fix (https://github.com/mean00/avidemux2/commit/f2a12b5334b16529ffd96382fc0ac24dd45ad8f1) on top of the first rough take are now available --> https://avidemux.org/nightly/
Thanks a lot eumagga0x2a, really appreciate the fix!
Hope you (and everyone else) are doing well and staying safe :)