'how to duplicate audio channel in stereo audio in video with ffmpeg
I just got a lot of video files. They all have stereo audio track - left channel and right channel. But actually, the right channel is blank, is empty. When you play this video with stereo earphones, only left side earphone has sound, no sound come from the right side earphone. So is there a way to duplicate this left channel and make it become the right channel, so that both sides of earphone has sound? I know I can do this in some video editing software, but they are expensive and too much system resource wasted. Can i do this in FFmpeg?
Solution 1:[1]
ffmpeg -i in.mp4 -c:v copy -af "pan=stereo|FL=FL|FR=FL" out.mp4
This should work. Since your right channel is blank, setting FL=FL|FR=FL
means front left of input mapping to front left of output, and front left of input mapping to front right of output.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |