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.
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.