[erlang-questions] Using avconv from erlang

pablo platt <>
Sun Jun 23 11:31:28 CEST 2013


@Max

erlyvideo has interesting stuff in it but I couldn't find docs or active
community.
There are several versions and names (erlyvideo, flussonic) and it is not
clear which one is active and open sourced.

Thanks for the suggestion but for me erlyvideo is not a true open source
project like gproc, mochiweb, rabbitmq, cowboy and many other great
projects.



On Sun, Jun 23, 2013 at 12:24 PM, Max Bourinov <> wrote:

> Hi Pablo,
>
> check this out: https://github.com/erlyvideo
>
> Best regards,
> Max
>
>
>
> On Sun, Jun 23, 2013 at 12:41 AM, pablo platt <>wrote:
>
>> Hi,
>>
>> I'm trying to transcode a live RTMP stream with avconv from erlang.
>> How do I need to use open_port to get output from avconv?
>>
>> The following doesn't work:
>>
>> start() ->
>>     spawn(audio, start_avconv, []).
>>
>> start_avconv() ->
>>     Port = open_port({spawn, "avconv -i rtmp://127.0.0.1/audio/test -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.
>>
>> Is there an erlang project that helps working with audio and video streams?
>>
>> Thanks
>>
>>
>>
>>
>>
>> _______________________________________________
>> erlang-questions mailing list
>> 
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130623/34de083d/attachment.html>


More information about the erlang-questions mailing list