On Thu, Mar 27, 2008 at 10:01 AM, Kevin Kuphal <<a href="mailto:kkuphal@gmail.com">kkuphal@gmail.com</a>> 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 <<a href="mailto:mitchell.gore@gmail.com" target="_blank">mitchell.gore@gmail.com</a>> 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. I want to transcode them but keep the AC3 audio. I did some searches and I found that it is not possible. These posts were older so i am wondering what the status in .21 is. I couldnt find the option myself.<br>
<br>Also what is the differance between Uncompressed and MP3. It still makes it 2-channel so the AC3 is being removed.</blockquote>
<div> </div>
</div><div>You can, but not using mythtranscode. If you transcode using something like mencoder or other tools you can direct them to retain the AC3 tracks. Try searching the archives for "AC3 mencoder" and see what you find.</div>
<div> </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>/dev/null | egrep -q 'fps:(59|60)'; then<br>
# progressive<br>OFPS="30000/1001"<br>FPS="60"<br>FILTER="tinterlace=4,scale=720:360:1,expand=:480"<br>else<br># interlaced<br>OFPS="30000/1001"<br>FPS=$OFPS<br>FILTER="scale=720:360:1,expand=:480"<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 && chown mythtv /var/video/$1.tmp && 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 << EOF | mysql --user=mythtv --password=mythtv mythconverg<br>
UPDATE<br>recorded<br>SET<br>filesize = $(ls -l /var/video/$1 | awk '{print $5}')<br>WHERE<br>basename = '$1';<br>EOF<br>fi<br><br>nice mythtranscode --buildindex --infile $1<br><br>I see a couple of issues. <br>
1. This wont work with storage groups will it.<br>2. 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. if i am reading this correctly it appears as its dumping a mpeg2 file. How do i make it X.264? Also, where is the res set?<br>
<br>Thanks,<br>Mitchell<br>