<div dir="ltr">Tangentially related - I have a custom set of python scripts I wrote (am still writing?) that I use to "do the right thing".  My goal was to go into Edit recording, edit / save cutlist (or not) and then start the mythjob, all from the mythfrontend and end up with a cut H.264 output file eventually no matter the source recording.  My scripts do the following:<div><ul><li>Convert to m4v or mkv container with H.264/AVC video, de-interlaced if necessary.</li><li>Keep closed caption/subtitle tracks as selectable subtitles in output (including separate .srt files created using the HD-PVR hd-captions-* scripts on the MythTV Wiki)</li><li>Optionally keep all audio languages (I like the descriptive audio tracks on some PBS shows such as <i>American Experience</i>). Stereo mp3/mp2 audio tracks are converted to AAC, 5.1 AC3 are preserved with an accompanying stereo AAC. If not all audio languages are desired, there's is an option to configure the desired language (depends on this info being in the source file, of course).</li><li>Attempts to do some "normalizing" passes with ffmpeg/avconv and ProjectX as needed.  For me, ProjectX is usually required on OTA feeds as there are almost always blips since I am distant from the towers.  I use ffmpeg/avconv/mythffmpeg on HD-PVR recordings.  This was to try to work around the "one buffer empty...." issues with mythtranscode (which may not exist in 0.28, I wrote these for 0.27 where it did). </li><li>Options configured in an rc file placed in the user mythbackend runs to configure some of the optional things above.</li><li>Bake in the MythTV Title into the output file's metadata, name the output file according to title - season/episode - subtitle (whatever parts of that exists for the particular recording).</li><li>Use cutlist if it exists or not.</li><li>Can be run as a Myth user job or directly, with the option to override many options when running manually.</li><li>Logging.</li></ul><div>I wrote it partially out of need, partially out of a desire to work on my python skills (including using MythTV python bindings). If there's any interest (there are already lots of options), I can see about making it ready for other people's eyes and open-sourcing it.</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 20, 2017 at 4:27 AM, Jim Abernathy <span dir="ltr"><<a href="mailto:jfabernathy@outlook.com" target="_blank">jfabernathy@outlook.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div bgcolor="#FFFFFF" text="#000000"><span class="">
<p><br>
</p>
<br>
<div class="m_-3012434404655529569moz-cite-prefix">On 01/19/2017 09:43 PM, Ben wrote:<br>
</div>
<blockquote type="cite">
<pre>hey all,

Now that's I've switched up to 0.28 and am back on OTA having cut the comcast cord, I'd like to start archiving movies I record on some of the "flash-back" stations.

 Don't laugh -  but I've been a pretty light user of some of the really cool features of Myth over the last 17years I've used it -- BUT....

here we go...

So -- after reading the MythTV Wiki on user jobs and looking at some of the scripts people have written...

I thought I'd get some feedback as to any additional things I could do or make sure to avoid when setting up these user jobs.

Can auto-cut be trusted or should user review of commercial marks be a "must do"?

Can transcode always be trusted or, again, should review of a copy be done?

Also, any particular transcode settings that are best for HD vs SD (a lot of the classic movies are being shown in SD, but I also like keeping my episodes of NOVA and other neato PBS stuff in HD)

There's reading the Wiki -- and then there's "in practice" -- I'd like to hear some opinions.

Thanks a bunch,

 -Ben

</pre>
</blockquote></span>
I do exactly what you described you want to do.  You can't trust the commercial breaks completely but they are a big help.  I have learned to use mythfrontend to edit and check the commercials quickly and adjust them appropriately.
<br>
<br>
<div id="m_-3012434404655529569ember2151" style="font-size:19px;font-family:Arial" class="m_-3012434404655529569ember-view m_-3012434404655529569dh-page-text">
I use a script within mythbackend as a job to remove commercials </div>
<div id="m_-3012434404655529569ember2153" style="font-size:19px;font-family:Arial" class="m_-3012434404655529569ember-view m_-3012434404655529569dh-page-text">
that I marked with a cutlist manually and compress the recording by </div>
<div id="m_-3012434404655529569ember2155" style="font-size:19px;font-family:Arial" class="m_-3012434404655529569ember-view m_-3012434404655529569dh-page-text">
converting it from the original MPEG2 to m4v using handbrake. The </div>
<div id="m_-3012434404655529569ember2157" style="font-size:19px;font-family:Arial" class="m_-3012434404655529569ember-view m_-3012434404655529569dh-page-text">
converted file is move to my NAS and the original is not modified. All this is </div>
<div id="m_-3012434404655529569ember2159" style="font-size:19px;font-family:Arial" class="m_-3012434404655529569ember-view m_-3012434404655529569dh-page-text">
handled by sendTVtonas.sh within mythtv. The script has all the install </div>
<div id="m_-3012434404655529569ember2161" style="font-size:19px;font-family:Arial" class="m_-3012434404655529569ember-view m_-3012434404655529569dh-page-text">
information in comments. </div>
<div id="m_-3012434404655529569ember2163" style="font-size:16px;font-family:Arial" class="m_-3012434404655529569ember-view m_-3012434404655529569dh-page-text">
</div>
<div id="m_-3012434404655529569ember2165" style="font-size:19px;font-family:Arial" class="m_-3012434404655529569ember-view m_-3012434404655529569dh-page-text">
You get the script from the first post in the following topic in the mythtv </div>
<div id="m_-3012434404655529569ember2167" style="font-size:19px;font-family:Arial" class="m_-3012434404655529569ember-view m_-3012434404655529569dh-page-text">
forum: </div>
<div id="m_-3012434404655529569ember2169" style="font-size:19px;font-family:Arial" class="m_-3012434404655529569ember-view m_-3012434404655529569dh-page-text">
</div>
<div id="m_-3012434404655529569ember2171" style="font-size:19px;font-family:Arial" class="m_-3012434404655529569ember-view m_-3012434404655529569dh-page-text">
Script to export Mythtv recordings to a folder or NAS<br>
<br>
</div>
<div id="m_-3012434404655529569ember2173" style="font-size:19px;font-family:Arial" class="m_-3012434404655529569ember-view m_-3012434404655529569dh-page-text">
</div>
<a class="m_-3012434404655529569moz-txt-link-freetext" href="https://forum.mythtv.org/viewtopic.php?f=2&t=1261" target="_blank">https://forum.mythtv.org/<wbr>viewtopic.php?f=2&t=1261</a><br>
<br>
Jim A<span class=""><br>
<br>
<blockquote type="cite">
<pre>______________________________<wbr>_________________
mythtv-users mailing list
<a class="m_-3012434404655529569moz-txt-link-abbreviated" href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a>
<a class="m_-3012434404655529569moz-txt-link-freetext" href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://lists.mythtv.org/<wbr>mailman/listinfo/mythtv-users</a>
<a class="m_-3012434404655529569moz-txt-link-freetext" href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/<wbr>Mailing_List_etiquette</a>
MythTV Forums: <a class="m_-3012434404655529569moz-txt-link-freetext" href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a>
</pre>
</blockquote>
<br>
</span></div>

<br>______________________________<wbr>_________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/<wbr>mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/<wbr>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><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr"><span style="font-size:12.8px">James Purl - <i><a href="mailto:jamesp@mzrfzr.com" target="_blank">jamesp@mzrfzr.com</a></i></span><br></div><div dir="ltr"><br></div></div></div></div></div></div></div></div></div>
</div>