<br><br><div class="gmail_quote">On Nov 13, 2007 9:01 AM, Stephen Robertson &lt;<a href="mailto:stephengrobertson@gmail.com">stephengrobertson@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Nov 13, 2007 11:16 AM, Stephen Robertson &lt;<a href="mailto:stephengrobertson@gmail.com">stephengrobertson@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; &gt;On 11/11/07, Chris Isip &lt;<a href="mailto:cmisipster@gmail.com">
cmisipster@gmail.com</a>&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; &nbsp; &nbsp;On Nov 8, 2007 3:26 PM, Fred Squires &lt;<a href="mailto:fsquires@gmail.com">fsquires@gmail.com</a>&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp;On Nov 8, 2007 12:03 PM, Stephen Robertson &lt;
<a href="mailto:stephengrobertson@gmail.com">stephengrobertson@gmail.com</a>&gt; wrote:<br>&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp;&gt; I wonder if anyone is having any success with exporting video to an<br>&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp;&gt; ipod, specifically in this case one of the nanos that can do video if
<br>&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp;&gt; that&#39;s relevant.<br>&gt; &gt;<br>&gt; &gt; &nbsp; &nbsp;I got this from the net somewhere &nbsp;and seems to work well for my ipod touch.<br>&gt; &gt;<br>&gt; &gt; &nbsp; &nbsp;#!/bin/bash<br>&gt; &gt; &nbsp; &nbsp;rm -rf tmp.mpg*
 2&gt; /dev/null<br>&gt; &gt; &nbsp; &nbsp;mythtranscode --mpeg2 -i $1 -o tmp.mpg<br>&gt; &gt; &nbsp; &nbsp;/usr/bin/ffmpeg -i tmp.mpg &nbsp;-acodec aac -ac 2 -ar 44100 -ab 128k -s 320x240 -vcodec h264 -b 300k -flags +loop -cmp +chroma &gt;-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 &gt;-i_qfactor 
0.71 -bt 300k -maxrate 300k -bufsize 300k -rc_eq &#39;blurCplx^(1-qComp)&#39; -qcomp 0.6 -qmin 15 -qmax 51 -qdiff 4 -level 30 -aspect &gt;320:240 $2<br>&gt; &gt; &nbsp; &nbsp;rm -rf tmp.mpg* 2&gt; /dev/null<br>&gt; &gt;<br>&gt; &nbsp;&gt;
<br>&gt; &gt;Thanks - this worked quite well for me for my iPhone.<br>&gt; &gt;<br>&gt; &gt;In case anyone elses tries it - to make it work on a recent ffmpeg -<br>&gt; you need to change &#39;aac&#39; to &#39;libfaac&#39; and &#39;h264&#39; to &#39;libx264&#39;
<br>&gt;<br>&gt; Anyone got any clues why I am having problems using this? &nbsp;The error<br>&gt; I&#39;m getting is below. &nbsp;A far as I can tell I have the aac codec<br>&gt; compiled in. &nbsp;Probably something obvious as usual!!
<br>&gt;<br>&gt; Thanks<br>&gt; Stephen<br><br></div>Knew there would be something obvious! &nbsp;Somehow in my mucking about I<br>had two ffmpeg one at /usr/bin and one in /usr/local/bin. &nbsp;When doing<br>ffmpeg -formats it was picking up the /local one but the script went
<br>to the other one.<br><br>However I&#39;m not a huge amount further ahead. &nbsp;It now runs and produces<br>a video file which if I load up with quicktime on a windows pc then it<br>plays and I get audio but just a blank screen instead of any image.
<br>If its any sort of clue I get a movie fps of 25 but a playing fps of 0<br>from the &quot;movie inspector&quot; part of quicktime<br><br>I&#39;ve tried reducing the commands passed to ffmpeg to &nbsp;a minimum with<br>the aim of getting some sort of output and then gradually add them
<br>back in to optimise it.<br><br>I have tried it with<br>/usr/local/bin/ffmpeg -i tmp.mpg &nbsp;-acodec aac -ac 2 -ar 44100 -ab 128k<br>-s 320x240 -vcodec h264 -b 300k $2<br><br>I&#39;m just a bit puzzled if other people are having success.
<br><br>Thanks<br><font color="#888888">Stephen<br></font><div><div></div><div class="Wj3C7c">_______________________________________________<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org
</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a></div></div></blockquote><div><br>Since you are dealing with aac you might have to enable both a52 and a52bin in the compile of ffmpeg.&nbsp; It doesn&#39;t help that you have multiple versions of ffmpeg installed.&nbsp; Ffmpeg also depends on a lot of other libraries such as avodec, avformat, avutil, postproc etc which you might have multiple versions. 
<br><br><br></div></div><br>