Measuring audio cross correlation
Posted: Mon Apr 13, 2020 6:56 pm
Hello everyone,
I've used FFAStrans for some days now and I'm quite enthusiastic about this tool. I realized some simple workflows. But now I'm struggling.
In our archive we have video files with problematic audio channels. Those audio channels (ch.1 and 2 only) have a negative cross correlation (nearly to exactly inverted phase polarity). I'd like to measure the cross correlation of audio ch. 1 and 2 initially and evaluate it in a conditional node to feed the affected files to a different node (e.g. to a channel mapper).
I found the axcorrelate filter in FFmpeg but it is not working / I don't know how to use it correctly ("No such filter: axcorrelate"). Additionally I tried the Aphasemeter filter.
With "-i source.wav -af aphasemeter=video=0,ametadata=print:file=sourcecorrelation.txt -f null -" I can write the cross correlation data into a textfile. But I don't know how (I don't have enough scripting skills yet) to extract these values, calculate the average and feed it back to a conditional node of FFAStrans.
Does anyone have an idea how to realize such a workflow?
Greetings
Pogle
I've used FFAStrans for some days now and I'm quite enthusiastic about this tool. I realized some simple workflows. But now I'm struggling.
In our archive we have video files with problematic audio channels. Those audio channels (ch.1 and 2 only) have a negative cross correlation (nearly to exactly inverted phase polarity). I'd like to measure the cross correlation of audio ch. 1 and 2 initially and evaluate it in a conditional node to feed the affected files to a different node (e.g. to a channel mapper).
I found the axcorrelate filter in FFmpeg but it is not working / I don't know how to use it correctly ("No such filter: axcorrelate"). Additionally I tried the Aphasemeter filter.
With "-i source.wav -af aphasemeter=video=0,ametadata=print:file=sourcecorrelation.txt -f null -" I can write the cross correlation data into a textfile. But I don't know how (I don't have enough scripting skills yet) to extract these values, calculate the average and feed it back to a conditional node of FFAStrans.
Does anyone have an idea how to realize such a workflow?
Greetings
Pogle