WyattBlue / auto-editor

Auto-Editor: Efficient media analysis and rendering
https://auto-editor.com
The Unlicense
2.71k stars 402 forks source link

Question about using --margin on multiple tracks #442

Closed BinaryVigilante closed 5 months ago

BinaryVigilante commented 5 months ago

Hello, I have been using Auto-Editor for a while now and I absolutely love it!

I do however have a question, I don't know if it's a feature or not as I don't think I see it in the Docs.

Basically I have a video with 2 audio tracks, say one for my Microphone and one for Game Audio. I use --margin to automatically cut out silence from the video, my current command looks like this:

auto-editor video.mp4 --margin 0.1sec --edit "audio:stream=0" --export resolve

With audio:stream=0 being my Microphone track.

Now what I want to do is use Auto-Editor to remove silence when BOTH Microphone track and Game Audio track is silent.

Is this doable? And if so how?

BinaryVigilante commented 5 months ago

Of course right after posting the question I find the answer, typical 😅

auto-editor video.mp4 --margin 0.1sec --edit "(or audio:stream=0, audio:stream=1)" --export resolve