<br><br><div class="gmail_quote">On 4 July 2013 09:20, Michael Stucky <span dir="ltr"><<a href="mailto:mike@stucky.us" target="_blank">mike@stucky.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><div><div class="h5">On Wed, Jul 3, 2013 at 6:50 PM, John Pilkington <span dir="ltr"><<a href="mailto:J.Pilk@tesco.net" target="_blank">J.Pilk@tesco.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>On 03/07/13 16:52, Michael Stucky wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
John has updated his script since I provided the HDHR HD workaround, so<br>
the variable names in my snippet are out of date. If you want to try my<br>
workaround you will need to replace:<br>
<br>
CMD="ionice -c3 mplex -o "$1" -V -f 9 $TEMPHEAD.m2v $TEMPAUDIO"<br>
<br>
With something like this (the "mediainfo" package is required for this<br>
to work):<br>
<br>
filename=`mediainfo '--Inform=General;%FileName%' "$1"`<br>
<br>
OUTFILE="$filename".mkv<br>
<br>
CMD="ionice -c3 mythffmpeg -fflags +genpts -i $TEMPHEAD.m2v -i<br>
$TEMPAUDIO -vcodec copy -acodec copy $OUTFILE "<br>
<br>
# tell mythDB about new filename<br>
<br>
echo "update recorded set basename='${OUTFILE}' where chanid=$chanid and<br>
starttime='$starttime';" | mysql -N -u${DBUserName} -p${DBPassword}<br>
-h${DBLocalHostName} ${DBName}<br>
<br>
<br>
You will as need to replace "$1" with "$OUTFILE" in the following lines:<br>
<br>
CMD="ionice -c3 mythcommflag -q --rebuild --file $1 "<br>
<br>
echo -e "Output file is $1. \n"<br>
<br>
echo -e "\nRunning: mythffmpeg -i "$1" 2>&1 | grep -C 4 Video" | tee -a<br>
log$$<br>
<br>
mythffmpeg -i "$1" 2>&1 | grep -C 4 Video | tee -a log$$<br>
<br>
CMD="mv ${TEMPHEAD}_log.txt ${LOGDIR}/$1.PXcut$$.txt"<br>
<br>
As I mentioned above, I am using a modified version of John's earlier<br>
script so this is untested. Let me know if this doesn't work.<br>
<br>
Mike<br>
<br>
</blockquote>
<br></div></div>
OK, thanks for that. I have a first shot at a switchable script and my first .mkv file. It plays in the frontend but I can't step or use the editor on it. I think I saw something recently about that, but it's bedtime now. I suppose MythArchive will choke on it, too.<br>
<br>
Running: mythffmpeg -i 1002_20130703195800.mkv 2>&1 | grep -C 4 Video<br>
<br>
Input #0, matroska,webm, from '1002_20130703195800.mkv':<br>
Metadata:<br>
ENCODER : Lavf54.6.101<br>
Duration: 00:59:11.60, start: 0.000000, bitrate: 3008 kb/s<br>
Stream #0:0: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 8153 kb/s, 25 fps, 25 tbr, 1k tbn, 50 tbc (default)<br>
Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 256 kb/s (default)<div><br>
At least one output file must be specified<br>
<br></div><span><font color="#888888">
John</font></span><div><div><br>
<br><br></div></div></blockquote></div></div><div>I should have mentioned above, once the file is in an MKV container it is no longer in a format that MythTV considers a "recording". In other words, it is not editable or seekable as a recording. You need to use "mythexport" or some other script like that to move it to your MythTV Video library where you can play, fastforward, rewind, etc. as you would any imported video.</div>
<div><br></div><div>Mike</div></div></div></div>
<br></blockquote><div>Yeah thats the same as <a href="http://www.mythtv.org/wiki/____Lossless_Cut" target="_blank">http://www.mythtv.org/wiki/____Lossless_Cut</a><br><br>I'll give this a go when I get a chance<br> </div>
</div><br>