PDA

View Full Version : How to cut/join a MP4


JoeBG
12th January 2005, 11:37
Hi,

I made a codec comparison between sex264, MeGUI and Nero. Itīs a 30 second clip out of LOTR2. But this was too short for Nero, didntīt accept. For Nero I produced a 40 MB Clip, the beginning is equal to the other samples.
For hosting all clips I want to cut 30 seconds out of the Nero Clip. Is this possible?


Edit: Damned, I fogot to say that I found this (http://forum.doom9.org/showthread.php?s=&threadid=87240&highlight=cut+MP4) threat about this topic. But there is no solution for this problem in it. So please donīt hit me. :sly:

JoeBG
15th January 2005, 14:52
And here is the solution: We have to cut/join it as AVI in VDubMod. The main ideas are adapted from this threat (http://forum.doom9.org/showthread.php?s=&postid=595628#post595628) this (http://forum.doom9.org/showthread.php?s=&postid=595628#post595628)

1) MP4 AVC Audio to Raw
mp4creator -extract=trackID input.mp4 output.h264

2) raw AVC to AVI
avc2avi -i input.h264 -o output.avi

3) Join or cut in VDubMod - thatīs what everyone knows, but here the example for cut
a.) satrt VirtualDubMod
b.) File=>Open video file (select video file)
c.) Strg+Shift+J (selct the MB of first output)
d.) End (press keyboard)
e.) F7 (where to save part 1)
f.) Pos1 (press keybord)
g.) Strg+Right (press keybord)
h.) End (press keybord)
i.) F7 (where to save the second part)

4) New AVC AVI back to raw
avi2raw -v New_AVC.avi New_AVC_Raw.h264

5) raw to mp4
mp4creator -c New_AVC_Raw.h264 -rate 25 avc.mp4

opsis81
15th January 2005, 22:18
Keep in mind that mp4creator has major problems with B Frames!

Selur
16th February 2005, 09:49
while it's video only one can use the Nero Muxer in Graphedit to split at a specific file size (in MB), but as soon as avc video & aac audio come together there's no way to cut a mp4 file into separate parts atm.
:(

btw. is there a way to append two mp4 files into one?

Cu Selur

Ps.: sorry for bumping this but it still kind of bugs me that the Nero Muxer doesn't accept an aac audio stream as input. (=> got a bunch of 1400MB files on my hdd)

yaz
16th February 2005, 11:17
hmmm ...

joining is always possible on the 'raw level' w/'copy /b' (theoretically!) what i'd tried so far was succesful, but no guarantee for the future :)

safe cutting is (almost) impossible if u consider all the possibilities of avc. say, multiple reference frames, 'arbitrary' frame order, aso, aso. imho, the way outlined above is quite risky. w/a careless cut long sequences of shit-frames can be easily generated this way.

imho, a pass-file-analyzer would be a great help here, to find reasonable cut-points. but (imho!) the safest way is encoding the parts separately.

the bests
y

bond
16th February 2005, 13:23
cutting at IDR frames should always work :)

Wormund
3rd September 2008, 18:14
Hi

You can simple try to use Videocharge for it.

cut and join very simple and fast!

http://www.videocharge.com/Index.php