<div><span class="gmail_quote">On 11/11/07, <b class="gmail_sendername">Chris Isip</b> <<a href="mailto:cmisipster@gmail.com">cmisipster@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>
<div class="gmail_quote">
<div><span class="e" id="q_1162c9fb15e497da_1">On Nov 8, 2007 3:26 PM, Fred Squires <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:fsquires@gmail.com" target="_blank">fsquires@gmail.com</a>> wrote:
<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>
<div></div>
<div>On Nov 8, 2007 12:03 PM, Stephen Robertson <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:stephengrobertson@gmail.com" target="_blank">stephengrobertson@gmail.com</a>> wrote:<br>> I wonder if anyone is having any success with exporting video to an
<br>> ipod, specifically in this case one of the nanos that can do video if<br>> that's relevant.<br></div></div></blockquote></span>I got this from the net somewhere and seems to work well for my ipod touch.<br>
<br>#!/bin/bash<br>rm -rf tmp.mpg* 2> /dev/null <br>mythtranscode --mpeg2 -i $1 -o tmp.mpg<br>/usr/bin/ffmpeg -i tmp.mpg -acodec aac -ac 2 -ar 44100 -ab 128k -s 320x240 -vcodec h264 -b 300k -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me umh -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor
0.71 -bt 300k -maxrate 300k -bufsize 300k -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 15 -qmax 51 -qdiff 4 -level 30 -aspect 320:240 $2<br>rm -rf tmp.mpg* 2> /dev/null </div></div></blockquote></div>
<div> </div>
<div>Thanks - this worked quite well for me for my iPhone.</div>
<div> </div>
<div>In case anyone elses tries it - to make it work on a recent ffmpeg - you need to change 'aac' to 'libfaac' and 'h264' to 'libx264'</div>