Commflag inverse via command line

Post Reply
cclambie
Newcomer
Posts: 6
Joined: Mon Mar 28, 2016 1:35 am
Australia

Commflag inverse via command line

Post by cclambie » Mon Mar 28, 2016 2:00 am

Hi Myth users,

I want to do something crazy. I want to keep the ad's and remove the program from a recording (crazy I know right)
I was wondering if you could help me do this. It seems as simple as inverting the commflag markings and transcoding the files normally, but I cannot figure out how to do that.
I also see a potential issue with that being there is no "start" of the file maybe?

I would like to be able to do this using a command line script ideally.

Any suggestions?

JohnP the author of DVBCut suggested it is possible in the "Edit" menu, but I couldn't find this function as he suggested, and I want to do it via a CLI.

User avatar
bill6502
Developer
Posts: 822
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: Commflag inverse via command line

Post by bill6502 » Mon Mar 28, 2016 2:41 am

See mythutil --help e.g. then --getcuttlist to print it and --setcutlist
if you adjust it from a program. They keep you from directly accessing
the DB.

The edit menu is selected while watching a recording from the frontend
and pressing e. Note that there is an invert option available there. Popular
wisdom suggests using the editor to 'true up' the skiplist as detection isn't
always spot on.

cclambie
Newcomer
Posts: 6
Joined: Mon Mar 28, 2016 1:35 am
Australia

Re: Commflag inverse via command line

Post by cclambie » Wed Mar 30, 2016 3:15 am

Thanks bill6502 I have taken a look now.
I cannot seem to figure out the inverse thing :(

Maybe I need to learn how to use the edit function better, as I can see some great potential in that.

My issue is this, maybe you can help me with a suggestion.

I want to take recordings, and remove the "programs" and then upload the rest of the file to the web, for an outsourcer to download and edit to specific smaller parts. The issue is that I don't want to have all the large files being uploaded, when I only need the commercial breaks.

any suggestions on how to achieve this?

User avatar
bill6502
Developer
Posts: 822
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: Commflag inverse via command line

Post by bill6502 » Wed Mar 30, 2016 9:14 pm

Hi,

During a recording's playback, select e->m->Cut List Options->Reverse Cuts.

That's done after the skip list is loaded (z) and you've trued up the list using the editor.

cclambie
Newcomer
Posts: 6
Joined: Mon Mar 28, 2016 1:35 am
Australia

Re: Commflag inverse via command line

Post by cclambie » Thu Mar 31, 2016 7:10 pm

that is great bill6502, thanks :)

Not sure if this should be a new post, but can you do this edit of cutlist stuff via MythWeb?
( I started to figure that out today, and have got caught with some permissions error, which I will post about elsewhere, if it is possible)

User avatar
bill6502
Developer
Posts: 822
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: Commflag inverse via command line

Post by bill6502 » Fri Apr 01, 2016 2:18 pm

Just my opinion, but a new thread may get the attention of
others that aren't reading an existing one. As far as I know,
you can't do any skip/cut list editing via mythweb.

Post Reply