<br><br><div class="gmail_quote">On Wed, Jun 27, 2012 at 5:44 AM, Michelle Dupuis <span dir="ltr">&lt;<a href="mailto:mdupuis@ocg.ca" target="_blank">mdupuis@ocg.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div dir="ltr"><font color="#000000" face="Tahoma">I have a job setup to convert myth recordings to a format I can use on my blackberry.  I built this based on snippets I found around, and it seems to work other than the output quality is very poor
 (but nice and small).  The output is grainy/blocky; can anyone suggest which parameters to tweak to improve quality?  Thanks</font></div>
<div dir="ltr"><font face="times new roman"></font> </div>
<div dir="ltr">ffmpeg -i &quot;/mythstorage/recordings/1201_20120626233400.mpg&quot; -acodec aac -strict experimental -ab 128k -ac 2 -vol 2560 -s 800x600 -vcodec mpeg4 -flags +aic+mv4 -trellis 2 -cmp 2 -subcmp 2 -bufsize 20M -g 300 -metadata title=&quot;The Colbert Report-Richard
 Ford&quot; &quot;/tmp/The_Colbert_Report-Richard_Ford.mp4&quot;</div>
</div>

<br>_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<br></blockquote></div><br>If you are running a recent version of ffmpeg at least 0.8 then you can use the latest command line options<br><br>ffmpeg -i &lt;input file&gt; -acodec aac -strict experimental -ab 128k -ac 2 -s 800x600 -vcodec libx264 -profile baseline -tune film -b 600k -r 30 -level 31 -g 90 -async 2 -threads 0 &lt;output filename&gt;<br>
<br>The above line will generate h.264 video and it will look very decent and playable on most mobile devices. the options baseline, tune, and level are passed directly to libx264 and correspond directly to the same options in the libx264 man pages. the option profile and level are explained in detail here: <a href="http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Profiles">http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Profiles</a><br>
<br clear="all"><br>-- <br>Working on World Domination since 2001<br><br>