Log in

View Full Version : how edit/cut MPEG-4 files


survivant001
4th March 2008, 14:31
I have few movies that I made with PS3 EYEToy. The movies are in h264 SimpleProfile, but I want to reencode them with filters, but I want to cut few parts are the movies.

Which tools can I use to do that ? (the cutting part). I could use avisyth to cut the end, but I don't know how to cut few minutes in the center.


any help is appreciated

nm
4th March 2008, 15:08
The movies are in h264 SimpleProfile
There is no such profile. :) Dark Shikari said that your videos aren't H.264 (MPEG-4 AVC) but MPEG-4 SP, so this is still the wrong forum for you question.

Which tools can I use to do that ? (the cutting part). I could use avisyth to cut the end, but I don't know how to cut few minutes in the center.
With AviSynth, you could use Trim two times on the same video, first to select the part at the beginning and then the other one at the end (these parts are separated by the part at the center that you want to remove. Then just join the trimmed clips. I don't use AviSynth much, so there may be easier ways to do this.

I'd recommend taking a look at Avidemux for this job.

J_Darnley
4th March 2008, 15:32
If you use AviSynth to cut your video, you will need to re-encode it. In AviSynth you can use something like:
Trim(0,1499) ++ Trim(3000, 0)
This will cut 1500 frames from the video and then re-attach the two ends. Of course you can replace the frame numbers with the correct ones and you can repeat it for as many as you need up to about 60 cuts. Something about a max argument limit for aligned/unaligned splice.

If you don't want to re-encode your video then you might be able to use VirtualDub(Mod) to cut out the two sections you want with the "Direct Stream Copy" mode. This limits you to only cutting on keyframes. I recall reading somewhere that some free editing software has a smart cut feature which will allow you to cut anywhere but it will only re-encode the frames it needs to (to/from the next/previous I frame). Does anyone know what this software was?

If you actually have AVC video then I think that avidemux can cut it.

nm
4th March 2008, 16:19
I recall reading somewhere that some free editing software has a smart cut feature which will allow you to cut anywhere but it will only re-encode the frames it needs to (to/from the next/previous I frame). Does anyone know what this software was?
This is a common feature in MPEG-2 cutters, but I don't know any such tool for MPEG-4 (A)SP. I wouldn't be surprised if there was one though.

foxyshadis
4th March 2008, 18:26
This is a common feature in MPEG-2 cutters, but I don't know any such tool for MPEG-4 (A)SP. I wouldn't be surprised if there was one though.

Virtualdub & avidemux, in recent versions.

survivant001
5th March 2008, 03:17
thanks

avidemux do the job right.