<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Calibri">This may seem unusual, but I want to keep
commercials and throw away programs, rather than the other way around!
I've tried to do this 2 ways without success.<br>
<br>
Method 1: I take the commercial marks from mythcommflag:<br>
mythcommflag --getskiplist --file 1003_20080621210000.mpg<br>
Commercial Skip List:
8335-12241,19811-23440,33609-35889,46537-50609,63787-66492<br>
<br>
And I pass them to mythtranscode --inversecut:<br>
<br>
mythtranscode --infile 1003_20080621210000.mpg --showprogress -p
autodetect --inversecut
8335-12241,19811-23440,33609-35889,46537-50609,63787-66492<br>
<br>
Unfortunately mythtranscode works a bit and then dies with error #-84:<br>
<br>
Cutting from: 0 to the end<br>
2008-06-22 17:11:18.291 Using runtime prefix = /usr, libdir = /usr/lib<br>
2008-06-22 17:11:18.292 Empty LocalHostName.<br>
2008-06-22 17:11:18.300 New DB connection, total: 1<br>
2008-06-22 17:11:18.305 Closing DB connection named 'DBManager0'<br>
2008-06-22 17:11:18.305 Enabled verbose msgs: important<br>
2008-06-22 17:11:18.307 New DB connection, total: 2<br>
2008-06-22 17:11:18.310 New DB connection, total: 3<br>
2008-06-22 17:11:18.327 Using protocol version 40<br>
2008-06-22 17:11:18.584 Transcode: Looking for autodetect profile:
Autodetect from 480i<br>
2008-06-22 17:11:18.594 Transcode: Using autodetect profile: MPEG2<br>
2008-06-22 17:11:18.595 Switching to MPEG-2 transcoder.<br>
2008-06-22 17:11:23.655 16.6% complete<br>
2008-06-22 17:11:28.656 27.6% complete<br>
2008-06-22 17:11:33.658 38.7% complete<br>
2008-06-22 17:11:38.660 49.4% complete<br>
2008-06-22 17:11:43.661 60.1% complete<br>
2008-06-22 17:11:48.662 71.1% complete<br>
2008-06-22 17:11:53.664 81.8% complete<br>
2008-06-22 17:11:58.667 92.5% complete<br>
Mux rate: 6.49 Mbit/s<br>
2008-06-22 17:12:02.015 Couldn't open input file, error #-84<br>
<br>
I've tried this a number of different ways, and no matter what I do, I
always receive </font><font face="Calibri">error #-84 when using the </font><font
 face="Calibri">--inversecut option. Has anyone else tried this?<br>
<br>
Method #2: I've tried to invert a file's commercial markings and
transcode:<br>
<br>
mythcommflag --getskiplist --file 1003_20080621220000.mpg<br>
Commercial Skip List:
10949-15451,24927-29427,39218-43720,53231-57733,72002-76504,88107-93508<br>
<br>
# set the cut list to the inverse of the skip list<br>
mythcommflag --setcutlist
1-10949,15451-24927,29427-39218,43720-53231,57733-72002,76504-88107
--file 1003_20080621220000.mpg<br>
# prove to myself the cutlist is really set<br>
mythcommflag --getcutlist --file 1003_20080621220000.mpg<br>
Cutlist:
1-10949,15451-24927,29427-39218,43720-53231,57733-72002,76504-88107<br>
<br>
# transcoding should remove the program and leave the commercials,
right?<br>
mythtranscode --honorcutlist --infile 1003_20080621220000.mpg
--showprogress -p autodetect<br>
<br>
Unfortunately </font><font face="Calibri">mythtranscode </font><font
 face="Calibri">does not replace the original file, but creates a </font><font
 face="Calibri">1003_20080621220000.mpg.tmp that is only slightly
smaller than the original:<br>
<br>
-rw-r--r-- 1 mythtv mythtv 2333595648 2008-06-21 23:00
1003_20080621220000.mpg<br>
-rw-r--r-- 1 gstead mythtv 2229884932 2008-06-22 22:03
1003_20080621220000.mpg.tmp<br>
<br>
</font><font face="Calibri">Is this a lost cause, or do am I not using
the command line correctly?<br>
<br>
Any insight would be appreciated.<br>
<br>
best regards,<br>
-Graham<br>
</font>
</body>
</html>