Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.


Go Back   Doom9's Forum > Announcements and Chat > General Discussion

Thread Tools Search this Thread Display Modes
Old 4th September 2016, 19:34   #1  |  Link
Music Fan
Registered User
Join Date: May 2009
Location: Belgium
Posts: 1,719
Cutting from debut to x seconds before the end with ffmpeg

I'd like to know if there is a way to cut videos keeping everything before a certain point located x seconds before the end, whatever the duration of the video.
The function -sseof allows to keep the end, from a certain point located x seconds before the end, but can't keep anything before.

It would be useful to make a batch (I know how to make a batch) to cut the end credits of lots of episodes with different durations (admitting end credits always have the same duration).

I found this which uses ffprobe ;
but I wonder if something simpler would be possible with only ffmpeg, for example by linking the functions -to and -sseof, but I don't know how to do this.

The idea is to make something like this ;
C:\ffmpeg\ffmpeg.exe "-to; -sseof -30" -i "P:\my video.mkv" -c copy "F:\my shorter video.mkv"
The problematic part is "-to; -sseof -30" which doesn't work.
Music Fan is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 12:40.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.