Project

General

Profile

Recordings stop saving data much too early

Added by Steve Miller almost 12 years ago

I am running 3.2.18 on a Pogoplug which talks to a single tuner HDHOMERUN. Thus far, I have not been able to get any recording to record the allotted amount of time. (Note: I have only started using TVH with 3.2, and have never gotten recording to work.) Even a 10 minute recording will fail. After a couple of minutes of saving data to the USB hard drive, it just stops adding more data. The drive is not full, and TVH closes the *.mkv file at the end of the recording time with a "Completed OK" message. During the recording, the time stamps of the *.mkv file quit updating. However, after the "Completed OK", the time stamp jumps to the stop time of the recording. This suggests to me that TVH still has control of the file and its not an issue of writing this file to the hard drive.

I have the HDHOMERUN driver running in another console window. It does not print out any errors or warning, it appears to continue to run as normal. At the end of the recording time, the message "stop writing to dvro" appears in the console of the HDHOMERUN driver. I am assuming that this corresponds to TVH releasing the tuner at the "Completed OK".

I put some print statements in dvr_thread of dvr_rec.c. Right before the switch statement, I print out the type of packet that was received. It starts out with packet type 0x00 which I believe is the streaming data packet. When it fails, it just continues to get packet type 0x03 which I think is the signal strength packet. These 0x03 continue to the end of the recording, then it gets a 0x04 and a 0x07. While, I thought the 0x03 packet type was killing it, I found this was not the case, because suppressing them did not improve anything. Closer monitoring of the initial printout when it is working, show an occasional 0x03 within the large group of 0x00.

Questions:

1. Is there a recommended earlier version of TVH that I should try building to use as a baseline test? Remember this system actually never worked, so I cannot rule out anything. The HDHOMERUN was working with some script based recordings several weeks ago, so I believe that hw is OK.

2. Where does the streaming data from the tuner first enter the TVH software? I believe the problem is upstream of dvr_thread. I can put additional print statements, but I really do not know the program flow. With some rough idea of the data flow, I can use the old "half split" method to get an idea of where its getting into trouble.

Thanks.

----- Steve


Replies (26)

RE: Recordings stop saving data much too early - Added by m 321liftoff over 11 years ago

I found a page allocation fault in my dmseg. I thought I had fixed this over a year ago through running "/sbin/sysctl -w vm.min_free_kbytes=65536 > /dev/null 2>&1" before loading dvbhdhomerun kernel components, but this must not be working anymore. I now have a version of dvbhdhomerun with the fix (committed Sun Jan 20 15:07:06 2013 UTC) and will monitor for improvements. Thanks!

(26-26/26)