Previously I posted about compiling FFMPEG with RTMP support. Now I’m going to describe what you have to do to view that content with Erlyvideo running on OSX of course.
Assuming you have MacPorts installed. Run the following command:
sudo port install erlang
Once that is done you are ready to install Erlyvideo. Go here for up to date install instructions (you will also need git installed).
Finally on to the fun stuff. go to http://localhost:8082/
Assuming everything worked alright you should see the flash content loaded. Go ahead open up terminal and run the following command replacing INPUT_FILE with the file of your choice.
ffmpeg -i INPUT_FILE -re -ac 2 -acodec libfaac -vcodec libx264 -vpre default -s 480x320 -f flv rtmp://localhost:1935/rtmp/test
Now switch back to your browser where you have the erlyvideo page loaded. replace the url at the top of the page with.
rtmp://localhost:1935/rtmp/test
Click on the Connect button.
Then towards the bottom of the page click the Play button.
Congratulations you are now streaming video to erlyvideo!!!
So over the past month now I’ve been devoting a lot off effort to learning a programming language called Erlang. Erlang is a functional programming language that is designed for large-scale communication applications with specific focus on high concurrency and error handling. The reason why I’ve been learning this language is because how well it scales and since I love working on the types of applications that require servers to scale fast if needed. I figured it was about time to learn something that worked a little better.
So I hope over the coming months I’ll be able to describe better my experience learning erlang coming from a Flash / Flex / AS3 / JS / HTML / PHP / Python type of background.
First I plan on converting my current wordpress blog over to zotonic and then try to develop a cool video streaming application that will allow you to watch movies from your Plex DB / XBMC DB over the web using erlyvideo.