<div dir="ltr">Hi Pablo,<div><br></div><div>check this out: <a href="https://github.com/erlyvideo">https://github.com/erlyvideo</a></div></div><div class="gmail_extra"><br clear="all"><div><div>Best regards,</div><div>Max</div>
<br></div>
<br><br><div class="gmail_quote">On Sun, Jun 23, 2013 at 12:41 AM, pablo platt <span dir="ltr"><<a href="mailto:pablo.platt@gmail.com" target="_blank">pablo.platt@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div>Hi,<br><br></div>I'm trying to transcode a live RTMP stream with avconv from erlang.<br></div><div>How do I need to use open_port to get output from avconv?<br><br></div><div>The following doesn't work:<br>
</div><div><div><div><pre>start() ->
spawn(audio, start_avconv, []).
start_avconv() ->
Port = open_port({spawn, "avconv -i rtmp://<a href="http://127.0.0.1/audio/test" target="_blank">127.0.0.1/audio/test</a> -f mp3 -"}, [binary, stream]),
read(Port, <<>>).
read(Port, _Data) ->
receive
{Port, {data, NewData}} ->
io:format("~p~n", [NewData]),
read(Port, <<>>);
M ->
io:format("~p~n", [M])
end.<br><br></pre><pre>Is there an erlang project that helps working with audio and video streams?<br><br></pre><pre>Thanks<br></pre><pre><br><br></pre><br></div></div></div></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>