ffmpeg-cli-wrapper
ffmpeg-cli-wrapper copied to clipboard
Set input duration
FFmpegBuilder has an option for input start offset, but not for input duration ("-t")
Can you add support for this feature? I also tried using .addExtraArgs("-t 60") but it didn't work: Unrecognized option 't 60'.
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 .
It works. Thanks.
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?