News:

--

Main Menu

Recent posts

#1
Main version 2.6 / Re: Video cut error
Last post by eumagga0x2a - Today at 08:06:04 PM
Thank you, the source MP4 video has indeed both a broken timing

  11:28:18-070 [MP4Header::indexify] Build Track index, track timescale: 90000
  11:28:18-072 [MP4Header::indexify] Histogram map has 6 elements.
Frame duration 2070 count: 3
Frame duration 3599 count: 1
Frame duration 3600 count: 123538
Frame duration 5360 count: 1
Frame duration 7200 count: 5534
Frame duration 8821 count: 1
  11:28:18-072 [MP4Header::indexify] Video index done.
  11:28:18-072 [MP4Header::indexify] Setting video timebase to 1 / 90000
  11:28:18-072 [MP4Header::indexify] Variable frame rate, 41691 us per frame on average.
  11:28:18-072 [MP4Header::parseStbl] Movie duration = 5384546
  11:28:18-072 [MP4Header::parseStbl] # images = 129155
  11:28:18-072 [MP4Header::parseStbl] Avg fps 23986.238281

<snip>

<!>11:28:18-853 [MP4Header::checkDuplicatedPts] Duplicate pts 00:00:08,423 at 199 and 202
<!>11:28:18-853 [MP4Header::checkDuplicatedPts] Duplicate pts 00:00:17,303 at 413 and 416
<!>11:28:18-853 [MP4Header::checkDuplicatedPts] Duplicate pts 00:00:58,223 at 1394 and 1396
<!>11:28:18-853 [MP4Header::checkDuplicatedPts] Duplicate pts 00:01:51,903 at 2682 and 2683
<!>11:28:18-853 [MP4Header::checkDuplicatedPts] Duplicate pts 00:02:30,143 at 3598 and 3601
<!>11:28:18-853 [MP4Header::checkDuplicatedPts] Duplicate pts 00:03:23,823 at 4885 and 4888
<!>11:28:18-853 [MP4Header::checkDuplicatedPts] Duplicate pts 00:03:39,463 at 5260 and 5263
<!>11:28:18-853 [MP4Header::checkDuplicatedPts] Duplicate pts 00:03:54,983 at 5630 and 5634
<!>11:28:18-853 [MP4Header::checkDuplicatedPts] Duplicate pts 00:05:09,183 at 7411 and 7413
<!>11:28:18-853 [MP4Header::checkDuplicatedPts] Duplicate pts 00:05:13,063 at 7504 and 7506
<!>11:28:18-853 [MP4Header::checkDuplicatedPts] Duplicate pts 00:06:47,704 at 9800 and 9803
<!>11:28:18-853 [MP4Header::checkDuplicatedPts] Duplicate pts 00:07:07,224 at 10268 and 10271
<!>11:28:18-853 [MP4Header::checkDuplicatedPts] Duplicate pts 00:07:25,784 at 10713 and 10716
<!>11:28:18-853 [MP4Header::checkDuplicatedPts] Duplicate pts 00:07:29,704 at 10807 and 10810
<!>11:28:18-853 [MP4Header::checkDuplicatedPts] Duplicate pts 00:08:53,664 at 12820 and 12823
<!>11:28:18-853 [MP4Header::checkDuplicatedPts] Duplicate pts 00:10:07,784 at 14597 and 14599

<many more similar timing errors skipped>

  11:28:18-857 [ADM_EditorSegment::addReferenceVideo] Original frame increment 00:00:00,041 = 41692 us
<!>11:28:18-857 [ADM_EditorSegment::addReferenceVideo] Duplicate DTS 00:00:17,223 at frame 414
<!>11:28:18-857 [ADM_EditorSegment::addReferenceVideo] Duplicate DTS 00:02:30,063 at frame 3599
<!>11:28:18-857 [ADM_EditorSegment::addReferenceVideo] Duplicate DTS 00:03:23,743 at frame 4886
<!>11:28:18-857 [ADM_EditorSegment::addReferenceVideo] Duplicate DTS 00:03:39,383 at frame 5261
<!>11:28:18-857 [ADM_EditorSegment::addReferenceVideo] Duplicate DTS 00:06:47,624 at frame 9801
<!>11:28:18-857 [ADM_EditorSegment::addReferenceVideo] Duplicate DTS 00:07:07,144 at frame 10269
<!>11:28:18-857 [ADM_EditorSegment::addReferenceVideo] Duplicate DTS 00:07:25,704 at frame 10714
<!>11:28:18-857 [ADM_EditorSegment::addReferenceVideo] Duplicate DTS 00:07:29,624 at frame 10808
<!>11:28:18-857 [ADM_EditorSegment::addReferenceVideo] Duplicate DTS 00:08:53,584 at frame 12821
<!>11:28:18-857 [ADM_EditorSegment::addReferenceVideo] Duplicate DTS 00:11:49,384 at frame 17036
<!>11:28:18-857 [ADM_EditorSegment::addReferenceVideo] Duplicate DTS 00:13:14,344 at frame 19073
<!>11:28:18-857 [ADM_EditorSegment::addReferenceVideo] Duplicate DTS 00:14:52,984 at frame 21438
<!>11:28:18-857 [ADM_EditorSegment::addReferenceVideo] Duplicate DTS 00:15:01,784 at frame 21649
<!>11:28:18-857 [ADM_EditorSegment::addReferenceVideo] Duplicate DTS 00:16:07,184 at frame 23217
<!>11:28:18-857 [ADM_EditorSegment::addReferenceVideo] Duplicate DTS 00:18:02,424 at frame 25980
<!>11:28:18-857 [ADM_EditorSegment::addReferenceVideo] Duplicate DTS 00:18:26,864 at frame 26566
<!>11:28:18-857 [ADM_EditorSegment::addReferenceVideo] Duplicate DTS 00:19:47,904 at frame 28509
<!>11:28:18-857 [ADM_EditorSegment::addReferenceVideo] Duplicate DTS 00:20:06,664 at frame 28959
<!>11:28:18-857 [ADM_EditorSegment::addReferenceVideo] Duplicate DTS 00:23:37,584 at frame 34016
<!>11:28:18-857 [ADM_EditorSegment::addReferenceVideo] Duplicate DTS 00:24:29,344 at frame 35257
<!>11:28:18-857 [ADM_EditorSegment::addReferenceVideo] Duplicate DTS 00:25:03,544 at frame 36077
<!>11:28:18-857 [ADM_EditorSegment::addReferenceVideo] Duplicate DTS 00:26:09,944 at frame 37669
<!>11:28:18-857 [ADM_EditorSegment::addReferenceVideo] Duplicate DTS 00:29:05,744 at frame 41884

