I'm trying to achieve the following :
Given a source .MP4 H264 video source with a few AAC stereo audio tracks, I need to :
- convert the video to ProRes proxy
- burn a Time-code on the video
- while modifyng as little as possible to the audio tracks codec and layout
So far my workflow is :
[Monitor] > [A/V Media] (required for the next "Time code" node) > [Time-code] > [custom FFMPEG] with the custom parameters being
Code: Select all
-map 0:v -vcodec prores_ks -profile:v 0 -qscale:v 16 -acodec copy -map 0:a
No particular problems for the video part, but I would like the audio to be an actual passthrough (= no remap, no re-encode of audio). The problem is, because I need the burn-in "Time Code" filter node, this requires an A/V Media decoder node upfront. And whenever I submit a file to the "A/V Media" decoder node, regardless of its "Audio decode" settings (= whether I pick "No decode", "Full decode" or "Intelligent") the audio ends up being re-encoded as PCM, and all the channels are remapped as mono tracks (even if the "Force output audio channel" is set to "Same as source").
Also if I disable both A/V Media and Time-code nodes, the audio is properly passed through (same AAC codec and same channels/tracks map as the source). But of course I don't get the burned-in Time Code on the video...
So I can't figure out how to do an actual audio passthrough because of this A/V Media node.
So I was thinking about extracting audio upfront, by putting an Audio extraction node before the A/V Media node and by disabling audio altogether in the A/V Media node (as I only need it for the video part), but I can't seem to remux both audio and video in my custom FFMPEG node.
Any thoughts ?