<br><br><div class="gmail_quote">On 10 August 2012 05:29, Matt Wynne <span dir="ltr">&lt;<a href="mailto:matt@mattwynne.net" target="_blank">matt@mattwynne.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
On 9 Aug 2012, at 02:17, Kingsley Turner wrote:<br>
<br>
&gt; On 08/08/12 21:13, Matt Wynne wrote:<br>
&gt;&gt; We&#39;re going away on holiday and I&#39;d like to put a few of the kids&#39; favourites on the iPad.<br>
&gt;<br>
&gt; It&#39;s a bit OT, but I simply choose the &quot;IPad&quot; option on Handbrake - it makes a beautiful transcode.  But a bit less myth-centric<br>
&gt;<br>
&gt; Very OT:  My father-in-law calls Handbrake &quot;The Pineapple&quot;<br>
<br>
</div>I had a crack with the pineapple, and it gave me some good pointers for settings and codecs to use with my avconv script. I could have figured out how to script handbrake but I almost had my avconv script working by that point.<br>

<br>
It looks like mythexport with RSS will be the best solution ultimately, but I ran out of time faffing about trying to work out why myexport wasn&#39;t doing anything.<br>
<br>
In case anyone&#39;s interested, here&#39;s what&#39;s got me an iPad full of cartoons for the flight tomorrow:<br>
<br>
#!/usr/bin/env ruby<br>
details = `echo &quot;select title, subtitle, basename from recorded where title in (&#39;Postman Pat&#39;, &#39;Octonauts&#39;, &#39;Raa Raa the Noisy Lion&#39;, &#39;Mr Men&#39;)&quot; | mysql -u root mythconverg`<br>
count = 1<br>
files = details.split(&quot;\n&quot;)[2..-1].map { |line| line.split(&quot;\t&quot;) }<br>
files.each do |show, title, file|<br>
  source_file = &quot;/home/mythtv/recordings/#{file}&quot;<br>
  output_file = File.join(&quot;~&quot;, &quot;Dropbox&quot;, &quot;Kids TV&quot;, &quot;#{show} - #{title}.mp4&quot;)<br>
  next unless File.exists?(source_file)<br>
  puts &quot;Processing #{show} - #{title} (#{count} / #{files.length})&quot;<br>
  cmd = [<br>
    &#39;avconv&#39;,<br>
    &quot;-i #{source_file}&quot;,<br>
    &#39;-c:v libx264&#39;,<br>
    &#39;-c:a libfaac&#39;,<br>
    output_file.gsub(/ /,&#39;\ &#39;)<br>
  ].join(&#39; &#39;)<br>
  system(cmd)<br>
  count += 1<br>
end<br>
<br>
Thanks for the tips everyone.<br>
<div class="im HOEnZb"><br>
cheers,<br>
Matt<br>
<br></div></blockquote></div><br>My handbrake userjob looks like this<br><br>/usr/bin/HandBrakeCLI -i &quot;%DIR%&quot;/&quot;%FILE%&quot; -o /storage/recordings/&quot;%FILE%&quot;.mp4 --preset=&quot;iPhone &amp; iPod Touch&quot; <br>
<br>I chose the above preset as I&#39;m running an older Handbrake version and this works fine on both iphone4 and ipad2<br><br>I initially set this up for mythiphone but never bothered updating %FILE% to be %TITLE% - %SUBTITLE% or whatever the correct variables are....<br>
<br>Cheers,<br><br>Anthony<br>