VideoHelp Forum
+ Reply to Thread
Results 1 to 22 of 22
Thread
  1. Member
    Join Date: Jul 2007
    Location: India
    Search Comp PM
    I have a h264 video in mp4 container.

    I want to cut some portions of the video without re-encoding

    I tried virtualdub but it does not recognise the file type .

    please suggest any other software to do it .
    Quote Quote  
  2. Member
    Join Date: Sep 2006
    Location: USA
    Search Comp PM
    You could try MP4box. Note that it can only cut on keyframes.

    MP4Box is a command line application. If you are looking fo a GUI to it, try Cut Assistant or YAMB.

    HTH
    Quote Quote  
  3. Member
    Join Date: Jan 2004
    Location: United States
    Search Comp PM
    I'm trying to trim my clip, downloaded Streamclip and marked the in and out points, saved as another MP4 but the resulting file has 0 bytes. So Streamclip doesn't appear to work at all.
    Quote Quote  
  4. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date: Aug 2000
    Location: Sweden
    Search Comp PM
    Have you tried YAMB or avidemux??
    Quote Quote  
  5. Member
    Join Date: Oct 2009
    Location: United States
    Search Comp PM
    I just trimmed and joined some mp4-AVC-H.264 files from my Sanyo Xacti HD2000 camcorder using Mpeg Streamclip and it was a breeze!

    Simply open the video files you want to join all at once or one after another (I think they'll need to have the same resolution, encoding etc).

    If you choose "Export as mp4" it will re-code, so you need to select "Save As" from the FILE menu.
    Quote Quote  
  6. I know this thread is really old but it is still the first result on google when you search for "trim mp4 without re encoding". I just found this piece of software that worked magnificently.

    http://www.dvdvideosoft.com/products/dvd/Free-Video-Dub.htm

    It appears to be one of those video editing programs that is actually free with no strings attached. Just need to be careful when installing so you opt of of the browser tool bar it is bundle with.
    Quote Quote  
  7. Hoover Fanatic budwzr's Avatar
    Join Date: Apr 2007
    Location: City Of Angels
    Search Comp PM
    What about SolveigMM Splitter? It's just been redesigned for H.264, works great.

    Quote Quote  
  8. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date: Aug 2000
    Location: Sweden
    Search Comp PM
    Added Free Video Dub to our tools list.
    Quote Quote  
  9. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date: Aug 2000
    Location: Sweden
    Search Comp PM
    MP4 h264/AVC editors with preview and lossless cutting:

    Free:
    Avidemux
    Free Video Dub
    Mpeg stream clip

    Trials:
    Solveigmm Video Splitter
    Videoredo Tvsuite H.264
    Quote Quote  
  10. Member
    Join Date: Jul 2013
    Location: Montreal
    Search Comp PM
    My experience with two packages:

    MPEG Streamclip I had no luck with whatsoever. Very buggy from the outset, can't even adjust the volume using the in-app slider. Uninstalled very quickly, along with the other junk you have to install to make it "work".

    Free Video Dub looked more promising at first, but unfortunately it too failed to deliver—the absolute finest sensitivity with which you can select your cutting point is one-half ( 0.5 ) second. That's twelve to fifteen ( 12–15 ) frames and is a pretty bizarre way to write a piece of software. Also, for the short time I did try it, I would have to renavigate to the folder containing my clip every time I reloaded it, because it wasn't remembering its location. That's something else I would put in the bizarre category because I don't believe I've ever encountered another piece of software with this minor but irritating flaw. But I would have kept it if it was just that ; the deal breaker is the -second resolution.

    If/when I find a package that allows the simple start point / end point editing of a video clip without re-encoding the whole thing, and without throwing in annoying and unnecessary quirks like the above two, I'll post it . . . here, if the thread OP can edit his post, separately if he can't.

    A big general thank you for the good info I've gleaned from this board these last few weeks.
    Last edited by GuccizBud; 8th Apr 2014 at 20:19.
    Quote Quote  
  11. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date: Aug 2000
    Location: Sweden
    Search Comp PM
    The biggest problem with most free editors is that you can only cut at keyframes/intra frames and they can be several seconds a part. You might be able to select correct frame but when you save/export you wont get the exact cut.
    Quote Quote  
  12. Member
    Join Date: Jul 2013
    Location: Montreal
    Search Comp PM
    Thx for your input—yes, I've noticed that as well.

    I can, of course, just go for one of the more established packages where frame selection isn't a problem, but (a) I think for the most part they will recode the whole clip, and (b) I actually prefer small footprint apps that I call on mainly for one particular purpose, effectively turning those little apps into "tools" of a sort.

    I notice you said “…the biggest problem with most free software…” (emphasis mine) ; is it significantly more difficult then to code an app in a way that allows the user to stop on a particular frame ? You mentioned “key frames” ; I'm familiar with the term and general concept, but guess I need to study up on it a bit more. Help lower my frustration levels when dealing with vid rendering apps.
    Quote Quote  
  13. Keyframes are a kind of "independent frame" which don't rely on information from other frames in order to decode them. That's why video generally needs to be cut on a keyframe. You can't cut on a non-keyframe as the preceding frames can contain information required to decode the following frames. "Stopping" on a non-keyframe really isn't the problem as such.

    If I'm just splitting an MKV in a few places I use MKVMergeGUI. To find the keyframes I open the video in MPC-HC and use the Shift key along with the left right arrows which jumps between keyframes. When I've found the closest keyframe to where I want to cut I make note of the time and set the split point in MKVMergeGUI a second before that (MKVMergeGUI splits on the keyframe following the specified split pont).

    For editing and splitting/joining with a preview you could try Video To Video Converter. It has a "commercial remover" and "file splitter" under the Tools menu and it'll work with lots of file types. You still need to cut on keyframes.
    Quote Quote  
  14. Member
    Join Date: Nov 2002
    Location: United States
    Search Comp PM
    VideoReDo TV Suite is obviously the best choice if you can afford it. If you do a lot of TV captures or editing of mp4/mkv files it's worth the $100 price tag.

    I like Free Video Dub. You have to have the patience though cause it only makes one good cut at a time. If you try to do more at a time, it will crash (so will VideoReDo though if you try to do too much too quick).

    My first attempts were like hello_hello suggests with mkvmerge. I would open the file in Virtualdub and go to the frame to cut at and take notes and then use those points in mkvmerge.

    You could also open the file in Virtualdub and select the same compression as the input file and choose smart rendering into an avi container and then mux into an mkv container afterwards. Not really the way you would normally do it but it would work.

    I haven't had much luck with Avidemux at all. H264 isn't meant to be edited but used as the end result. it is very tricky to edit and you need to go as slow as possible to find your cut points and avoid jumping back and forth.
    Quote Quote  
  15. Originally Posted by GuccizBud View Post
    “key frames” ; I'm familiar with the term and general concept, but guess I need to study up on it a bit more.
    High compression video codecs get most of their compression by not repeating parts of the picture that don't change from frame to frame. A keyframe (aka I frame) is encoded much like a JPG picture. Everything needed to reconstruct that frame is included in the compressed data for that frame. Other frames (forward Predicted, P, or Backward predicted, B) only contain the changes relative to prior and/or later frames. That is, they say something like "this frame is the same as the previous frame, except for the following changes..." or "this frame is the same as the next frame, except for the following changes..." An I frame and all its associated B and P frames are called a GOP (Group Of Pictures).

    If you remove the I frame from a GOP there is no way to reconstructed the remaining frames. So many editors only allow cuts on I frames. Other editors allow cutting on any frame but will reencode the entire video -- losing quality over the entire video. "Smart" editors allow cutting on any frame but only reencode the cut GOPs, only the cut GOPs lose quality.

    Smart editing may not sound so difficult but it's complicated by several factors. First, the editor has to have the ability to decompress and compress with the codec used (that may mean paying royalties to MPEG LA, or whoever). The order in which frames are stored in the file may be different than the order they are to be displayed -- so locating the right frame is more complicated than just seeking to frame N. Some codecs allow for "open GOPs" -- a few frames at the end of the GOP may reference the I frame in the next GOP. And since the frames are stored in decompression order, not presentation order, the data for those final B frames will appear after the I frame of the next GOP.
    Quote Quote  
  16. Originally Posted by DarrellS View Post
    VideoReDo TV Suite is obviously the best choice if you can afford it. If you do a lot of TV captures or editing of mp4/mkv files it's worth the $100 price tag.
    Nope, it is definitely not the best choice. Just perhaps the most known one. I believe I have tried almost every smart cutter available (VideoReDo included), and the one that is the clear winner is TMPGEnc Smart Renderer 4. Those guys got it right. Anyone who tries it for themselves will agree. It is paid software of course, but it is well worth its price.
    Quote Quote  
  17. Mentally Deficient Mr.Delusional's Avatar
    Join Date: Aug 2012
    Location: The ghetto of Emerald City
    Search Comp PM
    Originally Posted by DarrellS View Post
    I like Free Video Dub. You have to have the patience though cause it only makes one good cut at a time. If you try to do more at a time, it will crash (so will VideoReDo though if you try to do too much too quick)
    I was going to give Free Video Dub a try, but I'm confused on the versions and the size(s) of the program. Here on Videohelp the newest version listed is 2.0.22 and the size of the download being 23.9MB
    On the Free Video Dub website the newest version listed is 2.0.21.822 and the size of the download being 33.23MB

    I'm guessing that the version numbers are just rounded up. And the size difference is the junk/crap included, if it isn't deselected and what not?
    Quote Quote  
  18. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date: Aug 2000
    Location: Sweden
    Search Comp PM
    Nope, it's not rounded up. It's version 2.0.22.925. Maybe they have withdrawn that version...I have no idea. I never use crap software.
    Quote Quote  
  19. Mentally Deficient Mr.Delusional's Avatar
    Join Date: Aug 2012
    Location: The ghetto of Emerald City
    Search Comp PM
    Thanks Baldrick. I should have realized that they have no changelog what so ever. I'll stay away
    Quote Quote  
  20. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date: Aug 2000
    Location: Sweden
    Search Comp PM
    And as crap I mean adware and no changelog. THe software might be useful. Just be careful when installing it.
    Quote Quote  



Similar Threads