Hauppauge 1212 HD-PVR September 28, 2014 10:22AM |
Registered: 14 years ago Posts: 261 |
Re: Hauppauge 1212 HD-PVR October 01, 2014 11:54AM |
Registered: 10 years ago Posts: 1,037 |
Re: Hauppauge 1212 HD-PVR October 01, 2014 05:31PM |
Registered: 14 years ago Posts: 261 |
Re: Hauppauge 1212 HD-PVR October 02, 2014 02:52AM |
Registered: 10 years ago Posts: 1,037 |
Re: Hauppauge 1212 HD-PVR October 05, 2014 12:57PM |
Registered: 14 years ago Posts: 261 |
Re: Hauppauge 1212 HD-PVR October 10, 2014 08:58PM |
Registered: 14 years ago Posts: 261 |
uname -a Linux debian 3.2.0-4-kirkwood #1 Debian 3.2.41-2 armv5tel GNU/Linux dmesg ... [ 55.230545] usb 1-1.3: new high-speed USB device number 4 using orion-ehci [ 55.391650] usb 1-1.3: New USB device found, idVendor=2040, idProduct=4901 [ 55.398556] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 55.405910] usb 1-1.3: Product: Hauppauge HD PVR [ 55.410573] usb 1-1.3: Manufacturer: AMBA [ 55.414599] usb 1-1.3: SerialNumber: 00A298B7 [ 55.811429] Linux media interface: v0.10 [ 55.846375] Linux video capture interface: v2.00 g++ -g -O2 hdweb.cpp -o hdweb ./hdweb
top - 01:53:16 up 21 min, 2 users, load average: 0.00, 0.03, 0.05 Tasks: 51 total, 1 running, 50 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.7 us, 2.0 sy, 0.0 ni, 97.4 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem: 125284 total, 103316 used, 21968 free, 2108 buffers KiB Swap: 0 total, 0 used, 0 free, 85136 cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 2181 root 20 0 4384 1904 760 S 1.7 1.5 0:21.97 hdwebDoesnt break a sweat with 4 streams: < 4%CPU and < 2Mb RAM
Re: Hauppauge 1212 HD-PVR October 11, 2014 08:05AM |
Registered: 10 years ago Posts: 1,037 |
Re: Hauppauge 1212 HD-PVR October 18, 2014 03:53PM |
Registered: 14 years ago Posts: 261 |
somagic-capture | su nobody -c "cvlc -q - --sout '#rtp{sdp=rtsp://192.168.1.9:8099/v.sdp}'"So I put ffmpeg inbetween and tried to transcode to h264 @ 160x120..
somagic-capture --ntsc --sync=1 --iso-transfers 20 2>/dev/null | avconv -f rawvideo -pix_fmt uyvy422 -s 720x480 -y -an -r ntsc -i - -s 160x120 -c:v libx264 -preset ultrafast -f mpegts - | su nobody -c "cvlc -q - --sout '#rtp{sdp=rtsp://192.168.1.9:8099/v.sdp}'"Surprisingly this actually runs on the dockstar, but with the cpu over saturated the result is a jumpy flickery slideshow when viewed with VLC. As expected the dockstars kirkwood cpu is simply incapable of realtime transcoding.
# on dockstar (as root) somagic-capture --ntsc --sync=1 --iso-transfers 20 | nc 192.168.1.17 4444
# on Linux box (as regular user) netcat -l 4444 | sudo ffmpeg -f rawvideo -pix_fmt uyvy422 -s 720x480 -y -an -r ntsc -i - -c:v libx264 -preset slow -s 640x480 -f mpegts -| pv 2>/dev/null| cvlc -q - --sout '#rtp{sdp=rtsp://192.168.1.17:8099/v.sdp}'Then I connected using VLC client (i.e. on Windows or Android) to Linux box and it works perfectly with 30fps @ 64x480 although dockstar CPU is very high...
top - 20:32:02 up 5:03, 6 users, load average: 1.76, 1.46, 1.20 Tasks: 56 total, 2 running, 54 sleeping, 0 stopped, 0 zombie %Cpu(s): 22.9 us, 49.5 sy, 0.0 ni, 12.4 id, 0.0 wa, 0.0 hi, 15.2 si, 0.0 st KiB Mem: 125284 total, 110068 used, 15216 free, 1740 buffers KiB Swap: 0 total, 0 used, 0 free, 78944 cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3981 root 20 0 8936 5324 640 R 43.4 4.2 5:43.61 somagic-capture 3982 root 20 0 1756 648 556 S 41.4 0.5 5:25.31 ncWith this set up the Dockstar is outputting ~175Mbps of TCP data and the Linux box is transcoding it down to < 1Mbps. So probably too much of a network hog to be a useful configuration.