[mythtv-users] Handbrake_userjob issues

Mark Perkins perkins1724 at hotmail.com
Fri Nov 10 14:55:04 UTC 2017


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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20171110/f0b0bb51/attachment.html>


More information about the mythtv-users mailing list