Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: ofaurax on January 02, 2025, 10:26:50 AM

Title: Big file (>5Gb) unable to be cut
Post by: ofaurax on January 02, 2025, 10:26:50 AM
Happy new year!
I'm trying to cut a 5.6Gb file, and I get an error "Muxer Can't open" (Muxer Ne peut pas ouvrir).

Here are traces:
 [open] 10:07:51-459  Created file /dev/shm/S1010013-1.mp4 mode wb
 [initVideo] 10:07:51-459  Setting video..

 0000 : .d.3...1gd.3....   01 64 00 33 ff e1 00 31 67 64 00 33 ac ec 03 c0
 0010 : .?..............   04 3f fc 05 a8 08 08 0a 00 00 07 d0 00 01 86 a1
 0020 : ...!`..<.......B   d1 80 00 21 60 e0 00 3c 14 d0 ff f1 a3 00 00 42
 0030 : ...x)...@...h.<.   c1 c0 00 78 29 a1 ff e1 40 03 00 89 68 ee 3c e5
 0040 : .5.n..@<..7J....   11 35 08 6e 08 08 40 3c 03 10 37 4a 14 87 06 8c
 0050 : ...`n..(R..0.pa.   04 9c 18 60 6e 01 ff 28 52 1c 1a 30 12 70 61 81
 0060 : ......p...>.....   b8 07 fd 0c 8a c5 70 b6 07 88 3e 84 01 04 14 0d
 0070 : ..8............@   18 0b 38 1a 80 7f c2 00 82 0a 06 8c 05 9c 0d 40
 0080 : ?.$.:..r$..m. ..   3f e5 24 99 3a ac 9b 72 24 b9 bb 6d 88 20 81 11
 0090 : 0...F.... @...|.   30 80 c1 83 46 8d 0c 02 c0 20 40 82 04 00 7c 0f
 00a0 : ....|...H.9<.rV.   c0 82 04 00 7c 03 fe 84 48 d1 39 3c 95 72 56 e4
 00b0 : .nh.L@ ..B.@....   a5 6e 68 8c 4c 40 20 04 10 42 08 40 80 04 0c 08
 00c0 :  ~.....h[.:.. ..   20 7e 01 ff 80 00 8d 68 5b 8f 3a 1d 11 20 c2 96
 00d0 : ....K..}Ah .8.p    08 02 02 00 4b 03 f0 7d 41 68 20 1e 38 1c 70 20
 00e0 : `......x.q......   60 f8 07 fd 05 a0 80 78 e0 71 c0 81 83 e0 1f f1
 00f0 : .Hc.pA....(. .h.   01 48 63 0e 70 41 81 f8 07 fc 28 09 20 a0 68 c0
 0100 : q.......P4`8.V..   71 c0 ac 03 fe 14 04 90 50 34 60 38 e0 56 01 ff
 0110 : F.5.Y6.I,.!...q.   46 9b 35 d2 59 36 da 49 2c 84 21 06 94 ac 71 08
 0120 : ..1........C ...   04 08 31 12 0e 00 80 0f 81 f8 18 43 20 e0 08 00
 0130 : ...........v3...   fa 0f c1 f6 0f c1 f0 0f f8 80 84 76 33 8c f1 93
 0140 : O.Cg(.D4....l...   4f 14 43 67 28 a1 44 34 e5 16 08 8c 6c e7 06 1f
 0150 : ..?...h{.9DMB...   07 c0 3f f0 00 89 68 7b 8f 39 44 4d 42 1b 82 02
 0160 : .......!...'....   10 0f 00 c4 0d d2 85 21 c1 a3 01 27 06 18 1b 80
 0170 : .........`n..C".   7f ca 14 87 06 8c 04 9c 18 60 6e 01 ff 43 22 b1
 0180 : \-.....A..F.....   5c 2d 81 e2 0f a1 00 41 05 03 46 02 ce 06 a0 1f
 0190 : .. ....g.P..I&N.   f0 80 20 82 81 a3 01 67 03 50 0f f9 49 26 4e ab
 01a0 : &...n.b. DL 0`..   26 dc 89 2e 6e db 62 08 20 44 4c 20 30 60 d1 a3
 01b0 : C.... ..... ....   43 00 b0 08 10 20 81 00 1f 03 f0 20 81 00 1f 00
 01c0 : ...4NO%\..)[.#..   ff a1 12 34 4e 4f 25 5c 95 b9 29 5b 9a 23 13 10
 01d0 : ...... .........   08 01 04 10 82 10 20 01 03 02 08 1f 80 7f e0 fd
 01e0 : ...                f8 f8 00
 [ADM_getH264SpsPpsFromExtraData] 10:07:51-459  MP4 style PPS/SPS
 [ADM_getH264SpsPpsFromExtraData] 10:07:51-459  More or less than 1 pps
 [initH264] 10:07:51-459  Wrong extra data for h264
 [initVideo] 10:07:51-459  Cannot add h264 track
 [open] 10:07:51-459  Cannot init video
 [~muxerMp4v2] 10:09:12-563  [Mp4v2Muxer] Destroying
 [close] 10:09:12-563  [Mp4v2Muxer] Closing

I'm using latest 2.8.1 AppImage.

The file comes from a camera and plays correctly, so I assume the file is not corrupt, but I'm not sure if we can really trust the encoder.

Is this a bug or a corrupted file?
Is there a way to bypass this problem?

Thanks in advance
Title: Re: Big file (>5Gb) unable to be cut
Post by: eumagga0x2a on January 03, 2025, 01:49:05 PM
1. Do not use MP4v2 (libmp4v2) muxer, use MP4 (libavformat) instead.
2. Anything 2.8.1 is ancient, please verify any issue you find with the latest available 2.8.2 nightly.