<br><br><div class="gmail_quote">On 4 July 2013 22:11, Anthony Giggins <span dir="ltr">&lt;<a href="mailto:seven@seven.dorksville.net" target="_blank">seven@seven.dorksville.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br><div class="gmail_quote"><div><div class="h5">On 4 July 2013 21:27, 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>On 04/07/13 00:20, Michael Stucky wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
    OK, thanks for that.  I have a first shot at a switchable script and<br>
    my first .mkv file.  It plays in the frontend but I can&#39;t step or<br>
    use the editor on it.  I think I saw something recently about that,<br>
    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<br>
    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)<br>
<br>
    At least one output file must be specified<br>
<br>
    John<br>
<br>
<br>
<br>
I should have mentioned above, once the file is in an MKV container it<br>
is no longer in a format that MythTV considers a &quot;recording&quot;. In other<br>
words, it is not editable or seekable as a recording. You need to use<br>
&quot;mythexport&quot; or some other script like that to move it to your MythTV<br>
Video library where you can play, fastforward, rewind, etc. as you would<br>
any imported video.<br>
<br>
Mike<br>
<br>
</blockquote>
<br></div>
Thanks for that, too.<br>
<br>
I&#39;ve posted the new version,  mythDVBcut_20130704.sh, above the old one here, and added a small covering note.  I hope it&#39;s useful.<br>
<br>
<a href="http://www.mythtv.org/wiki/MythDVBcut" target="_blank">http://www.mythtv.org/wiki/<u></u>MythDVBcut</a><br>
<br>
The other part of the package, pycut_20130305.py, for use with eg h264 recordings, is unchanged at the bottom of the page.<div><div><br>
<br>
John<br>
<br>
<br></div></div></blockquote></div></div><div>I&#39;ve been Playing with this also I&#39;ve added this section as provided by Michael as I&#39;d much rather only make the HD recordings into mkv only instead of the non-HD recordings which work as mpeg2<br>

<br>  VRES=`grep Video  temp$$.txt | head -n1 | cut -f 11,11 -d&#39; &#39;`<br>   if [ &quot;${VRES}&quot; = &quot;1440x1080&quot; ] ; then<br>      echo &quot;HD recording Remuxing to mkv&quot; &gt;&gt; log$$<div class="im">
<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 $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 starttime=&#39;$starttime&#39;;&quot; | mysql -N -u${DBUserName} -p${DBPassword} -h${DBLocalHostName} ${DBName}<br></div>   else<div class="im">
<br>
      CMD=&quot;ionice -c3  mplex -o &quot;$1&quot; -V -f 9 $TEMPHEAD.m2v $TEMPAUDIO&quot;<br></div>      OUTFILE=&quot;$1&quot;<br>   fi<br><br>Only Problem is mediainfo &#39;--Inform=General;%FileName%&#39; &quot;$1&quot;` returns nothing so the intial run was as file called .mkv So I&#39;ve since removed the filename variable and made OUTFILE=&quot;$1&quot;.mkv instead<br>

</div></div><br>$ mediainfo &#39;--Full&#39; /storage2/recordings/4032_20130702074000.mpg.old<br><br>$<br><br>Cheers,<br><br>Anthony<br>
</blockquote></div><br>Ignore me, wrong video file used :(<br><br>anyway at this stage of the script this should be <br><br>filename=`mediainfo &#39;--Inform=General;%FileName%&#39; &quot;$1&quot;.old`<br><br>however this still give the same value as $1 so no value here<br>
<br>but seems to work perfectly<br><br><br>Cheers,<br><br>Anthony<br><br><br>