<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 10 November 2017 at 17:37, Zach Scholes <span dir="ltr"><<a href="mailto:zskullz@gmail.com" target="_blank">zskullz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Has anyone tried to implement the Handbrake_userjob script? <a href="https://www.mythtv.org/wiki/Handbrake_userjob" target="_blank">https://www.mythtv.<wbr>org/wiki/Handbrake_userjob</a><div><br></div><div>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.</div><div><br></div><div>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.</div></div>
<br><br></blockquote><div><br></div><div>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 </div><div><br></div><div>/usr/bin/HandBrakeCLI -i "%DIR%"/"%FILE%" -o /storage/videos/"%TITLE%"" - S00E00 - ""%SUBTITLE%".mp4 --preset="iPhone & iPod touch" </div></div><br></div><div class="gmail_extra">I also heavily use mythexport <a href="https://launchpad.net/mythexport">https://launchpad.net/mythexport</a> with a custom config module to use the same Handbrake command above</div><div class="gmail_extra"><br></div><div class="gmail_extra">/usr/share/mythexport/configs/iPhoneHandbrake.pm<br></div><div class="gmail_extra">#!/usr/bin/perl<br></div><div class="gmail_extra"><div class="gmail_extra"><br></div><div class="gmail_extra">package iPhoneHandbrake;</div><div class="gmail_extra"><br></div><div class="gmail_extra">use ExportBase;</div><div class="gmail_extra"><br></div><div class="gmail_extra">our @ISA = qw(ExportBase);</div><div class="gmail_extra"><br></div><div class="gmail_extra">my $description = "Low Resolution (480x?) Handbrake H264 Settings.";</div><div class="gmail_extra">my $devices = "Handbrake iPhone & iPod Touch profile (example iPod Touch, iPhone, iPad";</div><div class="gmail_extra">my $notes = "Requires Handbrake, <a href=\"<a href="https://help.ubuntu.com/community/Medibuntu\">https://help.ubuntu.com/community/Medibuntu\</a>">activate Medibuntu</a>";</div><div class="gmail_extra">my $version = "1.0";</div><div class="gmail_extra"><br></div><div class="gmail_extra">sub new{</div><div class="gmail_extra"> my $class = shift;</div><div class="gmail_extra"> my $self = $class->SUPER::new(shift, shift, $description, $devices, $notes, $version);</div><div class="gmail_extra"> bless $self, $class;</div><div class="gmail_extra"> return $self;</div><div class="gmail_extra">}</div><div class="gmail_extra"><br></div><div class="gmail_extra">sub export{</div><div class="gmail_extra"> my( $self ) = @_;</div><div class="gmail_extra"><br></div><div class="gmail_extra"> system("HandBrakeCLI -i \'$self->{_inputFile}\' -o \'$self->{_outputFile}$self->{_extension}\' --preset='iPhone & iPod touch'");</div><div class="gmail_extra"> system("chmod 666 \'$self->{_outputFile}$self->{_extension}\'");<br></div><div class="gmail_extra">}</div><div class="gmail_extra"><br></div><div class="gmail_extra">1;</div><div><br></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">Cheers,</div><div class="gmail_extra"><br></div><div class="gmail_extra">Anthony</div></div>