You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can try to support multiple input files, but remember that the progress bar uses the duration of the input file to calculate the percentage progress. If there are multiple input files with different durations, you will need to make sure that the correct duration is set as the total when creating the progress bar.
If -t is in the FFmpeg command , this is simple as the total value for the progress bar should be set to the value after -t.
CrypticSignal
changed the title
[FR] Support multiple input durations get
[FR] Support multiple input files
Dec 3, 2023
We can try to support multiple input files, but remember that the progress bar uses the duration of the input file to calculate the percentage progress. If there are multiple input files with different durations, you will need to make sure that the correct duration is set as the total when creating the progress bar.
I would say in most use cases the transcoding length is the duration of the shorter file, so this would be a good default to set when setting the total for the progress bar, but if you can think of any situations where the transcoding length will be equal to the length of the larger file, add logic to set the total to the length of the longer file in these situations.
If -t is in the FFmpeg command , this is simple as the total value for the progress bar should be set to the value after -t.
Thanks for your suggestion. BTW, there is a new situation when ffmpeg -f concat -i filelist.txt -c copy output.mkv
Future Request Reason
Currently, the script just calls
self._set_file_info()
once, so we can only getone
input file durations.By the way,
ffmpeg
support spilt file by these options, we should support-ss
,-t
and-to
, it is common to use.Solution
I will work in #17
The text was updated successfully, but these errors were encountered: