[mythtv-users] Handbrake_userjob issues
Anthony Giggins
seven at seven.dorksville.net
Fri Nov 10 11:35:31 UTC 2017
On 10 November 2017 at 17:37, Zach Scholes <zskullz at gmail.com> wrote:
> Has anyone tried to implement the Handbrake_userjob script?
> https://www.mythtv.org/wiki/Handbrake_userjob
>
> I've been trying to get it to work for several hours, and I have had to
> make several adjustments to the script to get as far as I can but I am
> getting the error **ERROR: [mplex] Too many frame drops -exiting' when
> mplex runs. I tried setting the -r flag to 12000 and 9000 but still got
> the same error. When I didn't set the -r flag it got INFO: [mplex]
> rough-guess multiplexed stream data rate : 9988296 but still the same
> error.
>
> Ultimately I'm trying to just get a video file to load in to my plex
> library with the commercials cut. I'm beginning to think it would have
> been better to just start from scratch instead of trying this script. Any
> thoughts are appreciated.
>
>
>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20171110/cad68c83/attachment.html>
More information about the mythtv-users
mailing list