Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

Removecommercials script and commercial flagging problem

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


bobbygill at rogers

Aug 11, 2008, 11:42 AM

Post #1 of 9 (1816 views)
Permalink
Removecommercials script and commercial flagging problem

I have this script running:
http://www.mythtv.org/wiki/index.php/Talk:Script_-_RemoveCommercials#enhanced_script_uses_channelID_and_starttime_throughout

with this user job:

removecommercials "%DIR%" "%FILE%" "%CHANID%" "%STARTTIME%"

and it works fine, but I'm having a problem where the recording, let's say a
30 minute episode, gets stripped down to ~21 minutes with commercials cut
(as is the goal, fine so far), but what happens is there's still commercials
flagged apparently and the episode will skip in a few places where it has
flagged commercials, but of course there are none. Like the first commercial
break might be at 9 minutes into the show, but it's cut so it goes black for
a second and returns to the second act, and it will skip a few minutes
there, where it has flagged a commercial. I can't figure this out.

Bob


i.adore.my.64 at gmail

Aug 11, 2008, 11:47 AM

Post #2 of 9 (1701 views)
Permalink
Re: Removecommercials script and commercial flagging problem [In reply to]

2008/8/11 Bobby Gill <bobbygill [at] rogers>:
> I have this script running:
> http://www.mythtv.org/wiki/index.php/Talk:Script_-_RemoveCommercials#enhanced_script_uses_channelID_and_starttime_throughout
>
> with this user job:
>
> removecommercials "%DIR%" "%FILE%" "%CHANID%" "%STARTTIME%"
>
> and it works fine, but I'm having a problem where the recording, let's say a
> 30 minute episode, gets stripped down to ~21 minutes with commercials cut
> (as is the goal, fine so far), but what happens is there's still commercials
> flagged apparently and the episode will skip in a few places where it has
> flagged commercials, but of course there are none. Like the first commercial
> break might be at 9 minutes into the show, but it's cut so it goes black for
> a second and returns to the second act, and it will skip a few minutes
> there, where it has flagged a commercial. I can't figure this out.
>

I'm struggling a little with your description - but if your complaint
is that the commercial flagging does not do a perfect job - then
that's something I think we all have to live with.

I flag all my recorded shows, but when I'm watching one of my Law and
Order episodes (which contains frequent fades out and in) I turn the
flagging off due to the number of errors it commits.

Cheers.

--
"My country is the world, and my religion is to do good."
-- Thomas Paine
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


bobbygill at rogers

Aug 11, 2008, 11:51 AM

Post #3 of 9 (1689 views)
Permalink
Re: Removecommercials script and commercial flagging problem [In reply to]

Okay, my apologies, I'll try to be more clear (it's a strange issue itself
lol).

So basically, I run this job of Remove Commercials, but when I watch the
episode (which is now ~21 mins from 30, and has no commercials, just the
show), it still skips, as it apparently has commercials flagged even though
commercials have been removed. ie., if I hit E and then Z it loads the
cutlist with a couple cuts, but why? There should be none? All commercials
have been cut out. So it appears it is running a commercial flagging AFTER
the remove commercials job has been done? I'm just puzzled.

Bob

On Mon, Aug 11, 2008 at 2:47 PM, C.T. Paterson <i.adore.my.64 [at] gmail>wrote:

> 2008/8/11 Bobby Gill <bobbygill [at] rogers>:
> > I have this script running:
> >
> http://www.mythtv.org/wiki/index.php/Talk:Script_-_RemoveCommercials#enhanced_script_uses_channelID_and_starttime_throughout
> >
> > with this user job:
> >
> > removecommercials "%DIR%" "%FILE%" "%CHANID%" "%STARTTIME%"
> >
> > and it works fine, but I'm having a problem where the recording, let's
> say a
> > 30 minute episode, gets stripped down to ~21 minutes with commercials cut
> > (as is the goal, fine so far), but what happens is there's still
> commercials
> > flagged apparently and the episode will skip in a few places where it has
> > flagged commercials, but of course there are none. Like the first
> commercial
> > break might be at 9 minutes into the show, but it's cut so it goes black
> for
> > a second and returns to the second act, and it will skip a few minutes
> > there, where it has flagged a commercial. I can't figure this out.
> >
>
> I'm struggling a little with your description - but if your complaint
> is that the commercial flagging does not do a perfect job - then
> that's something I think we all have to live with.
>
> I flag all my recorded shows, but when I'm watching one of my Law and
> Order episodes (which contains frequent fades out and in) I turn the
> flagging off due to the number of errors it commits.
>
> Cheers.
>
> --
> "My country is the world, and my religion is to do good."
> -- Thomas Paine
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>


myth at dermanouelian

Aug 11, 2008, 11:58 AM

Post #4 of 9 (1687 views)
Permalink
Re: Removecommercials script and commercial flagging problem [In reply to]

On Aug 11, 2008, at 11:51 AM, Bobby Gill wrote:

> Okay, my apologies, I'll try to be more clear (it's a strange issue
> itself lol).
>
> So basically, I run this job of Remove Commercials, but when I watch
> the episode (which is now ~21 mins from 30, and has no commercials,
> just the show), it still skips, as it apparently has commercials
> flagged even though commercials have been removed. ie., if I hit E
> and then Z it loads the cutlist with a couple cuts, but why? There
> should be none? All commercials have been cut out. So it appears it
> is running a commercial flagging AFTER the remove commercials job
> has been done? I'm just puzzled.
>
> Bob

Your script also needs to clear the commercial flags when it's done.
I think the flag is --clearcutlist

_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


drescherjm at gmail

Aug 11, 2008, 12:04 PM

