So after having tinkered with mixing down 4 audio channels in the
Gstreamer pipeline with audiomixer, using mux_stereo to create 4 audio
channels and one video channel (unsuccessful as of yet), I came up with
the following 'solution', which is rather ugly but works for a while
(mixing/adding live stereo to video-stereo):
liveIn = nrj(input.jack(id="liquidIn", buffer_size=1))
v_src = playlist.once(reload_mode="watch", "/VIDEOS/play_now.pls")
footage = fallback(track_sensitive=true, [v_src,
single("/VIDEOS/break.mp4")] )
footage_audio = drop_video(footage)
footage_video = drop_audio(footage)
liveOut = add(normalize=true, [footage_audio, liveIn])
liveOut = mux_video(video=footage_video, liveOut)
// liveOut sent to output.gstreamer.audio_video(clock_safe=false,
... etc...
However, this produces the '[mux_6831:4] Copy-avoiding optimization
isn't working!' - Error/Warning (?), and has a massive memory leak
causing liquidsoap to bail out after about 10 minutes (when the
available 16G has been used).
Is there no other solution within Liquidsoap to achieve the aim?
best, jeroen
On 05/12/17 15:48, jeroen wrote:
> ...
>
> To be more precise, I want to do this:
>
>
> liveInput = (input.jack(id="liquidSoapIn"):source(2,0,0))
>
> source = playlist.once(reload_mode="watch", "/VIDEOS/play_now.pls")
>
> source = fallback(track_sensitive=true, [source,
> single("/VIDEOS/break.mp4")] )
>
> source = mux_stereo(source, liveInput)
>
>
> Which works if I leave out the mux_stereo bit. If I uncomment the line I
> get the error:
>
> At line 69, char 39: cannot apply that parameter because the function
> (at line 69, char 20) has no more unlabeled argument!
>
> Just do not see what I am doing wrong. Some help with this greatly
> appreciated!!
>
> liveInput(2 audio, 0 video, 0 midi)
>
> source(2 audio, 1 video, 0 midi)
>
> liquidsoap 1.3.3, gstreamer 1.12.3
>
> best, Jeroen
>
>
> On 05/12/17 09:31, Jeroen wrote:
>> Tx,
>>
>> Actually, I meant if there was some documentation apart from the API
>> reference and the general documentation.
>> For me, as a not-savvy in liquidsoap, it is a bit hard to understand the
>> syntax, and the reason why I get this
>>
>> 'function has no more unlabeled argument'
>>
>> error.
>>
>> So I was hoping somebody could enlighten me there with a working example/a
>> more elaborate documentation :)
>>
>> best, Jeroen
>>
>>
>> On 05/12/17 08:11, Bob Stern wrote:
>>>> On Dec 4, 2017, at 12:24 PM, jeroen <[email protected]> wrote:
>>>>
>>>> is there any more documentation (maybe even an example...) available of
>>>> mux_stereo?
>>> http://liquidsoap.info/doc-1.3.3/reference.html#mux_stereo
>>>
>>> More generally, to see the parameters of most functions, go to the
>>> Documentation page:
>>> http://liquidsoap.info/doc-1.3.3/documentation.html
>>>
>>> Then click the “API Reference” link, which takes you to:
>>> http://liquidsoap.info/doc-1.3.3/reference.html
>>>
>>> --Bob
>>> ------------------------------------------------------------------------------
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>> _______________________________________________
>>> Savonet-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Savonet-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users