> I want to transcode some shows automatically, but not all.
<snip comments about using 0.18.1 version>
> Do I need to use a user-job for this? If so can someone suggest a
> working command line?
You'll need to make a shell script then run the shell script as
the user job. The shell script needs to run mythtranscode
and then rename or copy the resulting file over the original
file. You might need to rerun mythcommflag to rebuild the seektable
for the recording afterwards. Something like this should work but
might need some tweaking:
------cut here------
#!/bin/sh
CHANID="$1"
STARTTIME="$2"
DIR="$3"
FILE="$4"
mythtranscode -c ${CHANID} -s ${STARTTIME} -p autodetect
if [ $? = 0 -a -r "${DIR}/${FILE}.tmp" ]
then
# transcode returned 0 for success and generated the .tmp new file
# Comment out the next line if you do NOT want to keep the original
mv ${DIR}/${FILE} ${DIR}/${FILE}.orig
# Copy the new transcoded recording into place
mv ${DIR}/${FILE}.tmp ${DIR}/${FILE}
mythcommflag --rebuild --chanid ${CHANID} --starttime ${STARTTIME}
fi
------cut here------
If that script was called transcode_job.sh, you'd call it from the
JobQueue as:
transcode_job.sh %CHANID% %STARTTIMEISO% %DIR% %FILE%
No attempt is made at error checking so you probably want to keep the
first mv line uncommented for now. I also wrote this script up on the
fly and haven't actually run it, so I'd run it on a test recording to
begin with. :)
--
Chris
_______________________________________________
mythtv-users mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users