<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If so, I wonder if it wouldn't be worthwhile for a patch to adjust the commercial detection job priority to always favor realtime comflagging.<br>
</blockquote>
<br></div>
This presumes that I/O is the biggest resource usage of commercial detection. In fact, it's usually CPU usage (for all-software decode of the video) that's the biggest resource usage, and I/O is a negligible load in comparison. This is true when recording high-bitrate, high-resolution MPEG-2 (such as ATSC) and much more so when recording high-bitrate, high resolution AVC/H.264. This is also true when decoding low-bitrate, low resolution (SDTV) MPEG-2 or MPEG-4 with "Auto-commercial-detection jobs when recording starts" enabled, because then you're simply decoding a 1hr show in 1hr.<br>
</blockquote><div><br></div><div style>Mike, CPU is certainly the greatest resource used by comflagging itself... but there is an IO component to it... and if the IO is already nearly saturated with concurrent recordings and playback... comflagging may contribute to playback/recording issues.<br>
</div><div style><br></div><div style>Preferring comflagging on current recordings over a FIFO queue achieves 2 advantages:</div><div style>1. reduction in IO due to caching</div><div style>2. higher priority recordings can be comflagged before lower priority, completed recordings.</div>
<div style><br></div><div style>For example, lets say that one night I record six 1 hour shows, 2 at a time for 3 hours. Assume I only have one comflag job defined and my CPU is just barely fast enough to run realtime. In this case, when my favorite show airs in the 3rd hour of recordings, there will be 2 hours of shows left in the queue before it will get flagged. </div>
<div style><br></div><div style>This happens to me all the time... there are only a few shows that I want to watch right away... mostly so friends/coworkers don't spoil them for me the next day, and they are almost never transcoded when I watch them because the queue is full of stuff that recorded earlier in the evening.</div>
<div style><br></div><div style><br></div></div></div></div>