ffmpeg and streaming video
I’ve been interested in trying to stream some of my videos from my server rather than from YouTube. YouTube is great but the video quality is pretty poor.
I’m running CentOS 5.2 and decided to just try installing ffmpeg from rpmforge rather than compiling it. Lazy but easy!
rpmforge is a repository where you can find lots of prebuilt packages that are not part of a standard Redhat/CentOS install. You can find instructions for setting it up here.
So, with rpmforge configured, this was all I needed
#
Then I looked round for a player to stream the video (which were going to be in flash format). Flowplayer looked pretty nice. I just wanted something simple that would have only the video and controls on the page.
After looking over the sample html pages that come with flowplayer it was easy to create a page with just the video on there. So I uploaded my videos which were in mpg format.
Running the command
#
converted the video to flash format with a pretty high quality but without making the files too large. I’m sure I could probably find better settings if I played around a bit more.
And here some examples of the end result -
http://sysadminman.net/video/takeoffsywell.html
http://sysadminman.net/video/alconbury.html
http://sysadminman.net/video/fisty_nuts.html
Just out of interest – the aircraft is a Pegasus Quantum 582 which you can see a picture of here.
I no longer own it and and miss the summer evenings flying around the english countryside.
Last updated by .
Related posts:
- FreePBX video guide Part 2 – Outbound Calling
- FreePBX video guide Part 3 – Inbound Calling
- FreePBX video guide Part 1 – Creating an Extension
Avaialble systems include FreePBX, PBX-in-a-Flash, Elastix, A2Billing and FusionPBX.
More details and prices can be found at sysadminman.net

Alfie:
Which streaming server do you use to stream the flv file? Can ffmpeg stream media?
24 November 2010, 6:05 ammatt:
Hi, there is no streaming server involved. Just the file and the player.
24 November 2010, 7:47 amAlfie Punnoose:
These videos are not being streamed. They are being downloaded progressively. Is it possible for ffmpeg to stream media files?
13 December 2010, 5:44 ammatt:
Fair point. However the end result, at least on this small scale, is the same?
13 December 2010, 7:15 amrahman:
That has nothing to do with “streaming”, that only produced an FLV file which the player plays in chunked mode. I’m still looking for streaming by ffmpeg
15 February 2011, 1:52 pmroger:
ffserver might work…
17 September 2011, 6:50 am