this post was submitted on 11 Jun 2024
13 points (100.0% liked)

Linux

47940 readers
1238 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I have some video files which have stereo audio tracks that were created from a mono source. I think the mono signal got sent to the right channel and not the left because when I created the files in OBS I forgot to select mono audio recording. When I play the videos all the sound is on right side only. Hope that makes sense...

How can I either mix down/combine the stereo tracks intoto a single mono track or replace the empty left channel with the audio content of the right channel? Is there a way to do this without reencoding the whole video file?

I could do it in a video editing gui by copypasting the audio track to the other empty channel but I wonder if there might be a more efficient way of doing it. An ffmpeg command perhaps?

Many thanks

top 1 comments
sorted by: hot top controversial new old
[–] Max_P@lemmy.max-p.me 11 points 4 months ago

FFmpeg should be able to do that without reencoding the video, possibly also audio. Basically you want to use -c:v copy -c:a copy and remap the right channel to a single mono channel, and remux all of that in a new output file.

https://trac.ffmpeg.org/wiki/AudioChannelManipulation