Log in

View Full Version : how do i trim mp4 file by frame


lansing
28th March 2012, 19:21
Like i have a x264 mp4 with 1000 frame, and i wanted to trim it from 0 to 990, i tried YAMB, but it doesn't have the option to trim it by frame, how do i do this?

Guest
28th March 2012, 19:27
One option: Demux, cut with VideoRedo, remux.

lansing
28th March 2012, 20:23
weird that videoredo was able to open any other mp4 file i have except the two newly encoded that i'm trying to trim. Any other options out there?

Guest
28th March 2012, 21:10
I said demux first, then cut the ES, then remux.

How did you make the MP4s, and why don't you trim them before you mux them?

hello_hello
28th March 2012, 22:53
You can only cut on keyframes without re-encoding, so you mightn't be able to cut on the exact frame you're wanting to.

Me.... I'd use MKVToolNix to remux the MP4 as an MKV, while using it's option to split the MKV into segments. Just specify a cut time slightly before where you really want it to cut and hopefully there will be a keyframe nearby. Once it's split, if you really want to you can use YAMB to open the new MKV and turn it into an MP4 again.

Guest
28th March 2012, 22:57
You can only cut on keyframes without re-encoding VideoRedo has smart rendering.

lansing
29th March 2012, 00:04
I said demux first, then cut the ES, then remux.

How did you make the MP4s, and why don't you trim them before you mux them?

it was a bluray movie, i originally was planning to encode the whole thing in one attempt, but midway through the process, i need to shut down my computer, so i aborted it in megui, and encoded the other half the other day.

I did both demux it into .h264 extension and mp4, but both can't not be open.

lansing
29th March 2012, 16:41
You can only cut on keyframes without re-encoding, so you mightn't be able to cut on the exact frame you're wanting to.


i'm just looking to end the cut on a certain frame, not the beginning of the cut, so there wouldn't be any issue on the keyframe matters.

----------------------------------------

update on my problem, I was able to trim it using avidemux, using avspmod preview as a frame accuracy reference, since avidemux is not frame accurate with mp4.