Adam-Kay / Batch-Encoder

Command line batch file encoder using FFmpeg
GNU General Public License v3.0
0 stars 0 forks source link

Encoding dual-track audio might cause second track to be deleted #9

Closed Adam-Kay closed 11 months ago

Adam-Kay commented 11 months ago

Bug Description

Encoding dual-audio video files might result in only the first track remaining in the resultant file.

Steps to Reproduce

[N/A]

Adam-Kay commented 11 months ago

Confirmed. LosslessCut shows that after the file is encoded, it is missing the second track.

Before Encode After Encode
Before After

Potential fix: forcing ffmpeg to use all tracks when encoding files

Adam-Kay commented 11 months ago

Possible solution:

Based off this post, you can probably do:

ffmpeg -i in.mp4 -map 0 out.mp4

Possible issue:

It may be better to have an option to merge the audio streams as opposed to keeping both separate, as video players will only play the first stream by default.

Adam-Kay commented 11 months ago

It may be better to have an option to merge the audio streams as opposed to keeping both separate, as video players will only play the first stream by default.

Now split into a separate issue as #12.