Le 18.10.2012 20:25, Romain Beauxis a écrit :
> 2012/10/18 Yoann QUERET <[email protected]>:
>> Hi,
>
> Hi Yoann!
>
>> With liq 0.9.2 i use output.pipe.external like this to use ffmpeg to
>> stream mp3 in a mpegts container :
>>
>> #-----
>> def output.mpegtsa(~id="output.mpegtsa",
>> ~restart_on_crash=true,
>> ~codec="libmp3lame",
>> ~ab=192000,
>> ~ar=44100,
>> ~ac=2,
>> ~ipdest,
>> ~portdest,
>> s)
>> def mpegtsa_p(m) =
>> "ffmpeg -f wav -i - -acodec #{codec} -ab #{ab} -ar
>> #{ar} -ac #{ac} -f mpegts udp://#{ipdest}:#{portdest}?pktsize=1316"
>> end
>>
>> output.pipe.external(id=id,restart_on_crash=restart_on_crash,
>> process=mpegtsa_p,s)
>> end
>> output.mpegtsa(input,ar=48000,ipdest="239.168.31.1",portdest=5000)
>> #-----
>>
>>
>> With liq 1.0.1 and no longer output.pipe.external I do not
>> understand
>> how i can do the same thing ?
>>
>> Can you enlighten me with a simple example ?
>
> output.external.pipe has been superseded by output.external in 1.0.0
> and above. You can find it's documentation there:
> http://liquidsoap.fm/doc-svn/reference.html#output_external
>
> It should basically work the same way, except that you can/need to
> specify an encoding format. If you use %wav, this will be equivalent
> to the old output.pipe.external.
>
> Romain
Thk Romain,
WAV ouptut with header=false (for disable duration and encoding as an
infinity stream in RAW PCM) ffmpeg crash.
Is i keep header to true without duration, "encoding" stop after a long
time. (
I test to encoding in mp3 with liq and use ffmpeg to add this mp3 in a
mpegts container :
output.external(
%mp3(bitrate=64),
"ffmpeg -i - -acodec copy -f mpegts
udp://#{ipdest}:#{portdest}?pktsize=1316",
input
)
Yoann
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users