<br><br><div class="gmail_quote">On 10 August 2012 05:29, Matt Wynne <span dir="ltr"><<a href="mailto:matt@mattwynne.net" target="_blank">matt@mattwynne.net</a>></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>
> On 08/08/12 21:13, Matt Wynne wrote:<br>
>> We're going away on holiday and I'd like to put a few of the kids' favourites on the iPad.<br>
><br>
> It's a bit OT, but I simply choose the "IPad" option on Handbrake - it makes a beautiful transcode. But a bit less myth-centric<br>
><br>
> Very OT: My father-in-law calls Handbrake "The Pineapple"<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't doing anything.<br>
<br>
In case anyone's interested, here's what's got me an iPad full of cartoons for the flight tomorrow:<br>
<br>
#!/usr/bin/env ruby<br>
details = `echo "select title, subtitle, basename from recorded where title in ('Postman Pat', 'Octonauts', 'Raa Raa the Noisy Lion', 'Mr Men')" | mysql -u root mythconverg`<br>
count = 1<br>
files = details.split("\n")[2..-1].map { |line| line.split("\t") }<br>
files.each do |show, title, file|<br>
source_file = "/home/mythtv/recordings/#{file}"<br>
output_file = File.join("~", "Dropbox", "Kids TV", "#{show} - #{title}.mp4")<br>
next unless File.exists?(source_file)<br>
puts "Processing #{show} - #{title} (#{count} / #{files.length})"<br>
cmd = [<br>
'avconv',<br>
"-i #{source_file}",<br>
'-c:v libx264',<br>
'-c:a libfaac',<br>
output_file.gsub(/ /,'\ ')<br>
].join(' ')<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 "%DIR%"/"%FILE%" -o /storage/recordings/"%FILE%".mp4 --preset="iPhone & iPod Touch" <br>
<br>I chose the above preset as I'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>