How i could cut the last 7 second of my video with ffmpeg?
Solution 1:
You have to find out the total duration of the video (either with parsing ffmpeg
output or using other libraries such as MediaInfo, etc.), d and then subtract the time manually from that.
Say your video is 40 seconds long and you want to cut 7 seconds, you need to encode only 33 seconds, so do:
ffmpeg -i input.avi -t 33 -c copy output.avi