**************************************************************** RELEVANT APPLICATIONS ivtv,ivtvctl: The driver thingy that works with our WinTV 150 capture card to produce video, viewable at /dev/video0 ffmpeg,ffplay,ffserver: Suite of libraries/programs that let you play, encode and stream video **************************************************************** INSTALLATION Login as root! ffmpeg - you can compile it from source - Download source - Unzip it - Run configure, then make ffmpeg - or if that doesn't work, use yum: - Firstly, edit your /etc/yum.conf, and add the following lines: [atrpms] name=Fedora Core $releasever - $basearch - ATrpms baseurl=http://dl.atrpms.net/fc$releasever-$basearch/atrpms/stable - Then type 'yum install ffmpeg' ivtv - use yum: - Firstly, edit your /etc/yum.conf, and add the following lines: [atrpms] name=Fedora Core $releasever - $basearch - ATrpms baseurl=http://dl.atrpms.net/fc$releasever-$basearch/atrpms/stable - Type 'yum install ivtv-firmware' - Type 'yum install ivtv-kernheaders' - Type 'yum install ivtv-kmdl-`uname -r`' - Type 'yum install ivtv' (answer Y if prompted for all of these) - For the WinTVPVR150, you also need to type 'yum install ivtv-firmware-audio' - Add the following lines to '/etc/modprobe.conf' alias tveeprom tveeprom-ivtv alias tuner tuner-ivtv alias tda9887 tda9887-ivtv alias msp3400 msp3400-ivtv vlc - use yum Add ? to yum.conf **************************************************************** BASIC SETUP To run ivtv, login as root and run (only have to do this once) (-a = all modules) /sbin/depmod -a /sbin/modprobe ivtv To view the video output: ffplay /dev/video0 **************************************************************** IVTV SETUP - USE IVTVCTL !! Rebooting resets parameters to default values: !! It looks like you cannot edit the settings while viewing the video output with ffplay. To view what card inputs are available: ivtvctl -n To set which input is used: ivtvctl -p 1 (1 = RCA input, 4 = SVID input for our WinTV150) To view codec settings ivtvctl --list-codec-params To set the bitrate (in bps, default is 8000000) ivtvctl --set-codec-params=bitrate=1000000 To set the output resolution (default is 720 x 480) !! Even though the outputted video looks more pixelated if you lower the res, it's blurred together and the window is bigger - is it really resizing the video? ivtvctl --set-format=width=320,height=240 **************************************************************** STREAM VIDEO USING VLC USING GUI Select File, Open File Choose the file you want to stream, or select PVR to stream output from your capture card The PVR settings in the PVR tab seem to be ivtvctl settings, not the bitrate, etc of the output stream Check the "Stream" box, and click on the settings button Choose HTTP, port 8080 or whatever port you want (make sure that port is open). Leave the URL blank Choose your output codec of choice (MPEG-1 seems to work fine), codec (mp1v works), bitrate (256 kbs works), audio if you want it. Click ok, and play to start the stream. To view the stream, on your remote machine, select File, Open File in VLC, and type in http://IP:8080 where IP is the IP of the machine doing the streaming. **************************************************************** STREAM VIDEO USING VLC USING COMMAND LINE **************************************************************** PLAY VIDEO USING FFPLAY ffplay adam-wins-itall.mpg **************************************************************** ENCODE VIDEO USING FFMPEG Convert 'handcuffs.mpg' into 'pork.mpg': ffmpeg -i handcuffs.mpg -an -r 3 -b 200 -t 4 -s 160x120 -vcodec mpeg1video pork.mpg -i handcuffs.mpg Input filename -an Don't encode audio -r 3 Output framerate = 3 frames per sec -b 200 Output bitrate = 200 kbit/s -t 4 Output only the first 4 secs of 'handcuffs.mpg' -s 160x120 Output resolution = 160 x 120 -vcodec mpeg1video Use mpeg1video codec to encode pork.mpg Output filename Encode 10 secs of capture card output to file pork.mpg ffmpeg -i /dev/video0 -an -b 200 -t 4 -s 160x120 -vcodec mpeg1video pork.mpg ****************************************************************