ffmpeg-cli-wrapper icon indicating copy to clipboard operation
ffmpeg-cli-wrapper copied to clipboard

Set input duration

Open zhaakhi opened this issue 8 years ago • 4 comments
trafficstars

FFmpegBuilder has an option for input start offset, but not for input duration ("-t")

zhaakhi avatar Feb 23 '17 14:02 zhaakhi

Can you add support for this feature? I also tried using .addExtraArgs("-t 60") but it didn't work: Unrecognized option 't 60'.

phuongnd11 avatar Apr 07 '17 08:04 phuongnd11

Sure, but in the meantime​ you can do this with: .addExtraArgs("-t", "60"). Notice that you pass each argument separately.

On Apr 7, 2017 1:15 AM, "phuongnd11" [email protected] wrote:

Can you add support for this feature? I also tried using .addExtraArgs("-t 60") but it didn't work: Unrecognized option 't 60'.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bramp/ffmpeg-cli-wrapper/issues/94#issuecomment-292472319, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJzc-XejDybBTJsLkeNDtsw58H17-ZPks5rtfC6gaJpZM4MKBfX .

bramp avatar Apr 07 '17 14:04 bramp

It works. Thanks.

phuongnd11 avatar Apr 10 '17 04:04 phuongnd11

Hi, @bramp,

I want to notice that it will be an issue to set start offset and duration in case of multiple streams:

ffmpeg -ss 10 -t 10,00 -i file1.m4 -ss 10 -t 10,00 -i file2.m4 ...

Would you accept pull request if I refactor how inputs are configured ("ss" and "t" will belong to an input ) keeping backward compatibility?

stepan-romankov avatar Jan 02 '18 11:01 stepan-romankov