madwoota
20th March 2015, 09:12
I have a few hundred video files (.TS) that I have recorded (Free-To-Air) that I would like to batch trim down to save some space. Similar to the concept of ComSkip for identifying commercial breaks for removal.
Ideally, I'd like to use a sample image as a source, then identify either the timestamp or frame number of the video file when that frame first appears in the video. This might be a high % based match given the variations in video codecs vs image formats. The actual source image would just be a grab from the opening title sequence of the show.
Once the start & end frame numbers are found, I can easily batch trim the files to the content between the markers.
I'm really just looking for some suggestions on methods, tools, applications, plugins, scripts or libraries I could utilise to do this as I'm stumped.
ComSkip couldn't match either the start or end of this particular show as there is no scene break or black sequence to segment it. It also incorrectly tags the start of the credits as the start of a commercial break.
OpenCV (via OpenFrameworks) seemed promising, but I'll need to teach myself C++ first and it doesnt handle .TS (although thats solvable with a quick transcode).
Ideally, I'd like to use a sample image as a source, then identify either the timestamp or frame number of the video file when that frame first appears in the video. This might be a high % based match given the variations in video codecs vs image formats. The actual source image would just be a grab from the opening title sequence of the show.
Once the start & end frame numbers are found, I can easily batch trim the files to the content between the markers.
I'm really just looking for some suggestions on methods, tools, applications, plugins, scripts or libraries I could utilise to do this as I'm stumped.
ComSkip couldn't match either the start or end of this particular show as there is no scene break or black sequence to segment it. It also incorrectly tags the start of the credits as the start of a commercial break.
OpenCV (via OpenFrameworks) seemed promising, but I'll need to teach myself C++ first and it doesnt handle .TS (although thats solvable with a quick transcode).