VideoHelp Forum
+ Reply to Thread
Results 1 to 17 of 17
Thread
  1. Member
    Join Date
    Jul 2006
    Location
    United States
    Search Comp PM
    I am getting errors when trying to use MKVToolNix to split a file. The original video length is 3 minutes 50 seconds, and I need just the first 45 seconds. I have tried the following options:












    None of these have worked. It's kind of frustrating that after so many years, the UI of this app remains very unintuitive unless you know exactly what you're doing and error messages are cryptic and incomplete.
    Last edited by Knocks; 19th May 2021 at 17:41.
    Quote Quote  
  2. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Try it this way
    Image Attached Thumbnails Click image for larger version

Name:	spl1.png
Views:	85
Size:	27.3 KB
ID:	59007  

    Quote Quote  
  3. Member
    Join Date
    Jul 2006
    Location
    United States
    Search Comp PM
    @davexnet That produces no errors but the resulting file is the same size and length as the original.
    Quote Quote  
  4. What do you mean by "didn't work"? By parts base on timestamps 00:00:00-00:00:45 or 0s-45s worked for me. Of course, the length wasn't exactly 45 seconds because it has to split on keyframes.
    Quote Quote  
  5. Member
    Join Date
    Jul 2006
    Location
    United States
    Search Comp PM
    @jagabo see post above
    Quote Quote  
  6. Kawaiiii
    Join Date
    May 2021
    Location
    Italy
    Search Comp PM
    Originally Posted by Knocks View Post
    The others are totally wrong (with those settings you are simply telling mkv to START splitting from 45s till the end and the last one is totally meaningless)

    But this one should work. I used splitting like this with MKVTOOLlnix a lot of times, it always worked.
    Quote Quote  
  7. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    The example I gave works, but it produces the rest of the file also. Here's the details in Windows Explorer
    Image Attached Thumbnails Click image for larger version

Name:	spl3.png
Views:	55
Size:	5.2 KB
ID:	59009  

    Quote Quote  
  8. Member
    Join Date
    Jul 2006
    Location
    United States
    Search Comp PM
    @krykmoon I know that it should work. I posted this thread because it didn't. I gave up and just re-cut the audio with Audacity and remuxed into a new mkv (the video was already 45 seconds to begin with).
    Quote Quote  
  9. Kawaiiii
    Join Date
    May 2021
    Location
    Italy
    Search Comp PM
    Originally Posted by Knocks View Post
    (the video was already 45 seconds to begin with).
    hem.. but if it was ALREADY 45 seconds long to begin with... why... trying to split it through mkvtoolnix to make it... 45s long ????
    Quote Quote  
  10. Member
    Join Date
    Jul 2006
    Location
    United States
    Search Comp PM
    @58krykmoon The video stream was 45 seconds but the audio was almost 4 minutes, which made the whole MKV 4 minutes. I just went the Audacity route because MKVToolnix wouldn't work.
    Quote Quote  
  11. Kawaiiii
    Join Date
    May 2021
    Location
    Italy
    Search Comp PM
    Originally Posted by Knocks View Post
    @58krykmoon The video stream was 45 seconds but the audio was almost 4 minutes, which made the whole MKV 4 minutes. I just went the Audacity route because MKVToolnix wouldn't work.
    A video stream with an audio and a video having different durations... is a very BAD video stream to start with.

    You can't blame MKVToolnix not being able to split it correctly.
    Every correctly muxed file is splitted absolutely fine by MKVToolnix.
    Quote Quote  
  12. Member
    Join Date
    Jul 2006
    Location
    United States
    Search Comp PM
    I'm not blaming it for not being able to split it. I am blaming it for being absolute shit at outputting useful error messages.
    Quote Quote  
  13. I'm a Super Moderator johns0's Avatar
    Join Date
    Jun 2002
    Location
    canada
    Search Comp PM
    Split after duration/45s/2 parts,always work for me.
    I think,therefore i am a hamster.
    Quote Quote  
  14. Use ffmpeg for this:

    Code:
    ffmpeg -i input.mkv -c copy -shortest output.mkv
    Quote Quote  
  15. Kawaiiii
    Join Date
    May 2021
    Location
    Italy
    Search Comp PM
    Originally Posted by jagabo View Post
    Use ffmpeg for this:

    Code:
    ffmpeg -i input.mkv -c copy -shortest output.mkv
    jagabo.. you're my batch and ffmpeg GOD.. 3>

    (i'm not joking at all.. I always learn a new litte nuance about everything.. from your posts - thank you very much for everything you share)
    Last edited by krykmoon; 19th May 2021 at 21:27.
    Quote Quote  
  16. Originally Posted by jagabo View Post
    Use ffmpeg for this:

    Code:
    ffmpeg -i input.mkv -c copy -shortest output.mkv
    I've try this but it lost video from that cut to nearest timestamps.
    Quote Quote  
  17. Originally Posted by kienkzz View Post
    Originally Posted by jagabo View Post
    Use ffmpeg for this:

    Code:
    ffmpeg -i input.mkv -c copy -shortest output.mkv
    I've try this but it lost video from that cut to nearest timestamps.
    As was noted earlier, in copy mode the video will be cut at the nearest keyframe. If you want frame accurate cuts you must re-encode -- at least the cut GOPs.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!