NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) v
« Previous 1 … 13 14 15 16 17 … 125 Next »
Comskip is Fast already - but would this work for faster?

 
  • 0 Vote(s) - 0 Average
Comskip is Fast already - but would this work for faster?
Questor
Offline

Junior Member

Posts: 28
Threads: 8
Joined: Mar 2008
#1
2008-04-09, 04:49 PM
Hello Erik,

1. Video 'sampling' to find program/vs commercial probabilities then scan to find begins & ends.
2. For movie channels (AMC, TCM, HBO, etc.) the parts to cut occur only at the beginning and end...are there options for this?

I note in the .ini file there is an option to skip frame(s), but default is off.
There are some features of commercials that might make quick scanning possible.

On a show with large frameborders it would be simplest, but maybe other types of programs also.

Suggested process -
1. scan from beginning of video until reasonable sure of 'program' and not intro or commercial
2. gather a sample of 1/2 seconds of video at each 5 second interval from the rest of the mpeg
3. perform same type of analysis as now for each sample (ate as show or commercial)
4. once this is done you could scan forward from each pre-commercial show or pre-show commercial block to find
the joining point (low noise, black frame, etc.)

For added speed I suppose a thread could be setup to use the to seek in the file to each of the
5 sec offsets and read the 1/2 second while the main thread could be using the mpeg library for the analysis.

I don't know what functions the library has, perhaps it has seek operations already, but with variable length
frames due to compression...after seeking scanning the mpg to find the beginning of GOPs would be necessary.
erik
Offline

Posting Freak

Posts: 1,138
Threads: 123
Joined: Apr 2005
#2
2008-04-09, 07:22 PM
The approach to selective seek for commercials based on certain hints is possible but will require a large effort from my side. To decode a random frame one must at least decode 15 frames before, just to be sure to catch the I frames.
Another problem with seeking is that the PTS of many recordings is not reliable where counting frames from the start proves to be reliable.
Currently the high speed donation version can scan HD on a "normal" CPU at at least 4 times realtime per core. This will allow you to keep up with Comskip on one core when recording from 4 tuners.
P4 3GHz 1GB, 250GB, nVidia dualTV, GBPVR 1.3.11, XP
Support Comskip, visit the forum and donate at http://www.comskip.org/
Questor
Offline

Junior Member

Posts: 28
Threads: 8
Joined: Mar 2008
#3
2008-04-09, 10:49 PM
Aha... so
Quote:counting frames from the start proves to be reliable.
would imply that another possibility (not speed in this case) might be...since you count accurately from the beginning all frames and presumably time...

Would it be possible to write code to correct any discovered GOP timecode errors?

Since this would be editing existing data-in-place with identically sized data (the format is binary, and allways the same size) it could patch an existing stream.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Will ParaLED work with USB to Parallel Adapter? LewE 12 7,701 2010-06-30, 09:30 PM
Last Post: LewE
  Transcode w/ Comskip? pduncan67 1 2,116 2009-11-25, 03:59 AM
Last Post: johnsonx42
  Comskip & Digital? nightwalker 8 3,453 2009-08-29, 06:34 PM
Last Post: nightwalker
  comskip wont run anymore HELP :) DoPeFiSh 1 1,930 2009-07-21, 07:34 PM
Last Post: DoPeFiSh
  Newbie needs help with renaming external plugins and making some plugins to work Chris79 2 2,339 2009-06-14, 05:36 AM
Last Post: Chris79
  Comskip build 0.80.011 Released erik 13 6,093 2009-03-01, 11:36 AM
Last Post: erik
  comskip problem j210277 11 6,132 2009-01-28, 05:25 AM
Last Post: stustunz
  Does the ThemeManager plug-in still work with PVRX2? mmatheny 8 2,844 2008-12-17, 08:22 AM
Last Post: McBainUK
  Weather Plugin - Some cities wont work gueganj 4 2,576 2008-12-06, 06:31 PM
Last Post: morser
  Comskip: Interpreting the aspects file zehd 0 1,554 2008-11-29, 07:41 AM
Last Post: zehd

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode