[mythtv-users] How to transcode+cut commercials 100% lossless

Tom Dexter digitalaudiorock at gmail.com
Fri Aug 8 14:54:19 UTC 2008


On Fri, Aug 8, 2008 at 9:39 AM, Boleslaw Ciesielski
<bolek-mythtv at curl.com> wrote:
> Bobby Gill wrote:
>> I'm wondering how I can basically take a recording, say a 60 min show,
>> and have it automatically transcode so that it ONLY cuts the commercials
>> and the result is *exactly* the same quality, basically a copy but
>> without commercials? (HD space not a concern so I want to retain the
>> full quality).
>
> mythtranscode --mpeg2
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>

While that will create a lossless mpeg file, he's looking to cut
commercials.  Unless I've missed something, I don't think there's any
way to do that automatically.  That is, you can use --honorcutlist,
when specifying the channel id and start time, but that won't use the
skip list.  Feel free to correct me if there's an automated way to do
this that I missed.

I've read stuff about doing the following:

mythcommflag --getskiplist -f /path/to/your/video/1071_20080718160000.mpg \
| tail -n 1 | awk '{print $4}' | sed 's/,/ /g'

...which outputs something like this:

32033-40438 85371-95205 118334-128571 149422-155734 167522-188588

...and then you can use the following with the above skip list:

mythtranscode -i /path/to/your/video/1071_20080718160000.mpg --mpeg2 \
--honorcutlist "32033-40438 85371-95205 118334-128571 149422-155734
167522-188588" -o your_output_file.mpg

The fact that mythtranscode requires this cutlist argument when run
against the file path (rather than the channel id and start time)
doesn't seem to be documented much of anywhere I've seen unless I
missed it.

In any case, the above does work.

Tom


More information about the mythtv-users mailing list