Le 21.02.2014 17:22, Yoann QUERET a écrit :
> Hi,
>
> I use alsa as input (device = "hw:0,0") and some time i can have a
> problem on left or right input (not a problem with liq but with a 
> cable,
> or with the source, ...).
>
>
> Is there any way to copy left on right channel if right channel level
> is under X dB ? and the same in reverse order ?
> Is it possible to give the level for each channel ? and copy a 
> channel
> to an other ? (both in live)
>
> I have not view any functions in API documentation to solve my 
> problem.

I reply to my self, but i have not a complet solution.
First i need to use liq 1.0.1 (upgrade our system to lastest version is 
to complicated at this time)

I have made this liq test file, and it run with stereo & Left channel 
only but not with right channel only.
I have trying to swap Fallback and mux_mono order but the result is the 
same, Right channel only not fallback.

Have you an idea to solve this problem ?


# Input
source = input.alsa(
         device = "hw:0,0"
)

# Extract the right/Left channel of a stereo source
def stereo.left(source)
   mean(stereo.pan(pan=-1., source))
end

def stereo.right(source)
   mean(stereo.pan(pan=1., source))
end

# Extract L/R
sourceL = stereo.left(source)
sourceR = stereo.right(source)

# L/R Fallback
sourceL = fallback(track_sensitive=false,
                   [ strip_blank(length=5., threshold=-40., sourceL), 
sourceR ])
sourceR = fallback(track_sensitive=false,
                   [ strip_blank(length=5., threshold=-40., sourceR), 
sourceL ])

# Mux L/R
source = mux_mono(mono=sourceL, sourceR)
source = audio_to_stereo(source)

# Output
output.icecast([...])


Thk
Yoann

------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to