<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Wed, Jul 3, 2013 at 6:50 PM, John Pilkington <span dir="ltr">&lt;<a href="mailto:J.Pilk@tesco.net" target="_blank">J.Pilk@tesco.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">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=&quot;ionice -c3  mplex -o &quot;$1&quot; -V -f 9 $TEMPHEAD.m2v $TEMPAUDIO&quot;<br>
<br>
With something like this (the &quot;mediainfo&quot; package is required for this<br>
to work):<br>
<br>
filename=`mediainfo &#39;--Inform=General;%FileName%&#39; &quot;$1&quot;`<br>
<br>
OUTFILE=&quot;$filename&quot;.mkv<br>
<br>
CMD=&quot;ionice -c3 mythffmpeg -fflags +genpts -i $TEMPHEAD.m2v -i<br>
$TEMPAUDIO -vcodec copy -acodec copy $OUTFILE &quot;<br>
<br>
# tell mythDB about new filename<br>
<br>
echo &quot;update recorded set basename=&#39;${OUTFILE}&#39; where chanid=$chanid and<br>
starttime=&#39;$starttime&#39;;&quot; | mysql -N -u${DBUserName} -p${DBPassword}<br>
-h${DBLocalHostName} ${DBName}<br>
<br>
<br>
You will as need to replace &quot;$1&quot; with &quot;$OUTFILE&quot; in the following lines:<br>
<br>
CMD=&quot;ionice -c3 mythcommflag -q --rebuild --file $1 &quot;<br>
<br>
echo -e &quot;Output file is $1. \n&quot;<br>
<br>
echo -e &quot;\nRunning:  mythffmpeg -i &quot;$1&quot; 2&gt;&amp;1 | grep -C 4 Video&quot; | tee -a<br>
log$$<br>
<br>
mythffmpeg -i &quot;$1&quot; 2&gt;&amp;1 | grep -C 4 Video | tee -a log$$<br>
<br>
CMD=&quot;mv ${TEMPHEAD}_log.txt  ${LOGDIR}/$1.PXcut$$.txt&quot;<br>
<br>
As I mentioned above, I am using a modified version of John&#39;s earlier<br>
script so this is untested. Let me know if this doesn&#39;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&#39;t step or use the editor on it.  I think I saw something recently about that, but it&#39;s bedtime now.  I suppose MythArchive will choke on it, too.<br>

<br>
Running:  mythffmpeg -i 1002_20130703195800.mkv 2&gt;&amp;1 | grep -C 4 Video<br>
<br>
Input #0, matroska,webm, from &#39;1002_20130703195800.mkv&#39;:<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 class="im HOEnZb"><br>
At least one output file must be specified<br>
<br></div><span class="HOEnZb"><font color="#888888">
John</font></span><div class="HOEnZb"><div class="h5"><br>
<br><br></div></div></blockquote><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 &quot;recording&quot;. In other words, it is not editable or seekable as a recording. You need to use &quot;mythexport&quot; 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>