Skip navigation
Currently Being Moderated

AIR simple streaming server

Aug 4, 2010 7:18 AM

Hi,

 

is it possible to stream audio / flv over a socket connection ?

 

Any examples ?

 

Cheers

Marc

 
Replies
  • Currently Being Moderated
    Aug 5, 2010 1:56 AM   in reply to daslicht

    You can do this by using ffmpeg and ffserver.

     

    You first have to set a ffserver saying

    that you get a flux and making it available on a socket. see http://ffmpeg.org/ffserver-doc.html

    for more information. (on  linux: ffserver -f test.conf)

    The sole problem is to configure the ffserver (the .conf file). But the documentation is quite ok and you have an example in the default .conf file.

    Then create your content with ffmpeg by sending a webcam flux for example to  the socket

    (on linux: ffmpeg -r 15 -s 320x240 -fvideo4lilnux2 -i /dev/video0 http://192.168.0.54:8090/feed1.ffm)

     

    Then you put this code to your air apps:

    <s:VideoDisplay id="display" autoPlay="true" width="100%" height="100%"

    source="http://192.168.0.54:8090/test_webcam.flv" muted="true"/>

    <s:TextInput  id="txt" width="100%"  enter="launchChat()"/>

     

     

    It will display on the videodisplay the flux of your webcam.

    By setting the IPadress, and redirect your ports, you can even use that all over the world.

     

    Julien

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 5, 2010 3:17 AM   in reply to daslicht

    I never did that, but there is a section that explain how to setup the ffmpeg tools on windows at this adress:

     

    http://ffmpeg.arrozcru.org/

     

    Installing the tools will be the most difficult part but as it is just some c soft, it can't be that hard.

    Julien

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points