tag:blogger.com,1999:blog-513334600397219012.post8118461981719360338..comments2024-03-21T00:33:13.656-07:00Comments on Dwellers Tech Musings: Raspberry Pi and the HD PVRDwellerhttp://www.blogger.com/profile/15207795688140161510noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-513334600397219012.post-3890056426212962972015-11-07T10:51:49.078-08:002015-11-07T10:51:49.078-08:00Can this be used to record (onto USB-drive or SD-c...Can this be used to record (onto USB-drive or SD-card) an already-encoded Transport Stream? If so, at what bit rate?Aldohttps://www.blogger.com/profile/07001998036591526524noreply@blogger.comtag:blogger.com,1999:blog-513334600397219012.post-3782677419972650622015-11-07T10:51:01.771-08:002015-11-07T10:51:01.771-08:00This comment has been removed by the author.Aldohttps://www.blogger.com/profile/07001998036591526524noreply@blogger.comtag:blogger.com,1999:blog-513334600397219012.post-52290275472865498262015-08-27T14:40:18.692-07:002015-08-27T14:40:18.692-07:00Just be careful using tools that merely stream dat...Just be careful using tools that merely stream data from /dev/video0 .. as I found above even using dd with appropriate flags set can still cause it to just give up for no apparent reason. (Although rumor has it, that it's something to do with a somewhat small fixed sized buffer inside the unit, that if you allow to fill to capacity, shuts the stream down.. so you have to empty it faster than it fills it to prevent it, and dd/ffmpeg don't always manage that)<br /><br />I ended up writing a simple app that pulled data off the device node using one thread, and requeued it into an internal buffer that was then written out to smb shares etc.. during testing in worst case scenarios I could see it use almost all the available memory on an original 256mb pi just acting as a buffer while waiting on the smb write to complete. <br /><br />I did make a little headway into coding a backend for tvheadend that allowed the device to act as a tuner (with oob channel changes via a script).. but then I changed countries and project priorities shifted away from playing with grabbing hdmi, towards other more fun things.. =)<br /><br />Have a read of the other hd pvr posts I put up tho.. I think they all culminated at this one.. <br />http://dwellertech.blogspot.ca/2013/07/raspberry-pi-and-hd-pvr-streaming-and.html#moreDwellerhttps://www.blogger.com/profile/15207795688140161510noreply@blogger.comtag:blogger.com,1999:blog-513334600397219012.post-16825678424493324212015-08-27T14:12:55.783-07:002015-08-27T14:12:55.783-07:00I dug into this a bit, but moved from the pi to th...I dug into this a bit, but moved from the pi to the PogoPlug v4. Less power, considerably less cost, but actually better suited to this task. Using a perl script running as daemon to interface with sage and present itself as a tuner. Using ffmpeg to stream from the /dev/video0 directly to the sagetv server's samba shares.<br /><br />I'm now just working out the ir blaster. The built-in hdpvr driver that is in the archlinux build for the pogoplug is older, and doesn't support the blaster - so I'm muttling through the very long process of compiling a new hdpvr driver... compiling goes REALLY slow on an 800MHz Kirkwood. I'm very much NOT a linux guy, so this is fun.CraziFuzzyhttps://www.blogger.com/profile/13798089980534965801noreply@blogger.comtag:blogger.com,1999:blog-513334600397219012.post-43695983028082471192015-08-03T12:47:31.285-07:002015-08-03T12:47:31.285-07:00As you've probably spotted by the amazingly al...As you've probably spotted by the amazingly almost total lack of updates on this in about 2 years.. I've been busy in other directions ;p I really need to get back into writing blog posts.. I've been messing with ESP8266's, using a Teensy 3.0 to read floppy disks, putting a CD32 online with a homebrew plipbox, and playing with my open bench logic sniffer (that I finally got round to figuring out the software stack for).. <br /><br />I really should dig out the old hd pvr and a spare Pi tho, and give it a blast again.. I was part way through coding up a fake tuner for tvheadend for it, although I wasn't planning on using the ir blaster in the hd pvr, I dimly remember from my days of using it as a tuner under windows that using the ir blaster on the device was a quick way to end up with it being unstable / locking up. <br /><br />Although now, I suspect I could easily wire a relay off a pi GPIO pin to reset it every channel change.. so it might be doable.. it appears there are now linux drivers for the hd pvr 2, so maybe it's time for me to find one of those & have another bash at this =)Dwellerhttps://www.blogger.com/profile/15207795688140161510noreply@blogger.comtag:blogger.com,1999:blog-513334600397219012.post-39845315848664271302015-08-02T19:54:23.088-07:002015-08-02T19:54:23.088-07:00This looks interesting. I'm curious, have you...This looks interesting. I'm curious, have you tried using the IR blaster in the HD-PVR from this Raspbian setup? I'm a user of SageTV, and would love to be able to use an HD-PVR with a Raspberry strapped to it as a network based tuner for SageTV. Could be located somewhere with a cable box. It would need to be able to change channels on the box with the IR blaster, and would need to be able to store the recorded stream onto a windows network share on the server.CraziFuzzyhttps://www.blogger.com/profile/13798089980534965801noreply@blogger.com