feature suggestion: Now and Next detection
Posted: Wed Oct 26, 2011 1:43 pm
Hi erik,
I have an idea for using the Now and Next information included in a transport stream to punish blocks before and after the show.
To cater for tv networks that don't run on time i record an extra 10 minutes at the start and an extra 20 minutes at the end of a show. When running these files through comskip I get some non-commercial blocks before and after the show that I was recording. I've looked at the delete_show_before_first_commercial and delete_show_after_last_commercial options, but given the tv network's bad timing I can't use these reliably. This is where the Now and Next information would come in handy.
I've looked at the EIT (table_id 0x4E) packets in the TS and the information does update almost exactly at the start of each show. The way this could be used is by first detecting the details (maybe the table's version_number?) near the middle of the file, and then during processing punishing any blocks that have different details.
It would also be good if the distance into the file to search for the show's details is configurable. Depending on how much pre and post buffer you have in your recordings will depend on what percentage in you want to look. 40% would probably be a good default.
I am considering creating a simple app which quickly scans the file for the show start and end to create a ProjectX cut list so that comskip only has to deal with the show itself, but if you like this idea and want to include it in comskip soon then I won't bother.
Out of interest, what language is comskip written in? I'm happy to share with you any code I come up with. I'm currently tossing up between C++ and c#.
cheers,
Nate
I have an idea for using the Now and Next information included in a transport stream to punish blocks before and after the show.
To cater for tv networks that don't run on time i record an extra 10 minutes at the start and an extra 20 minutes at the end of a show. When running these files through comskip I get some non-commercial blocks before and after the show that I was recording. I've looked at the delete_show_before_first_commercial and delete_show_after_last_commercial options, but given the tv network's bad timing I can't use these reliably. This is where the Now and Next information would come in handy.
I've looked at the EIT (table_id 0x4E) packets in the TS and the information does update almost exactly at the start of each show. The way this could be used is by first detecting the details (maybe the table's version_number?) near the middle of the file, and then during processing punishing any blocks that have different details.
It would also be good if the distance into the file to search for the show's details is configurable. Depending on how much pre and post buffer you have in your recordings will depend on what percentage in you want to look. 40% would probably be a good default.
I am considering creating a simple app which quickly scans the file for the show start and end to create a ProjectX cut list so that comskip only has to deal with the show itself, but if you like this idea and want to include it in comskip soon then I won't bother.
Out of interest, what language is comskip written in? I'm happy to share with you any code I come up with. I'm currently tossing up between C++ and c#.
cheers,
Nate