[mythtv] PATCH: Commercial detection/skip using blank frames
dert at pobox.com
Mon Feb 24 01:04:30 EST 2003
IIRC, it takes about 1 second to scan 15 seconds of video. If we have
500 megs of buffer (30 seconds per mdz), then we can scan commercials
up to 7.5 minutes long without interrupting playback.
If we have too little memory or too slow a CPU, we duplicate compressed
video on the network and decode twice. Otherwise, the playback thread
can use the decoded frames from the scanning thread.
#if Pat /* Feb 23, 23:10 */
> Would it make more sense to do two threads decoding?
> If the first thread caught up to the second thread (not likely ) it
> would pause until the second thread had more output or the skip failed...
> If using a true ring buffer it would be needed a method of making sure
> the second thread didn't overwrite something the first thread could
> still use...
> Further thought: should this be local to the front end, or a network
> operation? How to elminiate duplicate compressed video on the network?
> Just thoughts, not demands, or even suggestions :-)
#endif /* pat at netburp.com */
More information about the mythtv-dev