On Thu, Mar 27, 2008 at 10:01 AM, Kevin Kuphal &lt;<a href="mailto:kkuphal@gmail.com">kkuphal@gmail.com</a>&gt; wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div class="Ih2E3d">On Wed, Mar 26, 2008 at 7:39 PM, Mitch Gore &lt;<a href="mailto:mitchell.gore@gmail.com" target="_blank">mitchell.gore@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">I want to save space with my HD recordings.&nbsp; I want to transcode them but keep the AC3 audio.&nbsp; I did some searches and I found that it is not possible.&nbsp; These posts were older so i am wondering what the status in .21 is.&nbsp; I couldnt find the option myself.<br>

<br>Also what is the differance between Uncompressed and MP3.&nbsp; It still makes it 2-channel so the AC3 is being removed.</blockquote>
<div>&nbsp;</div>
</div><div>You can, but not using mythtranscode.&nbsp; If you transcode using something like mencoder&nbsp;or other tools you can direct them to retain the AC3 tracks.&nbsp; Try searching the archives for &quot;AC3 mencoder&quot; and see what you find.</div>


<div>&nbsp;</div><font color="#888888">
<div>Kevin</div></font></div>
<br>_______________________________________________<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><br>
<br></blockquote></div><br><br><br>I found this script which seems close to what i need:<br><br>#!/bin/sh<br># Transcode mythtv video down to a reasonable resolution, preserving AC3<br>audio<br><br>if mencoder -o /dev/null $1 2&gt;/dev/null | egrep -q &#39;fps:(59|60)&#39;; then<br>
# progressive<br>OFPS=&quot;30000/1001&quot;<br>FPS=&quot;60&quot;<br>FILTER=&quot;tinterlace=4,scale=720:360:1,expand=:480&quot;<br>else<br># interlaced<br>OFPS=&quot;30000/1001&quot;<br>FPS=$OFPS<br>FILTER=&quot;scale=720:360:1,expand=:480&quot;<br>
fi<br><br>nice mencoder -of mpeg -mpegopts format=mpeg2:vbitrate=2000 -oac copy<br>-ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=2000:keyint=18:aspect=16/9<br>-vf $FILTER -fps $FPS -ofps $OFPS -vc mpeg12 -o /var/video/$1.tmp<br>
/var/video/$1 &amp;&amp; chown mythtv /var/video/$1.tmp &amp;&amp; mv /var/video/$1.tmp<br>/var/video/$1<br><br><br>ERROR=$?<br>if [ $ERROR -eq 0 ]; then<br># Fix the database entry for the file<br>cat &lt;&lt; EOF | mysql --user=mythtv --password=mythtv mythconverg<br>
UPDATE<br>recorded<br>SET<br>filesize = $(ls -l /var/video/$1 | awk &#39;{print $5}&#39;)<br>WHERE<br>basename = &#39;$1&#39;;<br>EOF<br>fi<br><br>nice mythtranscode --buildindex --infile $1<br><br>I see a couple of issues.&nbsp; <br>
1.&nbsp; This wont work with storage groups will it.<br>2.&nbsp; I would like to create a userjob for this so i can easily queue up a job, what do i need to do for that to work?<br>3.&nbsp; if i am reading this correctly it appears as its dumping a mpeg2 file.&nbsp; How do i make it X.264?&nbsp; Also, where is the res set?<br>
<br>Thanks,<br>Mitchell<br>