Post #5 of 9 (1702 views)
Permalink
Re: Removecommercials script and commercial flagging problem [In reply to]

On Mon, Aug 11, 2008 at 2:51 PM, Bobby Gill <bobbygill [at] rogers> wrote:
> Okay, my apologies, I'll try to be more clear (it's a strange issue itself
> lol).
>
> So basically, I run this job of Remove Commercials, but when I watch the
> episode (which is now ~21 mins from 30, and has no commercials, just the
> show), it still skips, as it apparently has commercials flagged even though
> commercials have been removed. ie., if I hit E and then Z it loads the
> cutlist with a couple cuts, but why? There should be none? All commercials
> have been cut out. So it appears it is running a commercial flagging AFTER
> the remove commercials job has been done? I'm just puzzled.
>

I believe what you need to do is clear the skip list.

John
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


bobbygill at rogers

Aug 11, 2008, 12:09 PM

Post #6 of 9 (1690 views)
Permalink
Re: Removecommercials script and commercial flagging problem [In reply to]

Okay, in the script I just did a search for clearcutlist and it's in there.

mythcommflag -c ${CHANID} -s ${STARTTIME} --quiet --clearcutlist


How do I clear the skip list?

bob


On Mon, Aug 11, 2008 at 3:04 PM, John Drescher <drescherjm [at] gmail> wrote:

> On Mon, Aug 11, 2008 at 2:51 PM, Bobby Gill <bobbygill [at] rogers> wrote:
> > Okay, my apologies, I'll try to be more clear (it's a strange issue
> itself
> > lol).
> >
> > So basically, I run this job of Remove Commercials, but when I watch the
> > episode (which is now ~21 mins from 30, and has no commercials, just the
> > show), it still skips, as it apparently has commercials flagged even
> though
> > commercials have been removed. ie., if I hit E and then Z it loads the
> > cutlist with a couple cuts, but why? There should be none? All
> commercials
> > have been cut out. So it appears it is running a commercial flagging
> AFTER
> > the remove commercials job has been done? I'm just puzzled.
> >
>
> I believe what you need to do is clear the skip list.
>
> John
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>


mythtv at corwyn

Aug 11, 2008, 1:56 PM

Post #7 of 9 (1683 views)
Permalink
Re: Removecommercials script and commercial flagging problem [In reply to]

I think this exact problem is described in the wiki page.
http://www.mythtv.org/wiki/index.php/Script_-_RemoveCommercials


If you use this script and have commercial auto-skip set then during
playback you will notice that MythTV skips over parts of your
program. This is because the information about where commercials are
located is still available. Adding this query after the UPDATE and
before the EOF will remove the commercial points and allow things to
run smoothly.

DELETE FROM
`recordedmarkup`
WHERE
CONCAT( chanid, starttime ) IN (
SELECT
CONCAT( chanid, starttime )
FROM
recorded
WHERE
basename = '$FILENAME'
);



At 02:42 PM 8/11/2008, Bobby Gill wrote:
>I have this script running:
><http://www.mythtv.org/wiki/index.php/Talk:Script_-_RemoveCommercials#enhanced_script_uses_channelID_and_starttime_throughout>http://www.mythtv.org/wiki/index.php/Talk:Script_-_RemoveCommercials#enhanced_script_uses_channelID_and_starttime_throughout
>
>with this user job:
>
>removecommercials "%DIR%" "%FILE%" "%CHANID%" "%STARTTIME%"
>
>and it works fine, but I'm having a problem where the recording,
>let's say a 30 minute episode, gets stripped down to ~21 minutes
>with commercials cut (as is the goal, fine so far), but what happens
>is there's still commercials flagged apparently and the episode will
>skip in a few places where it has flagged commercials, but of course
>there are none. Like the first commercial break might be at 9
>minutes into the show, but it's cut so it goes black for a second
>and returns to the second act, and it will skip a few minutes there,
>where it has flagged a commercial. I can't figure this out.
>
>Bob
>_______________________________________________
>mythtv-users mailing list
>mythtv-users [at] mythtv
>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users



_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


myth at dermanouelian

Aug 11, 2008, 2:19 PM

Post #8 of 9 (1684 views)
Permalink
Re: Removecommercials script and commercial flagging problem [In reply to]

On Aug 11, 2008, at 1:56 PM, mythtv [at] corwyn wrote:

>
> I think this exact problem is described in the wiki page.
> http://www.mythtv.org/wiki/index.php/Script_-_RemoveCommercials
>
>
> If you use this script and have commercial auto-skip set then during
> playback you will notice that MythTV skips over parts of your
> program. This is because the information about where commercials are
> located is still available. Adding this query after the UPDATE and
> before the EOF will remove the commercial points and allow things to
> run smoothly.
>
> DELETE FROM
> `recordedmarkup`
> WHERE
> CONCAT( chanid, starttime ) IN (
> SELECT
> CONCAT( chanid, starttime )
> FROM
> recorded
> WHERE
> basename = '$FILENAME'
> );

How annoying. It would be nice if someone to added a mythcommflag --
clearskiplist option.
Can this please start a new thread about how open source software has
poor usability? The other one got boring all of a sudden. ;)

_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


nick.rout at gmail

Aug 11, 2008, 8:21 PM

Post #9 of 9 (1660 views)
Permalink
Re: Removecommercials script and commercial flagging problem [In reply to]

On Tue, Aug 12, 2008 at 9:19 AM, Brad DerManouelian
<myth [at] dermanouelian> wrote:
>
> How annoying. It would be nice if someone to added a mythcommflag --
> clearskiplist option.
> Can this please start a new thread about how open source software has
> poor usability? The other one got boring all of a sudden. ;)
>

Thats because it started getting on to MS Office. :)
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.