![]() ![]() Imagine trying to clip a pole vault competition with 10 participants, but you only care about 2 of them. Doing that as quickly as possible, perhaps 30 seconds total per event is about all the time I'd want to spend. ![]() Taking a 3 hour event and cutting it down to 10 minutes of highlights is the goal. If I'd used a module instead of creating the conversion/parsing manually, my code would be smaller, but it would have an external dependency.įor those that wonder why? I create summary clips of sporting events. That mkvscript is about 90 lines long - mainly to convert from seconds into hh:mm:ss.ssss for each time from the EDL. Then I feed that EDL file into a script that generates an mkvmerge command to put the clips into a new file. There are plenty of other methods, but this is a quick way to get a 12GB video down to 200MB for finer editing, if needed. It isn't very difficult, especially if we just want to take the poorly formatted output from 1 command and re-format it for another command. Having a script that generates another script is called meta programming. Sadly, mpv doesn't have the same EDL creation file capability and mpv decided they'd improve (i.e. My fingers are crazy fast with editing using these tools. For stuff that doesn't need perfect cuts, I'll just use mplayer to quickly create an EDL file, then feed that into a slightly different script which generates an mkvmerge command (again). The batch mode is a little clunky, but I have a script that takes the VPrj project file and takes the clip/cut marked locations from it, then generates an mkvmerge command that cuts the parts I'm not interested in. The project files with cut locations are something that other Linux-based tools like comskip support/generate. Getting frame-accurate locations for clips is very fast. The keyboard shortcuts on it are amazing and well-thought-out. I've been trying to replace it with Linux-based video editors for a very long time. This tool is one of the reasons I still have Windows around today. I'm just a happy customer for about the last decade. Some people have it working under WINE, but not me. This is a commercial tool that is deceptively simple, but optimized for handling these types of clip/cutting. Mice are slow, especially when the target for a client is tiny. Perhaps over time, my fingers will get better? I get really frustrated when developers think everyone only uses a mouse. It did work for me initially, though I found the interface a little clumsy. This program has trouble with some input files, which I don't know why. ![]() This is probably the answer that most people would like. ![]() There is a snap version too, but it doesn't work for me due to failed snap package dependencies. It accepts a few different EDL file input types or you can use the GUI to set different cut/clip areas. It is pretty simple, though I find it cumbersome to use. LosslessCut-linux.AppImage This is a GUI tool that creates ffmpeg commands. By default, no subtitles/captions are typically included and only the first audio track. If you want multiple audio tracks and subtitle tracks, be certain to visit those tabs to ensure the tracks you want are included. Then choose the other transcode options and "Start". Change that to "Range:Seconds" and fill in the start/end time. On the main page of handbrake, there is a "Range:Chapters" pulldown. Other media file types only allow cutting at keyframes, so the tools aren't frame-accurate without transcoding.īTW, if you want to transcode at the same time and have just 1 clip, handbrake can cut beginning and end parts off any video file supported. IF you have automation creating accurate cuts for you, cutting by frame is the most accurate, assuming mpeg2 video. If you want frames, use the "-split frames=" option in mkvmerge. It is just a GUI in front of the CLI commands, so expect to type in the cut points by frame or times. There is a GUI for all the mkv tools, mkvtoolnix-gui. If you don't want an mkv container, you can pull the tracks out as you like using mkvextract. All the audio tracks, captions, subtitles and video tracks in that range are clipped too. Code: $ mkvmerge -o output-15min.mkv -split parts:02:00.0-20:00.0 input.VOBThis results in the VOB copy, no transcoding, and simply puts the clip into an mkv container. ![]()
0 Comments
Leave a Reply. |