<br><br><div class="gmail_quote">On 4 July 2013 22:11, Anthony Giggins <span dir="ltr"><<a href="mailto:seven@seven.dorksville.net" target="_blank">seven@seven.dorksville.net</a>></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"><<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>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't step or<br>
use the editor on it. I think I saw something recently about that,<br>
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<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 "recording". In other<br>
words, it is not editable or seekable as a recording. You need to use<br>
"mythexport" 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've posted the new version, mythDVBcut_20130704.sh, above the old one here, and added a small covering note. I hope it'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've been Playing with this also I've added this section as provided by Michael as I'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' '`<br> if [ "${VRES}" = "1440x1080" ] ; then<br> echo "HD recording Remuxing to mkv" >> log$$<div class="im">
<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 $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 starttime='$starttime';" | mysql -N -u${DBUserName} -p${DBPassword} -h${DBLocalHostName} ${DBName}<br></div> else<div class="im">
<br>
CMD="ionice -c3 mplex -o "$1" -V -f 9 $TEMPHEAD.m2v $TEMPAUDIO"<br></div> OUTFILE="$1"<br> fi<br><br>Only Problem is mediainfo '--Inform=General;%FileName%' "$1"` returns nothing so the intial run was as file called .mkv So I've since removed the filename variable and made OUTFILE="$1".mkv instead<br>
</div></div><br>$ mediainfo '--Full' /storage2/recordings/4032_20130702074000.mpg.old<br><br>$<br><br>Cheers,<br><br>Anthony<br>
</blockquote></div><br>Also on the previous script and the updated version I've been adding<br><br>echo "update recorded<br> set transcoded = 1<br> where chanid=$chanid and starttime='$starttime'<br>
and basename='$1' ;" |<br> mysql -N -u${DBUserName} -p${DBPassword} -h${DBLocalHostName} ${DBName}<br><br>at the bottom<br><br>Anthony<br>