I wrote a small tool to automate splitting / merging videos AND also the corresponding funscripts.
So you can define your favorite scenes in a csv file and the tool will create a new video and a funscript for each of that parts.
This also works vice versa to combine your favorite scenes/videos into one video or to create a loop.
Splitting:
create a csv file with the same name of the funscript and video
define 4 colums: startms endms name speed
name is the name of the video, start&end is where the new video is created from
start and end can be milliseconds, minutes:milliseconds or minutes:seconds.
a good way to get the ms is openfunscripter.
a speed parameter for speed in percent is optional
example:
startms;endms;name;speed
33583;52483;vid1;
52483;75733;vid2;
75749;87399;vid3;
75749;87399;vid3_faster;200
75749;87399;vid3_slower;50
87416;116366;filler;
1:56.416;2:12.916;vid5;
02:12966;02:29699;anotherone;
02:29710;02:41933;lastvideo;
merging:
the csv file has to be in the same place as the videos/funscripts
it needs the colum mergefilename, a speed parameter for speed in percent is optional
example:
mergefilename speed
part1.mp4;
part2.mp4;
part3.mp4;
part2.mp4;150
part2.mp4;50
part3.mp4;
there are three merge modes:
just merge the files → only works when the videos have the same size and format. For example if you want to glue a video together again you just split.
resize and merge → a bit more forgiving. Videos are all scaled to the same size (aspect ratio is preserved and the video will be filled with a black border if required).
resize and render a new video → should be the safest way but rendering a video takes some time.
the merge output is in /merge/output.mp4 and merge/output.funscript
a basic example for splitting/merging, the sourcecode and a bigger splitting example for
https://discuss.eroscripts.com/t/the-evilbanana-endurance-challenge/83994 is included.
[update 1.4] - 12.7.24
- added ouput video fps input field for full/“slow” video Creation
[update 1.3] - 30.4.24
- added fix for corrupted videos when speed increases
- some functionalities for better sync with script
- optional removal of actions that are/got too fast
[update 1.1] - 9.1.23
Moved logic to separate thread
improved logging
funscript existence check is optional now if you just want to scale the video
added speed functionality for split and merge