Case Study: Open Source Live Streaming to FLASH Player (via FFMpeg)


== 1. Concept ==

The text explains how to use open source MPEG production suite FFMpeg to create and serve FLASH (6+) compatible live streams.

Macromedia Flash MX package is the tool suggested by the manufacturer for live streaming. But the default procure is far from straightforward and user friendly, so very few dedicated Flash enthusiasts go that way. Not to forget that Flash Communication Server MX is not free in any meanining of the word “free” …

So we will briefly explain how to encode A/V input in Flash compatible stream, using open source tools.

== 2. Prerequisites ==

* Linux box with (BTTV compatible) video and audio capture cards. CPU power is not critical: example described here is assembled on 800 Mhz Pentium computer.

* FFMpeg ( http://ffmpeg.sourceforge.net ) installed. Main parts of the package are programs ffmpeg (encoder) and ffserver (server). Documentation is available on FFMpeg site.

== 3. Procedure ==

=== 3.1. Server Side: Encoder and Server ===

FFMpeg settings are controlled through ffserver.conf file. The following sections instruct ffmpeg to encode video into an example live Flash stream (SWF format):

Feed feed1.ffm Format swf VideoFrameRate 8 VideoBitRate 256 VideoSize 320x240 VideoGopSize 6 VideoCodec flv VideoIntraOnly AudioChannels 1 AudioSampleRate 44100 AudioBitRate 64

Then the address for the streams would be of the form:

http://the_address_of_the_server:ffserver_port/stream_name




Comments



1
Author:  samsung LN46A650 | Date:  December 16, 2008 | Time:  1:29 am

Hi!

I’ve found this article to be very useful, though the information is not rather new.
I’m your permanent reader now!

p.s. BTW, what happened to your site template? Or is it just my browser? :)

http://hubpages.com/hub/yoursamsungln46a650

2
Author:  ArretaGor | Date:  December 19, 2008 | Time:  3:21 am

Hi all!

As a fresh open-player.com user i just wanted to say hello to everyone else who uses this bbs :-D



Write a Comment

Note: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

1