This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Choose a specific audio channel
#1
Hi
Is it possible to turn the stereo sound into mono?
I want to do the work shown in the figure below.
I do not want to downmix both channels, I will do choose a specific channel (Left or Right) and copy it to mono channel.
How do I do this?


[Image: stereo_mono_exclude.png]

The link below shows how to do this with the ffmpeg command line.
https://trac.ffmpeg.org/wiki/AudioChanne...monostream
Reply
#2
Yes, Hybrid can set custom channel mappings through sox. There is an option for this under Audio->Base->Audio encoding->Filtering iirc.
Will post the exact way of doing what you want later after work. (in ~8hrs)

Cu Selur
Reply
#3
(21.02.2018, 10:56)Selur Wrote: Yes, Hybrid can set custom channel mappings through sox. There is an option for this under Audio->Base->Audio encoding->Filtering iirc.
Will post the exact way of doing what you want later after work. (in ~8hrs)

Cu Selur

thank you very much.
I'm waiting for your guidance.
Reply
#4
So what you want can be done this way:
  1. Start Hybrid
  2. Load your Source (Base->Open File)
  3. set 'Base->Processing->Audio' to 'custom'
  4. enable 'Audi->Base->Audio Encoding Options' (audio reencoding is necessary since you can't change the channel layout otherwise)
  5. enable 'Audi->Base->Audio Encoding Options->Filtering->Downmix' to 'custom' and enter '2v1' into the box on the right. This tells sox to only use the second channel (2) with it's full volume (v1), if you wanted to use the left channel instead you would use '1v1' if you wanted to mix both channels you could use '1v0.5,2v0.5'. You could also use '2v1 2v1' if you wanted the ouput to be stereo and each of the channels should contain the second audio track of the input.
  6. set the 'Audi->Base->Audio Encoding Options->Encoder' option the way you want them
  7. add the audio setting to the audio queue 'Audi->Base->Add current'
  8. configure Hybrid the way you want

Cu Selur
Reply
#5
(21.02.2018, 18:49)Selur Wrote: So what you want can be done this way:
  1. Start Hybrid
  2. Load your Source (Base->Open File)
  3. set 'Base->Processing->Audio' to 'custom'
  4. enable 'Audi->Base->Audio Encoding Options' (audio reencoding is necessary since you can't change the channel layout otherwise)
  5. enable 'Audi->Base->Audio Encoding Options->Filtering->Downmix' to 'custom' and enter '2v1' into the box on the right. This tells sox to only use the second channel (2) with it's full volume (v1), if you wanted to use the left channel instead you would use '1v1' if you wanted to mix both channels you could use '1v0.5,2v0.5'. You could also use '2v1 2v1' if you wanted the ouput to be stereo and each of the channels should contain the second audio track of the input.
  6. set the  'Audi->Base->Audio Encoding Options->Encoder' option the way you want them
  7. add the audio setting to the audio queue  'Audi->Base->Add current'
  8. configure Hybrid the way you want

Cu Selur

Hi.
I use '3v1' command to convert 6 channels audio to mono (just for test), but the software did not do this, the audio is still 6 channels.
The new audio is 6 channels with the third channel (3) set as full volume (v1), and other channels set to zero volume (v0).
I don't need this 6 channels audio, i want a mono audio.
How to delete channels with zero volume?

This is my source audio for test:
   

And this is Hybrid output with '3v1' command:
   
Reply
#6
Might bei a bug with the Channel mappings will look at it this evening.
Reply
#7
Ahh,.... do not include the other channels, just use:
3v1
NOT
1v0 2v0 3v1 4v0 5v0 6v0
-> I you use the second, you tell Hybrid to create 6 channel output. Big Grin

Feeding Hybrid with 5.1 audio and using '3v1' I just end up with mono output and the channel mapping is mono.
If that is not the case for you I need a debug output level 9 of the job creation to know what you are doing.

Cu Selur
Reply
#8
(23.02.2018, 18:21)Selur Wrote: Ahh,.... do not include the other channels, just use:
3v1
NOT
1v0 2v0 3v1 4v0 5v0 6v0
-> I you use the second, you tell Hybrid to create 6 channel output. Big Grin

Feeding Hybrid with 5.1 audio and using '3v1' I just end up with mono output and the channel mapping is mono.
If that is not the case for you I need a debug output level 9 of the job creation to know what you are doing.

Cu Selur

I Feeding Hybrid with 5.1 audio and just used '3v1' command and Hybrid output is 6 channels.

Here is the debug file:
Reply
#9
Quote: I need a debug output level 9 of the job creation to know what you are doing.
and the attached file is a debug level 4, which contains the job creation and processing,... Sad

I repeat: I need a DebugOutput Level 9 of the job creation.

Cu Selur
Reply
#10
Found the problem.
-> Looking into it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)