When I used the latest version of the 6.0-2 library to mix audio and video on the Android platform, I found that the -shortest parameter did not work. But there was no such problem before version 6.0. Can you fix this bug? #962
Labels
android
Affect Android platform
ffmpeg-bug
Something isn't right in ffmpeg source code
library
Affects the library
v6.0
Description
When I used the latest version of the 6.0-2 library to mix audio and video on the Android platform, I found that the -shortest parameter did not work. But there was no such problem before version 6.0. Can you fix this bug?
Because sometimes the duration of the audio is longer than the duration of the video, the -shortest parameter must be used.
This is the command used to mix audio and video:
ffmpeg
-i video1.mp4 -i audio1.mp3
-c:v copy
-map 0:v -map 1:a
-shortest
-y output.mp4
Expected behavior
Hope the -shortest parameter will take effect, like in versions before 6.0.
Because sometimes the duration of the audio is longer than the duration of the video, the -shortest parameter must be used.
Current behavior
Mix audio and video on the Android platform, the -shortest parameter did not work,when the audio duration is longer than the video duration.
To Reproduce
Screenshots
If applicable, add screenshots to help explain your problem.
Logs
Environment
Android
arm-v7a
,arm-v7a-neon
,arm64-v8a
,v6.0-2
/v6.0-2.LTS
main
,development
4.0
r21b
Other
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: