so i am using the following code to in a windows .BAT file to cut up a video at X time:
bin\ffmpeg -hide_banner -loglevel 0 -i "%video%" -c copy -map 0 -f segment -segment_time %segment_time% -reset_timestamps 1 -segment_format_options movflags=+faststart out%%03d.mp4
No issues there.
I then add a fade in and fade out to those segments using the following code:
for %%a in (out*.mp4) DO bin\ffmpeg -hide_banner -loglevel 0 -i "%%a" -vf "fade=t=in:st=%segment_fade_in%:d=%segment_fade_duration%,fade=t=out:st=%segment_fade_out%:d=%segment_fade_duration%" -af "afade=t=in:st=%segment_fade_in%:d=%segment_fade_duration%,afade=t=out:st=%segment_fade_out%:d=%segment_fade_duration%" -async 1 fade_%%~na.mp4
again NO issue here at all
what i am finding is that it takes a lot of time to add these fade in and fade outs.
So i was thinking of then cutting each of the segments, for say 2-3 seconds at the front and end of the video file adding the fade in or the fade out and then just concat them back together.
not asking for the code but a method that would not take me days to work on only to find it wont work. looking to see if anyone has done similar to save time
on videos over 20-30 seconds or less its not that big of deal but when the videos in the folder are 5-24 minutes it has to be way faster to cut them up.