[mythtv-users] Commercials aren't actually removed

David Fishburn fishburn at ianywhere.com
Mon Jun 18 01:42:44 UTC 2007


 

> -----Original Message-----
> From: mythtv-users-bounces at mythtv.org 
> [mailto:mythtv-users-bounces at mythtv.org] On Behalf Of David Fishburn
> Sent: Tuesday, June 12, 2007 12:47 PM
> To: 'Discussion about mythtv'
> Subject: tv: Commercials aren't actually removed
> 
> 
> Myth 0.20
> Ubuntu Edgy
> Kernel 0.18.1
> 
> I am using the removecommercial script:
> http://www.mythtv.org/wiki/index.php/Script_-_RemoveCommercials
> 
> But the commercials are never removed.
> 
> Here is the file before running it:
> 2332606464 2007-05-22 16:00 1045_20070522150000.mpg
> 
> After running it, it is nearly the same size:
> 2228514820 2007-06-12 00:08 1045_20070522150000.mpg
> 
> Checking the skip list:
> mythtv at myth:/media/mythtv$ mythcommflag --getskiplist -f 
> 1045_20070522150000.mpg
>     2007-06-12 07:12:21.360 Using runtime prefix = /usr
>     2007-06-12 07:12:21.388 New DB connection, total: 1
>     2007-06-12 07:12:21.400 New DB connection, total: 2
>     Commercial Skip List:
> 0-850,16999-24432,35853-42238,54104-59742,70529-76165,105505-107713
> 
> 
> Looking at the backend log everything completed successfully.
> 
> The removecommercial script did the following steps:
> mythcommflag -f /media/mythtv//1045_20070522150000.mpg
> mythtranscode --mpeg2 --honorcutlist --showprogress -i 
> /media/mythtv//1045_20070522150000.mpg -o 
> /media/mythtv//1045_20070522150000.mpg.tmp
> mythcommflag -f /media/mythtv//1045_20070522150000.mpg --rebuild
> 
> 
> So things look right based on my usage screen:
> ***
> mythtv at myth:/media/mythtv$ mythtranscode --help               
>          
> Usage: mythtranscode <--chanid <channelid>>
>         <--starttime <starttime>> <--profile <profile>>
>         [options]
> 
>         --mpeg2          or -m: Perform MPEG2 to MPEG2 transcode.
>         --ostream <type> or -e: Output stream type.  Options: dvd, ps.
>         --chanid         or -c: Takes a channel id. REQUIRED
>         --starttime      or -s: Takes a starttime for the
>                                 recording. REQUIRED
>         --infile         or -i: Input file (Alternative to -c and -s)
>         --outfile        or -o: Output file
>         --profile        or -p: Takes a profile number or 'autodetect'
>                                 recording profile. REQUIRED
>         --honorcutlist   or -l: Specifies whether to use the cutlist.
>         --allkeys        or -k: Specifies that the output file
>                                 should be made entirely of keyframes.
>         --fifodir        or -f: Directory to write fifos to
>                                 If --fifodir is specified, 
> 'audout' and 'vidout'
>                                 will be created in the 
> specified directory
>         --fifosync            : Enforce fifo sync
>         --buildindex     or -b: Build a new keyframe index
>                                 (use only if audio and video 
> fifos are read
> independantly)
>         --showprogress        : Display status info to the stdout
>         --verbose level  or -v: Use '-v help' for level info
>         --help           or -h: Prints this help statement.
> ***
> 
> 
> Now here is the interesting thing (at least to me).
> If I edit the video (in the frontend), and set the cut points.
> Then from the frontend, run a transcode (autodetect which is 
> set to lossless and honour cut list), the command executed is:
> 
> /usr/bin/mythtranscode -j 2274 -V 3 -p autodetect -l
> 
> 
> This does correctly and significantly change the filesize.
> It also (correctly) zeros out the Commercial Skip List.
> 
> 
> The -j and -V switches are not listed in the --help above.

So I have determined the -j is the jobid listed in the jobqueue.
I can only assume the -V is some level of verbosity.

> What do these additional switches do?
> Any idea why the documented approach to this does not work?
> Mythcommflag --gencutlist -Copy the commercial skip list to 
> the cutlist mythtranscode --mpeg2 --honorcutlist


Any takers on this?
Do you need more output to lead me into the right direction to figure out
why the commercials are never removed?

Thanks,
Dave



More information about the mythtv-users mailing list