News:

--

Main Menu

Problem re-encoding Reddit videos

Started by Bearbear, January 26, 2020, 12:36:04 PM

Previous topic - Next topic

Bearbear

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?

eumagga0x2a

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).

eumagga0x2a

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?

Bearbear

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

eumagga0x2a

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.

Bearbear

Thanks eumagga0x2a, no rush at all, you can consider this super low priority ;D

eumagga0x2a


eumagga0x2a

Nightly builds (200318) with a followup fix on top of the first rough take are now available --> https://avidemux.org/nightly/

Bearbear

Thanks a lot eumagga0x2a, really appreciate the fix!

Hope you (and everyone else) are doing well and staying safe :)