Adam-Kay / Batch-Encoder

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

Add option to merge audio streams together #12

Open Adam-Kay opened 11 months ago

Adam-Kay commented 11 months ago

Improvement Description

When #9 is closed, the encoder utility will be able to preserve all audio streams that are in the input file. But video players by default will only play the first stream and the second one will be silenced. This is inconvenient for certain kinds of recordings, where system audio and microphone audio are in separated tracks.

Functionality / Design

Maybe detect if there are files with multiple audio streams and offer to merge them together in the final file.

How to implement

Somehow the program will "scan" ahead and see if there are files with dual audio tracks and ask what it should do prior to the start of the encoding queue.

Adam-Kay commented 11 months ago

Idea

Still not sure how to do the "scan ahead" but pretty happy with the following scheme for the question:

Detected multiple audio tracks in some of this folder's files. How would you like to proceed?

  • M to merge audio tracks together in each file
  • S to keep audio tracks separate in each file
  • F to keep only the first audio track in each file
  • D to decide individually per file
Adam-Kay commented 11 months ago

Maybe introduce some color into this?

Now broken off into https://github.com/Adam-Kay/Batch-Encoder/issues/18

Adam-Kay commented 11 months ago

May need ffprobe (part of FFmpeg) in order to do the "scanning ahead" part. In which case, I should wait for #25 to be completed before trying to do this.