|
SageTV Github Development Discussion related to SageTV Open Source Development. Use this forum for development topics about the Open Source versions of SageTV, hosted on Github. |
|
Thread Tools | Search this Thread | Display Modes |
#21
|
||||
|
||||
Quote:
I am currently testing some code that makes sure the file is actually growing and re-opens the file if it's not. Speaking to someone who has worked with Java a lot more than I have, is there any real concern that an IOException might not be thrown if the data isn't actually being written out?
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache). Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI. Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom). Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG |
#22
|
||||
|
||||
Quote:
It certainly behaves as if it is running out of data (hence my underflow comment). I'll test a long pause before watching than a skip ahead to catch up close to realtime or live TV. edit: more info.........running ubuntu 14 on intel NUC, recording directories are on USB mounted hard drives (3 internal hard drives mounted in a Mediasonic ProBox HF2-SU3S2, with a single usb3 between ProBox and intel NUC, each usb drive mounted separately in fstab)
__________________
Q: dad, when will you stop changing all the electronics? A: never, so you might as well get used to it. Last edited by cat6man; 04-20-2016 at 07:43 PM. |
#23
|
||||
|
||||
Quote:
__________________
Jeffrey Kardatzke Founder of SageTV |
#24
|
||||
|
||||
i tried recording, waiting a few minutes, then watching and skipping ahead to near-realtime..........the 2nd time i tried this, it crashed the hd300 in about 10s........the first time it went 60s without crashing.
not sure if it matters but the first time (no crash), i skipped ahead in 30s increments. the 2nd time (crashed hd300), i skipped ahead in ~3min increments. do you want me to dig out the logs for these?
__________________
Q: dad, when will you stop changing all the electronics? A: never, so you might as well get used to it. |
#25
|
||||
|
||||
Quote:
EnterNoEscape, Let me know if you think you figured out the problem on your end...or if you want me to create a modified Sage.jar for cat6man so we can have more solid data on what's happening with the file size.
__________________
Jeffrey Kardatzke Founder of SageTV |
#26
|
||||
|
||||
Quote:
I'm using FileChannel in a very normal way. The writes are always appending. There aren't any situations that I see that would cause the file to be shrinking. I read a little more on FileChannel just so I could understand how one might end up with a smaller file and it looks like the only way I could end up doing that is if I used the truncate method or if I just used the default options which will truncate the file on opening; which I don't. cat6man, Were you having the playback issues before I had you disable upload ID? I noticed that it wasn't mentioned prior at least in this thread. I thought you mentioned the HD300 playback issues in the other thread.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache). Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI. Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom). Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG Last edited by EnterNoEscape; 04-22-2016 at 02:18 PM. |
#27
|
||||
|
||||
cat6man,
Have you already tried re-enabling upload id by changing consumer.ffmpeg.upload_id_enabled to true in opendct.properties? I'm interested if that fixes the HD300 live playback or not. Also try MPEG-PS. Stop the SageTV service, then change the entries in Sage.properties for OpenDCT capture devices that look like mmc/encoders/<unique_id>/100/0/encode_digital_tv_as_program_stream to true. I really don't think that OpenDCT is doing anything odd. I feel like a lot more people would have noticed this. There are some users I know leave the live stream running all night and don't wake up to the extender crashed. Narflex, I was finally able to crash my HD300, but I had to deliberately shrink the file while it was playing live. I saw the entry: Code:
Fri 4/22 16:21:12.579 [Pusher@180f2b1] Pusher thread is starting Fri 4/22 16:21:12.586 [Pusher@180f2b1] Miniplayer pusher using buffer size of 131072 Fri 4/22 16:21:12.588 [VideoFrame-0023a500070e@72f10c] isRec=true rd=17770 base=0 eos=false Fri 4/22 16:21:12.592 [Pusher@180f2b1] Adjusting peek buffer size to: 131072 Fri 4/22 16:21:12.594 [VideoFrame-0023a500070e@72f10c] VF thread is now waiting for 0:39:04.941 Fri 4/22 16:21:12.973 [Pusher@180f2b1] playPush0() Fri 4/22 16:21:13.465 [Pusher@180f2b1] Error with MiniPlayer, closing UI: java.io.EOFException Fri 4/22 16:21:13.470 [Pusher@180f2b1] pushBuffer call failed; terminating push loop
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache). Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI. Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom). Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG |
#28
|
||||
|
||||
cat6man,
I released a new beta (0.5.2) of OpenDCT that aggregates the output from FFmpeg which basically means that writes will not be smaller than 256k. Often FFmpeg will use the write callback to write out data in sizes less than 1k. This change had a positive effect on the overall accuracy of Comskip on live detection. If I'm reading things right, the random read buffer in use by SageTV is 64k. This change should ensure that every newly read file length is always well ahead of the actual amount that the buffer could possibly buffer. If this works out for you, my finger would be pointing at the file system reporting an incorrect value for the length of the file or FileChannel is being a little too intelligent by allocating space beyond what's needed.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache). Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI. Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom). Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG |
#29
|
||||
|
||||
thanks folks..........i was away this weekend and will get on the suggestions in the morning
by the way, would a hd300 log help by having any additional debugging info that would help?
__________________
Q: dad, when will you stop changing all the electronics? A: never, so you might as well get used to it. |
#30
|
||||
|
||||
ran beta as requested, tested on hd200 down here in basement and live TV still crashes and requires hd200/300 power cycle.
log attached
__________________
Q: dad, when will you stop changing all the electronics? A: never, so you might as well get used to it. |
#31
|
||||
|
||||
cat6man,
What type of filesystem are you using for your recording directory? (sorry if you already explained this, I didn't see it) Is it just local drives, local raid, SMB, NFS, some other network drives, etc.?
__________________
Jeffrey Kardatzke Founder of SageTV |
#32
|
||||
|
||||
great question, but before I answer more specifically, it made me think to try to remove the USB recording drives and leave only /var/media/tv on the NUC's SSD drive..........and voila, live tv works fine
so, it does look like the mounted USB drives are the problem when used as 'recording directories' (for live tv only, they seem fine for recordings) the usb drives are ntfs (from a previous life) and mounted in fstab UUID=90E0C299E0C284C6 /media/m/Media ntfs nofail,auto,noatime,rw,user 0 0 UUID=0EECAA53ECAA353D /media/m/Media2 ntfs nofail,auto,noatime,rw,user 0 0 UUID=F078FBA578FB692C /media/m/Media3 ntfs nofail,auto,noatime,rw,user 0 0 next, i'm going to reformat one as ext4 and see if that works ok. maybe this is a weird windows and linux won't play nice together issue in any case, thanks for the clues and debugging help! edit: more info.........running ubuntu 14 on intel NUC, recording directories are on USB mounted hard drives (3 internal hard drives mounted in a Mediasonic ProBox HF2-SU3S2, with a single usb3 between ProBox and intel NUC, each usb drive mounted separately in fstab)
__________________
Q: dad, when will you stop changing all the electronics? A: never, so you might as well get used to it. Last edited by cat6man; 04-25-2016 at 03:29 PM. |
#33
|
||||
|
||||
changed 1 of my 3 usb drives from ntfs to ext4 and edited fstab.
verified that livetv did NOT crash the hd300 a couple of times, so now i'm reformatting the other 2 usb drives to ext4. after i confirm that they are all happy with livetv (no reason to think otherwise), i'll go back and reduce some timers and see how much i can speed up livetv acquiring and changing channels with the hdhr-prime..........happy family members also
__________________
Q: dad, when will you stop changing all the electronics? A: never, so you might as well get used to it. |
#34
|
||||
|
||||
Quote:
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache). Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI. Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom). Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG |
#35
|
||||
|
||||
agreed..............the other thing i would add, which may only be for non-experts, is to have 'nofail' in fstab for mounting drives, then 'sudo mount -a' to test drive mounting...........there is nothing like screwing up fstab and not being able to boot at all (been there, done that)
__________________
Q: dad, when will you stop changing all the electronics? A: never, so you might as well get used to it. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HDHomeRun Prime - Preventing Tuner-Induced Halts in Recording or Lost Recordings | jgsouthard | Hardware Support | 23 | 04-29-2023 04:07 PM |
Lost tuner functionality? | pjpjpjpj | SageTV Software | 4 | 03-07-2008 12:17 PM |
Lost my a single HDHomeRun tuner | mattdcknsn | Hardware Support | 2 | 02-01-2008 12:25 PM |
Lost 2nd Tuner on terratec cinergy dual tuner | michaeldjcox | Hardware Support | 2 | 07-10-2007 01:57 AM |
Lost Tuner Settings | peterjb | SageTV Software | 2 | 06-08-2004 05:31 PM |