PeterL1n / RobustVideoMatting

Robust Video Matting in PyTorch, TensorFlow, TensorFlow.js, ONNX, CoreML!
https://peterl1n.github.io/RobustVideoMatting/
GNU General Public License v3.0
8.53k stars 1.13k forks source link

Support writing the audio stream back into video #83

Open Ahuge opened 2 years ago

Ahuge commented 2 years ago

This PR remuxes the audio stream back into the output video.

When output_type == video, we can support adding back the audio stream from the original video input.

It introduces a new convert_video flag passthrough_audio: bool = True.

Ahuge commented 2 years ago

I don't know if you are accepting PRs on this repo. I just found this functionality useful and wanted to offer it upstream