Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: save audio as mono #993

Open
lockheed opened this issue Jul 5, 2013 · 4 comments
Open

Feature request: save audio as mono #993

lockheed opened this issue Jul 5, 2013 · 4 comments

Comments

@lockheed
Copy link

@lockheed lockheed commented Jul 5, 2013

This option is lacking and I think it is very important for those who download lectures or talk shows from youtube.

Stereo there is useless, and saving a file as mono makes the file size two times smaller.
Also, some lecture videos have good sound only on one channel, while the other remains nearly silent, which is quite annoying when listening. This function would get rid of that, too.

I think it is definitely worth implementing.

@KaelosBeren
Copy link

@KaelosBeren KaelosBeren commented Dec 17, 2015

FFmpeg supports the conversion of stereo to mono:

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

Is this possible with youtube-dl?

@lborgman
Copy link

@lborgman lborgman commented Mar 11, 2018

Some speech recognition API requires mono so this would be very convenient.

@musiclandUSA
Copy link

@musiclandUSA musiclandUSA commented Feb 5, 2019

I would very much like this feature as well, I'm ripping a recorded live show for podcast and would like to dump stereo so we can use a 32kbps aac bitrate. Anyone figured this out in the last 6 months?

Might have answered my own question on this one:

youtube-dl --extract-audio --audio-format mp3 --audio-quality 64 --postprocessor-args "-ac 1" makes a 64kbps mono mp3 file. Only thing I'm unable to do is make a 32kbps mono aac file, youtube-dl seems to ignore the --audio-quality setting for aac.

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

@Neurognostic
Copy link

@Neurognostic Neurognostic commented Sep 27, 2019

I have a use case. For some (rare) videos that have very poor or no audio at all in one of the stereo channels, it would be great to be able to select a channel and use mono instead.

As a workaround this su answer offers two options for converting a stereo video into mono:
https://superuser.com/a/1063242

ffmpeg -i input -map_channel 0.0.0 output

or

ffmpeg -i input -af "pan=mono|c0=FL" output

These both worked for me after youtube-dl had finished post-processing.

I tried using --postprocessor-args but wasn't able to get youtube-dl to pass them correctly to ffmpeg.


Edit;
A bonus would be a flag for automatically detecting an empty[/quiet] channel and converting to mono automatically. Not sure if any of the current [optional] dependency can do that sort of thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.