I'm writing this tutorialt o help people who are using the PVR USB2 from Hauppauge (It can be maybe be use for another Hauppauge Tuner TV Cards).
System on which PVR USB2 is connected :
Code: Select all
Mainboard : Itox G5C100-N-G
CPU : T2300
RAM : 1Gb
Network : 2 x 1Gbps
OS : Debian Lenny , Kernel 2.6.21
Download : pvrusb2-mci-20080210.tar.bz2 (http://www.isely.net/downloads/pvrusb2- ... 10.tar.bz2)
Download : PVR-USB2 Windows drivers (From Hauppauge WebSite)
Extract both of compressed archive
2 Directories are now create ( for exemple : pvr-usb2-mci , pvr-sub2-win )
Now create a directory with the followed name "win_driver" into "pvr-usb2-mci/utils" directory
Copy all drivers from files from PVR-USB2 Windows drivers to win_driver
Lunch the perl script "fwextract.pl" which is located in "pvr-usb2-mci/utils" (That's going to create the firmware)
Now they have 2 files : v4l-pvrusb2-29xxx-01.fw" , "v4l-cx2341x-enc.fw"
Now copy this 2 files into "/usr/lib/hotplug/firmware"
Now type : "depmod -a"
Then type : "modprobe pvrusb2
-- Result
Type : "dmesg | tail" , now should something like the followed lines be
Code: Select all
pvrusb2: Device initialization completed successfully.
pvrusb2: registered device video0 [mpeg]
pvrusb2: registered device radio0 [mpeg]
You can now find this directory : "/sys/class/pvrusb2/"
In this directory should be 1 or more directory like "sn-7440890" , depend on number of PVR-USB2 devices connected
In the new directory should be a list of another directory (Yes lol)
Now if you want to change the Type for the TV Stream , for PAL-B -> "echo PAL-B > /sys/class/pvrusb2/sn-7440890/ctl_video_standard/cur_val"
To use TV input on the PVR-USB2 : "echo television > /sys/class/pvrusb2/sn-7440890/ctl_input/cur_val "
And now to set the frequency : "echo 478250000 >/sys/class/pvrusb2/sn-7440890/ctl_frequency/cur_val"
[Step 3] Stream TV on the network :
You need first to retrive the last version of FMMPEG and VLC , to do it follow the following steps :
- Create a directory where you want for exemple : /home/vlc-stream/
- Type : "svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg"
- Download : "wget http://nightlies.videolan.org/build/sou ... 27.tar.bz2" (uncompress the archive)
- Go now into ffmpeg directory , and type "./configure --enable-gpl --enable-pp" be sure that no errors occured
- Type : "make" , DO NOT use "make install"
- Now go into the vlc directory and type : "./configure --enable-static --enable-shared --enable-mostly-builtin --enable-debug --enable-v4l --enable-v4l2 --enable-pvr --enable-ffmpeg --with-ffmpeg-tree=/tmp/ffmpeg/ --disable-glx"
- And now type "make"
If any errors ocurred you are now ready to use MPEG4 Video streaming on the network (which is better then MPEG2 due to bandwith usage).
And now second :
- Go into VLC directory and type : " ./vlc -vvv --color pvr:/dev/video0:norm=pal:size=720x576:frequency=280250:bitrate=3000000:maxbitrate=4000000 --cr-average 1000 --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=2000,ab=128,deinterlace}:standard{access=mmsh,mux=ts,dst=:8000}'"
- You are now streaming Video on port 8000 with Media Service format. and mp4v video format on the 280.250Hz channel
- Go now on a normal computer and use VLC to open the stream : mmsh://Server_IP:8000
A Thanks to :
- VideoLan Team
- Linux Neuchâtel
- Le Repaire du Sanglier (http://sitelibre.free.fr/forum6/viewtop ... highlight= , for source)
Have a nice day