Logo not correctly detected?

To discuss the tuning of comskip and for posting your ini files
jksmurf
Posts: 28
Joined: Thu Sep 29, 2005 5:56 pm

Logo not correctly detected?

Post by jksmurf »

Hi Erik,

I have some problems with comskip reognizing a logo for a show. Any help would be appreciated. Details as requested in this file:

http://home.netvigator.com/~jksmurf/MiscStuff/ER.zip

k.
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

The jpg does not show anything, just black.
Could you let me download a short mpeg sequence?

The logo.txt shows only half of the logo. Is the logo very close to the edge of the screen?

W.r.t. the commercial detection.
The results would improve if you set
cut_on_ar_change=1
jksmurf
Posts: 28
Joined: Thu Sep 29, 2005 5:56 pm

Post by jksmurf »

Thanks Erik, I'll try that setting. Sure, what sort of size is a short segment for you? Should it straddle the ads or just the logo?

Oops http://home.netvigator.com/~jksmurf/Mis ... nTrace.jpg should work for the logo... ?

k.
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

Now it works.

I need at least 3 minutes of show with the right logo
jksmurf
Posts: 28
Joined: Thu Sep 29, 2005 5:56 pm

Post by jksmurf »

OK Erik here it is, Advert_logo_Show :-)

http://www.maxmurfitt.com/Kristian/Misc ... o_Show.mpg

I also made one which is Show_Logo_Advert i.e.
http://www.maxmurfitt.com/Kristian/Misc ... Advert.mpg (not uploaded yet)
but each one is a 140MB upload so takes a while at 56kbps (just kidding, I have ADSL 6MB/512kb, but still takes awhile) , and I thought I'd only upload if really needed?

btw if anyone is looking for REALLY simple very basic freeware (not updated recently but works fine) to cut a segment for Erik, MPEG2Cut at http://darkav.de.vu is a very basic MPEG cutter fit for that purpose. I couldn't justify demultiplexing the MPEG stream to two Video and Audio Streams just to see the frame numbers in Cuttermaran.

k.

k.
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

I downloaded the mpeg file and logo recorgnition was perfect.
The log file inside er.zip shows that Comskip initially learned the same logo as the logo learned in the example .mpg, but then it learned a second logo because the first logo was asumed not to be the right one.
The second logo was much smaller and only contained the bottom half of the circular logo.
Could you delete the .logo.txt file and rerun comskip in debug mode to see why/when comskip starts to search for the new logo?

Maybe its because there are two different logo's used?
jksmurf
Posts: 28
Joined: Thu Sep 29, 2005 5:56 pm

Post by jksmurf »

erik wrote:I downloaded the mpeg file and logo recognition was perfect.
Hmm. I think I remember that was the case for the first ad break, which might be the one I sent you. Then they started getting wierd, as you can see from the comskip .txt file produced. If you need it I could tray and cut out another 3 min segment elsewhere in the show?
erik wrote:The log file inside er.zip shows that Comskip initially learned the same logo as the logo learned in the example .mpg, but then it learned a second logo because the first logo was asumed not to be the right one.
That's odd. Maybe there are some things in the ads themselves which confuse it?
erik wrote:The second logo was much smaller and only contained the bottom half of the circular logo.
Hmm..?? I checked each of the three ad breaks (not start and end of show though) and the logos seemed quite uniform?? See
http://www.maxmurfitt.com/Kristian/Misc/ERAdbreaks.zip
erik wrote:Could you delete the .logo.txt file and rerun comskip in debug mode to see why/when comskip starts to search for the new logo? Maybe its because there are two different logo's used?
Sure. http://www.maxmurfitt.com/Kristian/Misc/ER_2.zip. I did the run with "cut_on_ar_change=1" as recommended above. No change :cry:

How do I go about seeing "why/when comskip starts to search for the new logo"

k.
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

Initially comskip recognized a logo in a trailer. Then that logo did not come back so comskip tried to learn a new logo. Because the logo was on the edge of the aspect ratio the newly learned logo was too small to be reliable. That is causing the problems.
You can set
logo_threshold=0.50
to enable less perfect logo's.
But I changed comskip to enable logo finding outside current aspect ratio area.
Could you download build 59 and try?
jksmurf
Posts: 28
Joined: Thu Sep 29, 2005 5:56 pm

Post by jksmurf »

Could you download build 59 and try?
Yeeha :-)

OK, I tried 79_59 twice:
1. Once with the default ini and
2. Once with logo_threshold=0.50 AND cut_on_ar_change=1

While I haven't viewed the end result, the 2nd one seems to have worked a treat, based on the comparison of my manual estimate of the cut points (see below). The first attempt 79_59 with default ini was even worse than the 79_58 version, it was really odd, it missed entire ads. The second results look to be spectacular, so thanks a lot for your help on that.

I ran out of time this am before work, so I am not sure WHICH of the two settings was "the clincher", but if you need more feedback, I can try 79_59 with one of the settings you advised me to change, then the other one, to try to isolate it?

I am not sure what's happening at the start and end (I suspect just a "previously on ER" type of cut, but the 3 sets of ads (that take the most time) seem to have passed with flying colours. I attach the .txt files of both runs above if it heps at all.

FILE PROCESSING COMPLETE 94265 FRAMES AT 2500
------------------- MY Rough ESTIMATES (previously sent)
1 1145 vs. 1 -
3416 4242 - 4241
21057 27065 vs. 20934 27060
42380 48503 vs. 42256 48396
63538 68905 vs. 63446 68871
85564 92431 vs. 85696 -
94264 94265 vs. - 94265

http://home.netvigator.com/~jksmurf/Mis ... _79_59.zip
http://home.netvigator.com/~jksmurf/Mis ... _79_59.zip

Cheers and Thanks!

k.
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

Looking at the logo file the change in build 59 seems to work fine.

The fact that you need both logo_threshold=0.50 AND cut_on_ar_change=1 is OK.
Seems to make sense looking at the .csv file.
jksmurf
Posts: 28
Joined: Thu Sep 29, 2005 5:56 pm

Post by jksmurf »

Cheers Erik,
erik wrote:The fact that you need both logo_threshold=0.50 AND cut_on_ar_change=1 is OK.
Well, actually I don't know that for sure, it just worked with both enabled. The Qstn was really "do you want me to find out if I need both" by running it twice more, so other folks have fewer things to tune in future...?

k.
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

What I ment was that looking at the .vsc you DO need both.

So don't bother trying which one is needed. Both are needed for robust results.
jksmurf
Posts: 28
Joined: Thu Sep 29, 2005 5:56 pm

Post by jksmurf »

Cool and Groovy!

Cheers

k.
jksmurf
Posts: 28
Joined: Thu Sep 29, 2005 5:56 pm

Post by jksmurf »

Hi Erik,

I reinstalled WinXP and GBPVR the other day, so thought I'd have a go at the most up-to-date (super-fast Build 91) comskip.

I also thought I'd try the default ini see if there were any changes recently which allowed the above detection WITHOUT these two:

logo_threshold=0.50 AND cut_on_ar_change=1

It seems from my sample of 1 show only, that these are still needed. As a matter of interest only, presumably there has been no intended change?

Cheers

k.
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

There is no reason why you should NOT have these two changes.
The logo threshold could be needed because of a very faint station logo and I always use the cut on ar change myself, like many other people.
Post Reply