In one of the other posts on the mailing list somehow had a hack at the end to update the file size information in the database.&nbsp; I don't see that in yours but it seems like it would be relevant, no?<br><br>I never got that hack to work in my scripts by the way.&nbsp; I always got some kind of syntax error on the last line.&nbsp; I think it had to do with the fact that it was trying to inline stdin stuff in the script.
<br><br>--<br>Mike<br><br><div><span class="gmail_quote">On 12/12/06, <b class="gmail_sendername">casey dunn</b> &lt;<a href="mailto:casey.dunn@gmail.com">casey.dunn@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 12/12/06, Trampas &lt;<a href="mailto:tstern@nc.rr.com">tstern@nc.rr.com</a>&gt; wrote:<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; Casey,<br>&gt;<br>&gt; My original question was how to enable automatic transcoding of the HDTV to 720x480 MPEG2, I do run the Myth Frontend on the box that is the backend. My question was how do I make the automatic transcoding work.
<br><br><br><a href="http://www.mythtv.org/wiki/index.php/Stream_mythtv_recordings_from_mythweb_using_flash_video#Transcode_recordings">http://www.mythtv.org/wiki/index.php/Stream_mythtv_recordings_from_mythweb_using_flash_video#Transcode_recordings
</a><br><a href="http://www.mythtv.org/wiki/index.php/Stream_mythtv_recordings_to_mobile_devices#Add_user_job_in_mythtv">http://www.mythtv.org/wiki/index.php/Stream_mythtv_recordings_to_mobile_devices#Add_user_job_in_mythtv
</a><br><br>Quick howto's for adding a user job.<br><br>Your job is going to be a bit different than the examples above,<br>luckily simpler.&nbsp;&nbsp;What I think you want is the same thing I do,<br>replace the existing HDTV.nuv with SVCD/DVD.mpg.&nbsp;&nbsp;This is a cleaned up
<br>version of my script. (for reference I'm targeting XBMC over a poor<br>802.11g connection and SMB)<br><br>####################### START ######################################<br>#!/bin/sh<br># script to shrink the size of mpeg2 recordings, &amp; make them human readable.
<br><br>cd /media/video<br><br>#setup varaibles<br>input_file=$1<br>output_dir=$PWD<br><br>#strip extension<br>name=`echo ${input_file} | sed -e &quot;s/[.].*$//&quot;`<br>extension=`echo ${input_file} | sed -e &quot;s/^[^.]*[.]//&quot;`
<br><br> transcode_options=&quot;-target ntsc-svcd -deinterlace&quot;<br><br>#run transcoder<br>ffmpeg -i &quot;${input_file}&quot; ${transcode_options} &quot;${name}.mpeg&quot;<br><br>#replace original<br> rm &quot;${input_file}&quot;
<br>mv &quot;${name}.mpeg&quot; &quot;${input_file}&quot;<br><br># update file names<br>#~/mythrename.pl --link /home/Shared/Video<br>~/mythrename.pl --underscores<br>######################### END ##################################
<br><br><br><br>Looking at the examples in the wiki it should probably look like<br>this... (untested)<br>############################## START ##############################<br>directory=$1;<br>file=$2;<br><br># Transcode the HDTV stream to DVD quality mpeg
<br><br>ffmpeg -i $directory/$file -target ntsc-dvd -deinterlace $directory/$file.mpeg<br><br>rm $directory/$file<br>mv $directory/$file.mpeg $directory/$file<br>############################### END ###############################
<br><br>I would put echo's in-front of the rm and mv for testing it a few<br>times from the command line and in myth before letting it delete my<br>originals (just in case).&nbsp;&nbsp;Or change it to create copies and manually<br>
delete the originals.<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">
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br></blockquote></div><br>