I've finished rebuilding the C app, to read from the HDPVR and offer the data via a simple HTTP interface, and embedded a little control to toggle recording on & off. With the HDPVR running around 8mbit, I'm able to stream to about 5 clients simultaneously, which is pretty good going.
The downside is dropouts are still present.. (Update: not anymore!!) I'm hoping its just the HDPVR's fault, as these units are known to glitch occasionally & require a reopen.. even so I'm not going to call it a day yet, I'll have a bash at compiling MythTV and seeing how it's recording code gets on with the device.
I've linked the source below, with a bit of luck, you can save it as hdpvr.c on the pi, and compile it using..
gcc -lpthread -o hdpvr hdpvr.c
Then run it using..
You should get a response of..
waiting for a connection
Once it's running, fire up VLC (http://www.videolan.org/) and use 'open network stream' and give it the url..
And then you should see the video start playing =) Check my other post if you need to select inputs other than component/stereo.
Once the video is playing, you can start recording by visiting (with a browser)..
And stop recording by visiting (with a browser)..
Video is written to the directory you ran hdpvr from.. remember that the video streams will be large!! I've had success writing the data directly to a mounted SMB share =)
Dropouts are still present, the code will close & reopen the device.. usually the VLC client just glitches a little and then resumes playing. The recordings will need streamfixing afterwards to repair the glitches, (which will eventually end up as short cuts to the recording).. I've tried VideoRedo quick streamfix with mixed results so far.. Once I've got the Myth code recording, I'll see if I get better results.
With this code, the CPU load sits around 12% or so, so there's quite a bit of time free to still do stuff yet!!