

Lossless trimming and merging of video fragments ( must be same encoder and format ) If more segments are choosen you can merge them after trimming.Ĭode: Select all setworkingdir, %a_scriptdir% The way to use it is to select a video file using the button in the Gui, the mark the begin point on the timeline of potplayer and press " Space " it will send the converted time to the gui and moves the focus to the next editcontrol for the end point of the first segment.

The workaround is getting the file using the Gui and then starting potplayer with it, potplayer must be the default for the video filetype to work. The only thing missing is getting the full filepath from an already loaded video file, if anyone has a solution that would be great. Potplayer displayed 4k without delays and provide frame select accuracy using hotkeys. The code is an example because it is "taylor made " for the job I needed ( only max 3 video segments to merge )įfmpeg can do the job without recoding, it is fast and the filesize does not increase. This code relies on potplayer as video editor viewer and ffmpeg as processing software, the free editors I tested were overkill for the simple tasks of trimming and merging.The win10 video editor could trim but not merge.
