Opened 3 years ago
Last modified 17 months ago
#10843 new enhancement
A -shortest-video option that acts just like -shortest but ignores audio
| Reported by: | Florian | Owned by: | |
|---|---|---|---|
| Priority: | minor | Component: | ffmpeg |
| Version: | unspecified | Keywords: | shortest, duration, -t |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | no |
Description
Anyone who exported a final project with video+audio ready to then encode with ffmpeg, they don't want the audio to extend the last frame of video. Yet they cannot use -shortest because this would make the audio trim the video if shorter.
A good solution to that problem would be a -shortest-video option which would act exactly like -shortest but would only look at the video inputs.
Also, this is probalby extremely simple to implement since you already have -shortest
Thanks!
Note:
See TracTickets
for help on using tickets.



If there is only one video stream, the -frames option is sufficient. If the video is the first output stream, it would be -frames:0 framecount. You don't even need to work out the exact number of frames in the video. Any number bigger than that will work so just put a really big number like -frames:0 99999999.