Hi i have ac3 5.1 audio track
I wanna convert to streo
How can I do it with ffmpeg?
By the how many channels in 5.1 audio track
And a streo track
I don't know much about audio
+ Reply to Thread
Results 1 to 30 of 33
-
Anonymous543Guest
-
Anonymous543Guest
Even i also did research but guides which am seeing is confusing lil bit that why I posted here
In guides i readed something about channels but
what is channel idk
May be mono have one channel and streo have 2 channels but not sure...
And may be 5.1 has 5 channels
And may be channels affects file size also
Like more channels means more file size
Still am not sure about anything ,that's why I need a clear explanation on this topic -
If you're happy with the default mapping and levels:
Code:ffmpeg -i input.ac3 -ac 2 output.ext
-
Anonymous543Guest
So -ac specifies channels?
What if I put only 1 channel
Then sound will only play in one side of my headphone or both side?
More channels will make file size bigger?.. -
A 5.1 AC3 file has 6 channels. Each channel is designated to a speaker. In a standard home cinema setup you would have 6 speakers in total.
A 2.0 (aka stereo) file has 2 channels for 2 speakers, like headphones and most TVs.
Downmixing is the process of reducing 6 channels into usually 2 for stereo playback.
This is more technical, but for playback on stereo equipment such as headphones and TVs I would actually advice not to use a ProLogic compatible downmix (proper term is Lt/Rt), which is often the default. Reason is it mixes the two surround channels equally into both, left and right, therefore removing the ability to discern left and right sounds of the original surround channels. They would just appear to be in the middle then. For stereo playback a Lo/Ro downmix (often labeled "Stereo") yields better results. -
Yes. 2 channels = stereo
One channel is mono. Most players will play on both sides of a stereo system.
It depends on what type of encoding you do. Uncompressed WAV? Yes, more channels means more data. With most compressed formats the bitrate determines the size, not the number of channels. For example MP3 at 128 kbps will deliver the same size for mono and stereo -- but the mono track may sound better at the same size. -
Anonymous543Guest
Whenever i try ,i find something new errors
Whatever I'll try it in this evening and give error reportsLast edited by Anonymous543; 2nd Jan 2022 at 01:50.
-
Anonymous543Guest
when i tried to encode my ac3 5.1 audio to opus 32k with this code
Code:ffmpeg -i input.ac3 -c:a libopus -b:a 32k output.opus
[Attachment 62681 - Click to enlarge]
then i did some research on this error
https://trac.ffmpeg.org/ticket/5718
on this site it says i have to add -af "channelmap=channel_layout=5.1" to my code
then i tried encoding this this code
Code:ffmpeg -i input.ac3 -c:a libopus -b:a 32k -af "channelmap=channel_layout=5.1" output.opus
[Attachment 62682 - Click to enlarge]
it worked but output sound quality was to much badd
then i looked at this guide
https://trac.ffmpeg.org/wiki/Encode/AAC
[Attachment 62683 - Click to enlarge]
it says with -ac 2 this code we can also do it
so i tried encoding with this code
Code:ffmpeg -i input.ac3 -c:a libopus -b:a 32k -ac 2 output.opus
[Attachment 62684 - Click to enlarge]
now my question is with
-af "channelmap=channel_layout=5.1" this code why sound qaulity bad and with,
-ac 2 this code sound qaulity good
i checked both output files codecs information in vlc player
-af "channelmap=channel_layout=5.1"
output.opus codec information
[Attachment 62685 - Click to enlarge]
-ac 2 output codec information
[Attachment 62686 - Click to enlarge]
what does
-af "channelmap=channel_layout=5.1" this code do? and
-ac 2 this code -
-
-
Anonymous543Guest
-
Use clever Ffmpeg-GUI.
Load your video, click main, click convert audio, select your ac3 5.1 track, click continue, set channels to the special 5.1 to 2 setting (it's an improved downmix algorythm), click convert, done.
[Attachment 62719 - Click to enlarge]Last edited by ProWo; 3rd Jan 2022 at 03:23.
-
Anonymous543Guest
For audio video conversion encoding i like cli better then gui because -
Cli = can do everything
Gui = can do limited things -
-
Anonymous543Guest
-
When you do the mix down to 2 channel stereo, be sure to also include Dynamic Range Compression otherwise the audio from the satellite speakers will drown out the main central speaker. This happens alot on youtube where people directly upload their dvdrips and just leave it to be auto processed by the youtube software - the result is that the background music drowns out segments of narration and where people speak to each other.
-
There is no perfect, just choices. If you don't like the standard downmix (see post #17) you can specify the parameters yourself.
https://ffmpeg.org/ffmpeg-filters.html#pan-1
A lot of people like to boost the center channel (as suggested by sageone) for more prominent dialog. -
Based on the dictionary description, yes. But if you ask a musician they will say it's not stereo. We say that if a track was mono to begin with, giving it two channels doesn't necessarily make it stereo. In that case it's two channel mono. Who is right? It all depends on your opinion, I suppose. Musicians believe that if the audio signal is duplicated in both Left and Right channels, then it the output is two channel mono. Stereo is two different unique audio signals in the Left and Right channels. As an example, would Pink Floyd's Dark Side Of The Moon be as enjoyable to listen to in two channel mono as it is in stereo? Or more importantly, would you buy a 5.1 or 7.1 speaker system if all speakers had the exact same sound? I wouldn't. You would have 6 or 8 speakers that all sound the same, with no bass, no sweeping sound effects, and as such not worth the big bucks a set of speakers like that cost. This is just my musician's opinion...
-
For the purposes described here, downmixing a 5.1 source with the given ffmpeg command, 2 channels = stereo. Unless of course the 5.1 source is mono.
Last edited by jagabo; 12th Jan 2022 at 21:46.
-
Anonymous543Guest
My source audio 5.1 has 6 channels and all channel has different signals.....
So if i downmix to 2 channel then I'll get left and right channel with same signals or both will have different signals?? -
You've already been told what the default downmix is in post #17. You could just read the documentation:
https://ffmpeg.org/ffmpeg-filters.html#pan-1
https://trac.ffmpeg.org/wiki/AudioChannelManipulation
Or you could just try it and find out for yourself.
Axel Slingerland should never have brought this up. All it's doing is confusing you.Last edited by jagabo; 13th Jan 2022 at 08:31.
-
I was just making friendly conversation. But your response isn't. So never mind.
Similar Threads
-
Splitting MPG stereo audio into one track per channel
By Quitch in forum Video ConversionReplies: 8Last Post: 25th Jul 2021, 03:21 -
Converting a stereo 116kbps Opus track to AC3; what bitrate should I use?
By broom441 in forum AudioReplies: 5Last Post: 7th Jan 2021, 23:09 -
Which Audio Track to Choose To Multiplex Down to STEREO?
By Pareto Optimal in forum DVD RippingReplies: 6Last Post: 22nd Aug 2020, 03:37 -
How to Convert 2 channel stereo wave into DD5.1 AC3 448 / AC 640
By Bonie81 in forum User guidesReplies: 36Last Post: 2nd Feb 2018, 12:42 -
are there bugs in avidemux 2.6.21 additing audio & convert audio to stereo?
By rama in forum EditingReplies: 0Last Post: 7th May 2017, 04:06