Is there any way to crop the last N seconds from a video? The format is in this case 'MPEG-TS'.
With FFMPEG, I know there is an option for start time and duration, but neither of these are usable in this use case. Video can have any possible length, so the duration cannot be fixed value.
Also, the solution must run in Windows command line and can be automated.
The desired functionality can be achieved with the following steps:
Use ffmpeg to determine the length of the video. Use e.g. a cmd script:
Calculate the start and end point for clip operation
Clip the video. As a bonus, convert the TS file to a more optimal format, such as H.264