[mythtv-users] Displayed recording duration not updated after applying cutlist
John Pilkington
J.Pilk at tesco.net
Tue Sep 4 09:27:05 UTC 2012
On 04/09/12 09:42, John Veness wrote:
> On 04/09/2012 00:30, Richard wrote:
>> I ended up writing a script
>> that would trim the start and end according to the cutlist, update the
>> start and end times of the recording accordingly and also filter out any
>> data stream from the recording, leaving all audio, video and subtitle
>> stream untouched (as I understand it, this should directly using
>> 'Recording profiles' but that never seemed to have any effect).
>> Depending on the channel and the amount of data streamed, the final file
>> is sometimes almost half the original size!
>>
>> Richard.
>
> Hi,
>
> I'm very interested in your script. I recording UK DVB-T and manually
> create a cutlist to cut out ads and trim the start and end. I would like
> to do a lossless transcode on this but this removes the DVB subtitles
> stream, which I sometimes use. Your script sounds like it will do the
> trick for me, will it?
>
> Cheers,
>
> John
>
I have two on the wiki. Neither is fully integrated for use as a user
job. I use them from a console and I perhaps have more time for doing
this than most people would want to spare. I posted them mainly to set
out the steps involved, and they may need updating for 0.24+
The older script, for dvb-t, uses Project-X and discards all but one
video and one audio stream. The other just makes keyframe-linked cuts
and passes everything. It works with dvb-t2 as well and could be ok
more generally.
Project-X cleans up some errors in the recording and doesn't have to
discard subtitles; I think mythburn.py in MythArchive would yield an
example, but everything would need remuxing and I've never bothered.
http://www.mythtv.org/wiki/Mythcutprojectx
http://www.mythtv.org/wiki/Mythpycutter
John P
More information about the mythtv-users
mailing list