<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Mar 10, 2019, at 7:14 AM, James Linder <<a href="mailto:jam@tigger.ws" class="">jam@tigger.ws</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi<br class=""><br class="">since mythtranscode does not handle h264 I’ve been trying to use mythffmpeg.<br class="">The best I can gather via google is<br class=""><br class="">ffmpeg -i "test.avi" -c:v libx264 -crf 20 -c:a aac -strict -2 “test.mp4”<br class=""><br class=""></div></div></blockquote><div><br class=""></div>I use the following shell to cut mp4 ts files using the cutlist generated from editing in mythfrontend:</div><div><br class=""></div><div><a href="https://pastebin.com/SkMT2BRe" class="">https://pastebin.com/SkMT2BRe</a></div><div><br class=""></div><div>It uses the passwd info from /etc/mythtv/config.xml. there is a temp directory used that can be changed as well as the directory where the recordings live.</div><div><br class=""></div><div>I then create a user job using the following for the execute field:</div><div><br class=""></div><div>/usr/local/bin/ffcut.sh %DIR% %CHANID% %STARTTIMEUTC% >> /tmp/ffcut.log</div><div><br class=""></div><div>You will need to tweak the next line(line29 of the shell) depending on how you use mysql or mariadb:</div><div><br class=""></div><div>basename=`mysql --login-path=local -N "${dbname}" <<-EOF</div><div><br class=""></div><div><br class=""></div><div>Regards.</div><div><br class=""></div><div><br class=""><br class=""></div><br class=""></body></html>