Page 1 of 1

[Tutorial] Hauppauge PVR USB2

Posted: 27 Jul 2007 20:45
by QuakeCH
Hello,

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
[Step 1] Install the firmware for the PVR-USB2 :
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]
[Step 2] Configure the device :
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

Re: [Tutorial] Hauppauge PVR USB2

Posted: 29 Jul 2007 14:39
by QuakeCH
It's up to date , I hope that's going to help everyone who's need help to use Hauppauge PVR USB2

Re: [Tutorial] Hauppauge PVR USB2

Posted: 30 Jul 2007 09:48
by Jean-Baptiste Kempf
Put it on the Wiki ?

Re: [Tutorial] Hauppauge PVR USB2

Posted: 30 Jul 2007 20:24
by QuakeCH
Doesn't like to write in Wiki :) Prefer in the forum , but if you want to push the tuto into the wiki , it's not a problem.