Log in

View Full Version : Creating Audio Track with Phase Difference


Dave1024
5th September 2013, 07:18
Hi,

I would like to create an audio stream in which tracks are in out of phase. Which tool is useful for achieve the same ? Does ffmpeg help me to create an audio stream which satisfy my needs?

Thanks
Dave

raffriff42
6th September 2013, 02:17
ffmpeg filter command to reverse phase of right audio channel: -af "channelsplit=channel_layout=stereo[L][R];[R] biquad=-1:0:0:1:0:0[Rinv];[L][Rinv]amerge"

BTW I couldn't find an existing ffmpeg biquad filter example on the Internet, so this may be the first.
It's a very trivial, of course. Good thing for me. References:
http://ffmpeg.org/ffmpeg-all.html#Filtering-Introduction
https://en.wikipedia.org/wiki/Digital_biquad_filter

If you are using Avisynth it is easier:
call GetLeftChannel & GetRightChannel;
call Amplify(-1.0) on one of the channels;
call MergeChannels

pattihubbard
13th September 2013, 06:41
Thanks for the help raffriff!!

ztheme aussie casino reviews (http://www.ztheme.com/)