Increasingly people are wanting to stream video on their dedicated servers. Of course you can use YouTube to host your video streams, which is pretty good and easy to do, but the overall video quality is fairly poor. It is of course worth checking out the other video sharing websites as the quality of video varies widely between sites.

Anyway back to encoding and streaming video on a CentOS 5.2 server. You can install using the RPM from rpmforge rather than compiling which makes life a little easier!

rpmforge is maintained by Dag Wieers and is where you can find many prebuilt packages,not part of a standard Redhat/CentOS install. You can find instructions for setting it up here. Here you can download the rpmforge rpm which basically adds Dags repository to your /etc/yum.conf.

So, with rpmforge configured, this was all I needed

# yum install ffmpeg

To encode your video file:

#  ffmpeg -i video.wmv -s 352x256 -aspect 4:3 -b 1200000 -ar 44100 video.flv

There are plenty of video codecs supported by ffmpeg so you can encode .avi, mp3, and .wmv and many others. Also there are many more command line options for ffmpeg.

Now all thats required is a flash player to stream the video in a flash format. You might want to look at the JW FLV Media Player. Just upload the player to your website, and embed the code into your website pages.

2 Responses to “Streaming Video with ffmpeg”
  1. Streaming Video with ffmpeg…

    People are increasingly wanting to stream video on their dedicated servers. While you use YouTube to host your video streams, which is pretty good and easy to do, the overall video quality is fairly poor. This article show you how to install ffmpeg on …

  2. I’m sure I’m not in the minority by any means, but I do intend to improve. I suppose my main problem is that I find large numbers of comments overwhelming, I can honestly say that I’ve skipped reading entries at friends’ blogs, just because there’s already ninety comments on it, and I a) don’t want to get lost in the shuffle, or worse b) don’t want to be obligated to spew out forty comments of my own.

Leave a Reply

Bad Behavior has blocked 116 access attempts in the last 7 days.