I'm trying to create a proxy encoding workflow for several types of cameras, which need different settings depending on the cameras way of storing the audio tracks.
Lets take two examples, the Sony Fx6/9 creates 8 tracks of audio stream like this
While the Arri Amira creates 1 steram with 5 channels, like thisAudio #1
ID : 3
Format : PCM
Format settings : Little
Format settings, wrapping mode : Frame (AES)
Codec ID : 0D01030102060300-0402020101000000
Duration : 36 s 880 ms
Bit rate mode : Constant
Bit rate : 1 152 kb/s
Channel(s) : 1 channel
Sampling rate : 48.0 kHz
Frame rate : 25.000 FPS (1920 SPF)
Bit depth : 24 bits
Stream size : 5.06 MiB (1%)
Delay_SDTI : 32042600
Locked : Yes
Best option would probably be to make conditionals based of audio channels, but there is some camera identifying metadata as well that could be used.Audio
ID : 2
Format : PCM
Format settings : Little / Signed
Codec ID : in24
Duration : 11 s 560 ms
Bit rate mode : Constant
Bit rate : 5 760 kb/s
Channel(s) : 5 channels
Sampling rate : 48.0 kHz
Bit depth : 24 bits
Stream size : 7.94 MiB (2%)
Language : English
Encoded date : UTC 2022-03-25 13:29:09
Tagged date : UTC 2022-03-25 13:29:20
For the arri this could be used
And for the Sonycom.arri.camera.CameraModel : ARRI AMIRA
I see MediaInfo is bundled in FFAStrans, but I am unable to find information on how it can be used.CameraAttributes_FirstFrame : PXW-FX9V 4002569 Version3.01
Other suggestions for filtering settings depending on the footage is very welcome.