<many more similar timing erros skipped>

and wrong frame rate info in the codec:

  11:28:18-054 [extractSPSInfo_mp4Header] Parser created
  11:28:18-055 [extractSPSInfo_mp4Header] Codec created
  11:28:18-055 [extractSPSInfo_mp4Header] Context created, ticks_per_frame = 2
Used bytes 0/41 (+5)
  11:28:18-055 [extractSPSInfo_mp4Header] Width2 : 1280
  11:28:18-055 [extractSPSInfo_mp4Header] Height2: 720
  11:28:18-055 [extractSPSInfo] width:1280
  11:28:18-055 [extractSPSInfo] height:720
  11:28:18-055 [extractSPSInfo] fps1000:25000

It is essentially a 24000/1001 fps video encoded as 25 fps with variable frame rate. IMHO, the best thing to do would be re-encoding it using "Resample FPS" video filter with "23.976 (Film)" as target FPS.

There is no (obsolete, unsupported) libmp4v2-based muxer in VC++ builds.
#2
Main version 2.6 / Re: Video cut error
Last post by jimmyjim - Today at 07:47:58 PM
try saving the file as mp4v2 muxer:
#3
Main version 2.6 / Re: Video cut error
Last post by wmmtevo - Today at 11:33:22 AM
here it is
You cannot view this attachment.
#4
Main version 2.6 / Re: Video cut error
Last post by eumagga0x2a - Today at 09:48:43 AM
Are you on Windows? If yes and the problem persists with the latest available 2.8.2 nightly build from https://avidemux.org/nightly/vsWin64/ then please close Avidemux, open it, reproduce the failure to export the complete selection, close Avidemux again and attach admlog.txt from %localappdata%\avidemux\ to your reply (ZIP-compress it if necessary). You may consistently replace paths in this log file with placeholders.

Please keep in mind that every time you launch Avidemux, the log file admlog.txt from the previous session gets overwritten.
#5
Main version 2.6 / Video cut error
Last post by wmmtevo - Today at 09:09:51 AM
You cannot view this attachment.

I tried to edit and save the video, but it failed.

- The saved video is incomplete. Error -22 ("invalid argument") -

I used all the default settings, but maybe there's a problem in the video.

What settings do I use to save it to fix the problem?
#6
please start it from a terminal, and post the error message.
#7
Unix-Like (Linux/Bsd/...) / Crashes immediately when start...
Last post by Roby0 - June 29, 2025, 04:01:39 PM
I'm on Arch Linux with these packages installed from the extra repo:

2 extra/avidemux-cli 2.8.1-8 (5.4 MiB 18.7 MiB) (Installed)
    Graphical tool to edit video (filter/re-encode/split)
1 extra/avidemux-qt 2.8.1-8 (2.3 MiB 12.4 MiB) (Installed)
    Graphical tool to edit video (filter/re-encode/split) - Qt GUI

When I start Avidemux the window briefly appears and then disappears 0.1 second later and the program exits. I used to be OK because I used it before, but presumably with a newer version something is going wrong?
#8
Windows / Re: Thumbnails on trimmed vide...
Last post by Cimbrium - June 29, 2025, 09:36:09 AM
Old post but no definitive solution added,

For those having similar issues. If the video does not save with a thumbnail and duration, you might need to make sure that you have set both the A starting point and the B ending point. This fixed it for me.
#9
Main version 2.6 / Re: Fix Horizontally Stretched...
Last post by therube - June 24, 2025, 08:33:06 PM
Video -> Copy
Audio -> Copy
Output -> MP4 Muxer --> Configure -> Force aspect ratio --> DAR: 4:3

Otherwise, you can do similar with ffmpeg.

That is lossless (so no need to re-encode).

How a player interprets that may vary, but try it & see if it works for you.

(And any decent player should have rather simple method of interactively changing aspect ratio for any "out of wack" video.)
#10
Main version 2.6 / Re: Fix Horizontally Stretched...
Last post by alexstorm - June 24, 2025, 03:31:13 PM
Rana,
Yes re-encoding is the cleanest solution that works for every playback.

There is a way to adjust the Aspect Ratio for 3rd party players like VLC, but it does not work for Browser or TV app playback.  The math is a little crazy to figure out, because the settings can only be whole numbers.  So for any aspect ratio change you have to go high enough with numbers to no longer need decimal values.

Online Calculator is here: https://www.producerelease.com/blu-ray/parcalc.htm#wrapprcalc

This adjustment works only for VLC or similar 3rd party app players.