[mythtv-users] Handbrake_userjob issues

Anthony Giggins seven at seven.dorksville.net
Sun Nov 12 23:36:57 UTC 2017


On 11 November 2017 at 00:55, Mark Perkins <perkins1724 at hotmail.com> wrote:

> On 10 November 2017 10:27:35 pm Anthony Giggins <
> seven at seven.dorksville.net> wrote:
>
> > I just use the following as my userjob, mainly so its all stored in the
> > database, so I dont need to remember to migrate a script and I use .mp4
> as
> > its pretty universally accepted these days
> >
> > /usr/bin/HandBrakeCLI -i "%DIR%"/"%FILE%" -o /storage/videos/"%TITLE%"" -
> > S00E00 - ""%SUBTITLE%".mp4 --preset="iPhone & iPod touch"
> >
> > I also heavily use mythexport https://launchpad.net/mythexport with a
> > custom config module to use the same Handbrake command above
> >
> > /usr/share/mythexport/configs/iPhoneHandbrake.pm
> > #!/usr/bin/perl
> >
> > package iPhoneHandbrake;
> >
> > use ExportBase;
> >
> > our @ISA = qw(ExportBase);
> >
> > my $description = "Low Resolution (480x?) Handbrake H264 Settings.";
> > my $devices = "Handbrake iPhone & iPod Touch profile (example iPod Touch,
> > iPhone, iPad";
> > my $notes = "Requires Handbrake, <a href=\"
> > https://help.ubuntu.com/community/Medibuntu\">activate Medibuntu</a>";
> > my $version = "1.0";
> >
> > sub new{
> >     my $class = shift;
> >     my $self = $class->SUPER::new(shift, shift, $description, $devices,
> > $notes, $version);
> >     bless $self, $class;
> >     return $self;
> > }
> >
> > sub export{
> >     my( $self ) = @_;
> >
> >     system("HandBrakeCLI -i \'$self->{_inputFile}\' -o
> > \'$self->{_outputFile}$self->{_extension}\' --preset='iPhone & iPod
> > touch'");
> >     system("chmod 666 \'$self->{_outputFile}$self->{_extension}\'");
> > }
> >
> > 1;
> >
> >
> > Cheers,
> >
> > Anthony
> >
> >
> >
>
> Do both these leave the commflag cuts in?
>
>
> Yes, it assumes that commercials have been already cut and transcoded out,
typically I use mythcut to Load the commflag list so I can confirm and then
transcode.

Cheers,

Anthony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20171113/1fb5c59f/attachment.html>


More information about the mythtv-users mailing list