mifi / lossless-cut

The swiss army knife of lossless video/audio editing
https://losslesscut.app/
GNU General Public License v2.0
28.27k stars 1.37k forks source link

Shortest and longest export settings not respected when exported #2247

Open dopaminereuptake opened 1 week ago

dopaminereuptake commented 1 week ago

The fewer issues I have to read, the more new features I will have time to implement, so I ask that you please try these things first

Operating System

Windows 10

Steps to reproduce

When trying to combine a video file that already had an audio file previously removed with an external audio file, the "Shortest" setting does not appear to be functioning.

To reproduce the issue, simply open a new project using a video that had audio removed, and add an external audio file that is longer than the video file.

Expected behavior

The video file should be 1 minute, 32 seconds.

Actual behavior

Using the screenshot provided, the duration of the exported video should only be 1 minute, 32 seconds.

image

The exported file is still 3 minutes. The video file "freezes" at the final frame of the video, but the audio continues to play.

image

Share log from developer tools

No response

mifi commented 3 days ago

I'm not able to reproduce this. I just tested this with a video h264 of 32 sec where I add an external AAC audio file of 22 sec as a track, and my output becomes 22 sec long if I select "shortest", and if I select "longest", then the output becomes 32 sec.

Under tools -> "last ffmpeg commands", do you see the argument -shortest as part of the command?

Is it possible to share 2 files that reproduce the problem?