Re: [FFmpeg-user] Questions about `-to` parameter

2024-11-15 Thread Pan Lee
Thanks for your reply, Vincent. It's very helpful and clarify. I still have one question: Is there any chance that ffmpeg developer might implement this? Because it's not intuitive for user to compute the duration when cropping the video. And as the wiki said, `-t` and `-to` is duplicate in this

Re: [FFmpeg-user] Questions about `-to` parameter

2024-11-15 Thread Vincent Deconinck
> > I look up the ffmpeg document You have probably missed the part of https://trac.ffmpeg.org/wiki/Seeking that says 'Note when "-ss" used before "-i" only: ("-ss" as input option) the timestamps will be reset according to 0.͏ So "-t" and "-to" shall be the same.' :-) [Q1] Is this really intent

[FFmpeg-user] Questions about `-to` parameter

2024-11-14 Thread Pan Lee
Hi, I am using ffmpeg to crop video based on this command: ffmpeg -i input.mp4 -ss 23:43 -to 40:00 -c:v copy -c:a copy output.mp4 but this is a little bit slow, so I try to switch the -ss parameter before -i, which looks like: ffmpeg -ss 23:43 -i input.mp4 -to 40:00 -c:v copy -c:a copy output.mp4