<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div style="color: black;">
<p style="margin: 0 0 1em 0; color: black; font-family: sans-serif;">On 10 November 2017 10:27:35 pm Anthony Giggins <seven@seven.dorksville.net> wrote:<br>
</p>
<p style="margin: 0 0 1em 0; color: black; font-family: sans-serif;">> I just use the following as my userjob, mainly so its all stored in the<br>
> database, so I dont need to remember to migrate a script and I use .mp4 as<br>
> its pretty universally accepted these days<br>
><br>
> /usr/bin/HandBrakeCLI -i "%DIR%"/"%FILE%" -o /storage/videos/"%TITLE%"" -<br>
> S00E00 - ""%SUBTITLE%".mp4 --preset="iPhone & iPod touch"<br>
><br>
> I also heavily use mythexport <a href="https://launchpad.net/mythexport">https://launchpad.net/mythexport</a> with a<br>
> custom config module to use the same Handbrake command above<br>
><br>
> /usr/share/mythexport/configs/iPhoneHandbrake.pm<br>
> #!/usr/bin/perl<br>
><br>
> package iPhoneHandbrake;<br>
><br>
> use ExportBase;<br>
><br>
> our @ISA = qw(ExportBase);<br>
><br>
> my $description = "Low Resolution (480x?) Handbrake H264 Settings.";<br>
> my $devices = "Handbrake iPhone & iPod Touch profile (example iPod Touch,<br>
> iPhone, iPad";<br>
> my $notes = "Requires Handbrake, <a href=\"<br>
> <a href="https://help.ubuntu.com/community/Medibuntu\">https://help.ubuntu.com/community/Medibuntu\</a>">activate Medibuntu</a>";<br>
> my $version = "1.0";<br>
><br>
> sub new{<br>
>     my $class = shift;<br>
>     my $self = $class->SUPER::new(shift, shift, $description, $devices,<br>
> $notes, $version);<br>
>     bless $self, $class;<br>
>     return $self;<br>
> }<br>
><br>
> sub export{<br>
>     my( $self ) = @_;<br>
><br>
>     system("HandBrakeCLI -i \'$self->{_inputFile}\' -o<br>
> \'$self->{_outputFile}$self->{_extension}\' --preset='iPhone & iPod<br>
> touch'");<br>
>     system("chmod 666 \'$self->{_outputFile}$self->{_extension}\'");<br>
> }<br>
><br>
> 1;<br>
><br>
><br>
> Cheers,<br>
><br>
> Anthony<br>
><br>
><br>
></p>
<p style="margin: 0 0 1em 0; color: black;"></p>
<p style="margin: 0 0 1em 0; color: black;">Do both these leave the commflag cuts in?
<br>
</p>
<p style="margin: 0 0 1em 0; color: black; font-family: sans-serif;"><br>
</p>
</div>
</body>
</html>