ffmpeg copy left audio to right
الحالة::مؤرشفة الرابط: https://superuser.com/a/1592759 المعرفة:: Linux
Seems like you have a stereo input, but one channel is silent. You can
- Dump the silent channel and make a mono output (recommended method)
- Or copy the same channel to both channels
Mono output from specific channel
Using the pan filter. Example to place the Front Right channel of the stereo input into the mono output:
ffmpeg -i input.mp4 -af "pan=mono|FC=FR" -c:v copy output.mp4
Or use the channelsplit filter:
ffmpeg -i stereo.wav -af "channelsplit=channel_layout=stereo:channels=FR" -c:v copy output.mp4
- The video is stream copied and is therefore untouched.
- See
ffmpeg -layouts
for accepted layout and channel names.
Copy same channel to both left and right
Using the pan filter. Example to place the Front Left channel of the stereo input into both the Front Left and Front Right channels of the stereo output.
ffmpeg -i input.mp4 -af "pan=stereo|FL=FL|FR=FL" -c:v copy output.mp4
- The video is stream copied and is therefore untouched.
- See
ffmpeg -layouts
for accepted layout and channel names.
Also see FFmpeg Wiki: Audio Channels.