[mythtv-users] MythExport - iPod Touch / iPhone Settings

Matt Emmott memmott at gmail.com
Sat Sep 11 23:51:16 UTC 2010


On Wed, Jun 9, 2010 at 1:39 AM, Brian Frost <bfrost at brainboy.com> wrote:

> I spent several evenings trying to figure out what is wrong with my
> mythexport. It just wouldn't import into itunes... They would jsut show up
> with an error in iTunes. So I installed handbrake-cli and then hacked at the
> mythexport daemon. All I really did was install handbrake-cli then change
> the line that executes ffmpeg and change it to work with handbrake.
>
>
>
> This is what I did on my UBUNTU system (if you are using something else
> then you can find a different way to install handbrake-cli):
>
>
> 1) sudo add-apt-repository ppa:stebbins/handbrake-snapshots
>
> 2) sudo apt-get install handbrake-cli
>
> 3) then 'sudo vi /usr/bin/mythexport-daemon'
>
>
>
>  foreach (@args){
>         if($_ =~ m/\/dev\/null/){
>
>             $_ = "nice -n19 ffmpeg -i $filename $_";
>         }
>         else{
> *            $_ = "nice -n19 HandBrakeCLI -i $filename -o '$newfilename'
> --preset=\"iPhone & iPod Touch\" 2>&1";
> *# ADD THE LINE ABOVE AND ADD A HASH TO THE ONE BELOW
> #          $_ = "nice -n19 ffmpeg -i $filename $_ '$newfilename' 2>&1";
>         }
>     }
>
>
>
> then restart mythexport 'sudo /etc/init.d/mythexport restart'
>
>
>


> First off, this is an awesome idea and thanks for posting it. However I'm
> seeing some really weird behavior. I've modified my mythexport-daemon to
> look exactly as yours and bounced the daemon. I then kicked off a mythexport
> job. When I fire up top and tail the mythexport log, I see ffmpeg running!
> So, I killed the PID of ffmpeg, planning on re-bouncing the daemon or
> restarting the whole mythbox, and now HandbrakeCLI has kicked in! It seems
> like it's a 2 pass process, and the first pass still uses ffmpeg?
>
> Here's one thing I noticed: In the mythexport.log while ffmpeg is running,
> it says this:
>
> matt at magic:/var/log/mythtv$ tail -f mythexport.log
> Output #0, mp4, to '/dev/null':
>
> And I noticed that when I modified the binary, I did not modify the
> following:
>
>  foreach (@args){
>         if($_ =~ m/\/dev\/null/){
>
>             $_ = "nice -n19 ffmpeg -i $filename $_";
>         }
>
> So, it seems that it passes to /dev/null first by design? Why is this? Do I
> want to replace that dev/null section with handbrake as well, or is there a
> better way to do this in the mythexport settings?
>
> (Oh, and my export is still going, so I can't tell if the resulting file is
> good or not yet :-) )
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20100911/3362a1c4/attachment.htm>


More information about the mythtv-users mailing list