basyu.blogg.se

Ffmpeg trim video
Ffmpeg trim video










These files also have the segment duration vs movie DURATION tag mismatch. I converted these MakeMKV mkv files using HandBrake into h265 mkv files. Re-ripping the BluRays is an acceptable solution, if this problem has been fixed (I haven't pulled the BluRays out of storage and tried it). The track 2 (audio) movie DURATION tag is 25:53.14133333. The MKV files themselves have the same problem: the segment duration is 25:53.088, with a track 1 movie DURATION tag of 25:24.397875.

ffmpeg trim video

I have a bunch of BluRays that I ripped a couple of years ago with MakeMKV 1.10.4. Remuxing the original mkv file using MkvToolnix.įfmpeg with the -t option may work, but I've got a few thousand files to go through and I don't want to manually type a different command for each one.mp4box -add file.mp4 -new out.mp4 - also doesn't fix the duration.ffmpeg -i file.mp4 -shortest -codec copy out.mp4 - doesn't have any effect (other than removing the mp4 faststart, which I want to keep).It seems like this would be an easy thing to do, but I can't find any solution. I want to set the "Movie" duration to the video duration value without re-encoding. The duration of the audio stream is 1553152ms (25:53.152), and seems to be driving the "Movie" duration. The duration of the video stream is 1524398ms (25:24.398), which is correct. Specifically, the "Movie" duration is 1553152ms (25:53.152), which is too long. MPEG-4 Audio Object Type: 2 (AAC Low Complexity)ĭuration: 1524356 (media timescale units) This file doesn't play back nicely in my media streaming app (or MPC-HC) when I reach the end of the file.ĭuration: 137195807 (media timescale units)ĪVC SPS: ĭuration: 74551296 (media timescale units) I have an mp4 file (converted from an mkv file) that has a longer audio than video stream.












Ffmpeg trim video