I've heard that a number of people may be experiencing commercial skips happening in the wrong place in XBMC where it works correctly in mythfrontend.
If this has happened for you are you able to post:
1) A link to a full debug log opening the recording that has the incorrect skip behaviour (please just that file - full debug log files are long enough as it is).
2) A list of the time periods that the commercial break should have been (to the nearest 5 seconds should be fine)
3) What sort of tuner the recording was recorded using, e.g. DVB-T, Analog, Cable via USB Tuner.
4) Whether you know if there are any frame rate changes in the playback, e.g. I've heard that some stations play commercial breaks at a different frame rate to the broadcast content. If this happens, unfortunately, there is unlikely to be a workaround.
If it's possible to improve the behaviour I will. However, mythbackend stores frame markers for the commercial break locations and XBMC needs time markers to perform seeking so there is a little bit of heuristic black magic to get the right frame rate to use to convert from the frame markers to timestamps.
For interest sake as well, consider having a look at the advanced EDL settings in XBMC to help remove false positive commercial breaks. http://wiki.xbmc.org/index.php?title=Use...#.3Cedl.3E
And for those that are also interested I've already submitted a patch that appears to resolve the 10 second hang that is experienced when a commerical break is skipped.
dteirney
Team-XBMC Developer Posts: 820 Joined: Jul 2007 Reputation: 6 Location: New Zealand |
2012-05-08 14:42
Post: #1
Use MythTV for recording TV? Try the integrated MythTV support in XBMC Media Center. Now with commercial skip support built-in and integration with the Movie database! |
| find quote |
dteirney
Team-XBMC Developer Posts: 820 Joined: Jul 2007 Reputation: 6 Location: New Zealand |
2012-05-13 11:20
Post: #2
No takers so far so I'll relax the requirements somewhat. If you are having problems with commercials being skipped at the wrong time please post a debug log showing playback of the recording that is problematic.
Use MythTV for recording TV? Try the integrated MythTV support in XBMC Media Center. Now with commercial skip support built-in and integration with the Movie database! |
| find quote |
tsp42
Senior Member Posts: 222 Joined: Aug 2011 Reputation: 11 Location: Denmark |
2012-05-13 13:30
Post: #3
If it is any help the mythtv MySQL table recordedmarkup contains the framerate of the recordings. It would be interesting if the people that experience problems could post the content of that table to see if mythtv stores when the framerate changes in the recordings.
|
| find quote |
dteirney
Team-XBMC Developer Posts: 820 Joined: Jul 2007 Reputation: 6 Location: New Zealand |
2012-05-14 10:28
Post: #4
(2012-05-13 13:30)tsp42 Wrote: If it is any help the mythtv MySQL table recordedmarkup contains the framerate of the recordings. It would be interesting if the people that experience problems could post the content of that table to see if mythtv stores when the framerate changes in the recordings. Do you mean this table? http://www.mythtv.org/wiki/Recordedmarkup_table That table stores the actual frame number for each type of mark that gets stored. The offset column (apparently) used to contain the associated timestamp but that was deprecated ages ago and was empty when I looked at using it several years ago. Use MythTV for recording TV? Try the integrated MythTV support in XBMC Media Center. Now with commercial skip support built-in and integration with the Movie database! |
| find quote |
tsp42
Senior Member Posts: 222 Joined: Aug 2011 Reputation: 11 Location: Denmark |
2012-05-14 11:24
Post: #5
(2012-05-14 10:28)dteirney Wrote:Yes at least in my version 0.24 it contains all kind of information about the recordings. The rows with type == 32 contains the framerate.(2012-05-13 13:30)tsp42 Wrote: If it is any help the mythtv MySQL table recordedmarkup contains the framerate of the recordings. It would be interesting if the people that experience problems could post the content of that table to see if mythtv stores when the framerate changes in the recordings. See https://github.com/MythTV/mythtv/blob/ma...ramtypes.h Here is the actual commit that added the frame rate to the markup table: https://github.com/MythTV/mythtv/commit/...65f8cec2e5
(This post was last modified: 2012-05-14 11:43 by tsp42.)
|
| find quote |
dteirney
Team-XBMC Developer Posts: 820 Joined: Jul 2007 Reputation: 6 Location: New Zealand |
2012-05-15 02:54
Post: #6
Interesting. Just out of interest how many 32 entries does it have for each recording?
The automated seeking in the XBMC player is time based. Without being able to calculate the correct time for the start and end positions of the commercial breaks before the playback starts everything gets messy. If someone knows some magic to calculate the actual playback time that corresponds to a frame marker using whatever information is currently in the database that might be an avenue to explore. Mythfrontend obviously manages (maybe) but I believe it's player uses the recordedseek table for some information. The current approach will never work properly for recordings that have a change in frame rate in them. Tracking frame rate changes in the player will not help because as soon as a manual skip is done you don't have any idea what was skipped over so the calculations could be all up in the air again. Use MythTV for recording TV? Try the integrated MythTV support in XBMC Media Center. Now with commercial skip support built-in and integration with the Movie database! |
| find quote |
tsp42
Senior Member Posts: 222 Joined: Aug 2011 Reputation: 11 Location: Denmark |
2012-05-15 22:38
Post: #7
It only has one entry per recording but the frame rate doesn't change during the recordings.
According to the commit previous linked every frame rate change should be included in the table. The following pseudo-code could be used to convert the frame marker to times in seconds: Code: //Parameters |
| find quote |
dteirney
Team-XBMC Developer Posts: 820 Joined: Jul 2007 Reputation: 6 Location: New Zealand |
2012-05-16 00:32
Post: #8
I'll recheck the mythbackend code that is used to calculate the frame rate in the first place. If it's doing the same as XBMC, which I think it was when I initially looked, then the frame rate would probably still need manipulation like it is using the current heuristics within XBMC.
The equivalent frame rate that was used by mythcommflag is what is needed, not what is reported in the video stream header information. Having said that if the database will indeed contain an entry each time the framerate changes that would help. The heuristics could just move into the calculation. Use MythTV for recording TV? Try the integrated MythTV support in XBMC Media Center. Now with commercial skip support built-in and integration with the Movie database! |
| find quote |
tsp42
Senior Member Posts: 222 Joined: Aug 2011 Reputation: 11 Location: Denmark |
2012-05-16 00:46
Post: #9
Looks like MythTV scans each transport stream packet for the frame rate while saving the recording:
https://github.com/MythTV/mythtv/blob/ma...corder.cpp |
| find quote |
varneyb
Junior Member Posts: 21 Joined: Nov 2011 Reputation: 0 |
2012-06-11 03:19
Post: #10
(2012-05-08 14:42)dteirney Wrote: 1) A link to a full debug log opening the recording that has the incorrect skip behaviour (please just that file - full debug log files are long enough as it is). 1) I'll have to work on getting you a log, but I know that I do get the following WARNING: WARNING: ReadComskip - Frame rate not in Comskip file. Using detected frames per second: 29.970 2) I have found that if I use a skip list generated by comskip.exe instead of mythcommflag, it works. For E02 of Unforgettable: Here is the mythcommflag skip list: FILE PROCESSING COMPLETE ------------------------ 31137 36371 47736 53922 68679 72980 88667 92785 And here is the comskip skip list: FILE PROCESSING COMPLETE 107718 FRAMES AT 2997 ------------------- 1 206 10030 15825 36923 42438 56113 62638 80338 84924 98699 107718 3) Over the air (ATSC) tuner (HDHOMERUN) 4) I don't know, but I know that if I use the comskip list, I get the skips in the right place. However, there is a substantial delay (15-20 seconds) when it skips during which XBMC is completely unresponsive. This has happened with EDEN both on XBMCBUNTU and Windows Vista (I did not have this problem with Dharma on Vista).
(This post was last modified: 2012-06-11 03:19 by varneyb.)
|
| find quote |

Search
Help