<div dir="ltr"><div><div><div>I again decided on a FINAL gstreamer pipeline and settled on 1750000 bitrate. Who knows how final this would be. The yadif deinterlace just took too long to be practical. I switched on to the ffmpeg deinterlacer via libav. I removed the cpulimit line and run the transcode full bore. Hour length video encodes are now finnishing at about 3 hours ( approximately ). At a bitrate setting of 1750000 bits, the file size is reduced to about 16% of original. And all system services seem to be running fine. The system remains stable. The only issue concerning is that mysql is sluggish in responding to queries with a transcode running in the background. So listing epg in mythweb is sluggish and there was an instance when Kodi could not query the epg from mysql. Renicing mysql seemed to fix the Kodi issue. This is becoming more and more a practical fully functioning stand alone myth server with transcode capability. <br><br>gst-launch-1.0 -e filesrc location="${INPUT}" \<br>! decodebin name=demux \<br>! queue \<br>! avenc_ac3 \<br>! mux. mpegtsmux name=mux \<br>! filesink location="temp.ts" demux. \<br>! queue \<br>! avdeinterlace \<br>! videoscale \<br>! videoconvert \<br>! omxh264enc target-bitrate=${TARGET_BIT_RATE} control-rate=1 inline-header=true periodicty-idr=250 interval-intraframes=250 \<br>! video/x-h264,width=${TARGET_WIDTH},height=${TARGET_HEIGHT}, \<br> stream-format=byte-stream,profile=high \<br>! h264parse \<br>! mux. &<br><br></div>For anyone intersted here is the relative encoding times for various deinterlace settings for a 30 second mpg video ( I used the Running wild with Bear Grylls intro as it had a lot of scene transitions and interlacing and fast motion):<br><br>0:01:48.652748817-out-deint-default-2MB-scale-.ts<br>0:00:55.908726491-out-deint-tomsmocomp-2MB-scale.ts<br>0:06:14.429371221-out-deint-greedyh-2MB-scale.ts<br>0:02:02.278393867-out-deint-greedyl-2MB-scale.ts<br>0:02:30.893909519-out-deint-vfir-2MB-scale.ts<br>0:01:48.811999772-out-deint-linear-2MB-scale.ts<br>0:02:20.386074013-out-deint-linearblend-2MB-scale.ts<br>0:01:46.741174898-out-deint-scalerbob-2MB-scale.ts<br>0:01:51.047711303-out-deint-weave-2MB-scale.ts<br>0:01:50.042523669-out-deint-weavetff-2MB-scale.ts<br>0:01:50.202601339-out-deint-weavebff-2MB-scale.ts<br>0:16:48.724998233-out-deint-yadif-2MB-scale.ts<br>0:01:37.221198306-out-avdeinterlace-2MB-scale.ts<br><br></div><div>The above times are for the gstreamer process only. I did not time the subsequent ffmpeg conversion of audio to aacplus. <br></div>tomsmocomp was fastest but with deinterlacing artifacts ( broken horizontal lines on fast motion ). avdeinterlace did not have the artifacts and was second fastest. I'll post the question of improving the transcode pipeline in gstreamer mailing list to see if further optimization can be done to speed it up. I'm particularly interested on maybe the possibility of skipping the ac3 decode and subsequent reencode prior to muxing. <br><br></div>Have Fun!<br><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 11, 2015 at 1:30 PM, Chris Isip <span dir="ltr"><<a href="mailto:cmisipster@gmail.com" target="_blank">cmisipster@gmail.com</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">I'm using kodi as a frontend. I think mythfrontend does not have support for the hardware mpeg2 and h264 decode yet. Kodi does have a weather addon.<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Aug 10, 2015 at 10:32 AM, George Nassas <span dir="ltr"><<a href="mailto:gnassas@mac.com" target="_blank">gnassas@mac.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div style="word-wrap:break-word">On Aug 8, 2015, at 8:31 PM, Chris Isip <<a href="mailto:cmisipster@gmail.com" target="_blank">cmisipster@gmail.com</a>> wrote:<br><div><blockquote type="cite"><br><div><span style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">Mythtv uses myisam exclusively</span></div></blockquote><br></div><div>Are you using the weather plugin for the frontend? I thought those tables insisted on using innodb for some reason but that could have changed.</div><span><font color="#888888"><br><div>- George</div></font></span></div><br></div></div>_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>