<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, May 12, 2015 at 4:53 PM, 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"><span class="">On 12/05/15 21:19, Michael Stucky wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
On Tue, May 12, 2015 at 2:10 PM, Michael Stucky <<a href="mailto:mike@stucky.us" target="_blank">mike@stucky.us</a><br></span><span class="">
<mailto:<a href="mailto:mike@stucky.us" target="_blank">mike@stucky.us</a>>> wrote:<br>
<br>
    On Tue, May 12, 2015 at 11:02 AM, Jay Foster<br></span><span class="">
    <<a href="mailto:jayf0ster@roadrunner.com" target="_blank">jayf0ster@roadrunner.com</a> <mailto:<a href="mailto:jayf0ster@roadrunner.com" target="_blank">jayf0ster@roadrunner.com</a>>> wrote:<br>
<br>
        On 5/11/2015 6:49 PM, Michael Stucky wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<br>
<br>
        On May 11, 2015 4:17 PM, "Jay Foster"<br></span>
        <<a href="mailto:jayf0ster@roadrunner.com" target="_blank">jayf0ster@roadrunner.com</a> <mailto:<a href="mailto:jayf0ster@roadrunner.com" target="_blank">jayf0ster@roadrunner.com</a>>><div><div class="h5"><br>
        wrote:<br>
        ><br>
        > On 5/11/2015 12:46 PM, Michael Stucky wrote:<br>
        >><br>
        <deletia><br>
        >> Sorry for the delay, it was a busy weekend+... I am not an<br>
        ffmpeg expert so all the syntax came either from the original<br>
        shell script or searches for a better way to deinterlace. But<br>
        I have done some additional searching and testing have updated<br>
        my script on the wiki accordingly.<br>
        >><br>
        >> "yadif=1" has become "yadif=0:-1:1" (mode 0 = one frame out<br>
        for one frame in, parity -1 = autodetect, and deint 1 = only<br>
        deinterlace frames marked as interlaced). "sws_flags spline"<br>
        is removed (only applies when scaling content?). "-r<br>
        60000/1001" is removed (this actually caused every frame to be<br>
        duplicated for interlaced content). "threads 0" is removed<br>
        (the h264 encoder uses all available threads by default).<br>
        "-c:a copy" replaced with "-strict -2" to use the internal AAC<br>
        encoder.<br>
        >><br>
        >> This works and produces good quality output for all my<br>
        content, 1080i, 720p, and 480i all OTA to HDHomerun tuners.<br>
        >><br>
        >> Mike<br>
        >><br>
        >><br>
        >><br>
        ><br>
        > I took a look at the script on the wiki and had a question.<br>
        Does this break commercial skipping?  The script does not<br>
        appear to reschedule a commflag job after the transcoding.<br>
        > Jay<br>
        ><br>
        ><br>
<br>
        The script was designed to prepare a recording for export to<br>
        the Video Library where it can be played by different<br>
        players/devices (vlc, mplayer, android, ios, etc.). As such<br>
        commercial skipping wasn't a consideration. The script will<br>
        remove a cutlist if it exists (so leaders/trailers/commercials<br>
        should all be automatically removed before the transcoding<br>
        takes place).<br>
<br>
        If it is helpful, please take the script and modify it to do<br>
        what you want it to and create a new wiki page for your script<br>
        so we all can benefit from it!<br>
<br>
        Mike<br>
<br>
<br>
<br>
        _______________________________________________<br>
        mythtv-users mailing list<br></div></div>
        <a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a>  <mailto:<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a>><div><div class="h5"><br>
        <a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
        <a href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
        MythTV Forums:<a href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a><br>
</div></div></blockquote><div><div class="h5">
        My thinking was that this script was meant as a user job to be<br>
        run after a TV recording is made to convert the MPEG2 recording<br>
        to H.264 for the purpose of viewing these recordings on a low<br>
        powered device like an Android tablet.  My concern here was that<br>
        it would auto remove commercials based on commflagging (not<br>
        good, since the commflagging is not good enough to just auto<br>
        cut) or that it would not preserve the commflagging (so there<br>
        would be no commercial skipping watching the transcoded<br>
        recording).  If this was not the purpose of the script then<br>
        never mind.<br>
<br>
        How does one watch recordings on a tablet then?  I tried the<br>
        android Mythtv frontend and Mythtv viewer apps, but could not<br>
        get them to play any recordings.  I came to the conclusion that<br>
        all recordings had to be pre-transcoded first, which is what I<br>
        thought this script was all about.<br>
<br>
        Jay<br>
<br>
<br>
    I guess I don't understand what you are trying to accomplish. I<br>
    don't use commflagging for all of the reasons discussed in this<br>
    forum many times before. Commflagging is completely disabled on my<br>
    MythTV system. I manually edit my recordings (yes it is time<br>
    consuming but at least I know everything is correctly flagged) which<br>
    creates a "cutlist". My script does two separate things, first it<br>
    uses "mythtranscode" to remove everything in the "cutlist". With all<br>
    of the content that I don't want already removed<br>
    (leaders/trailers/commercials/etc.) the script now uses "ffmpeg" to<br>
    transcode what remains from "mpeg2" to "h264". The resulting video<br>
    (it is technically no longer a MythTV recording) contains only the<br>
    show/movie I want and it plays on all my devices and on all of my<br>
    players (MythTV frontend, vlc, mplayer, android tablet, Amazon<br>
    FireTV stick, etc.)<br>
<br>
    Mike<br>
<br>
<br>
I should have been more clear about how the "cutlist" is created. I use<br>
my MythTV Frontend to manually edit my recordings which creates a<br>
"cutlist"...<br>
</div></div></blockquote>
<br>
I've been a little confused here by your statement that you 'remove the cutlist'; at first (without looking again at your script) I read it as the equivalent of 'mythutil --clearcutlist' but it's now clear that you are using it in the sense of 'mythtranscode --honorcutlist' to actually remove the sections that you have marked with the 'cutlist editor'.<br>
<br>
Thanks for making your script available;  I've been intending, for a long time, to modify mine in the light of it, but somehow it still hasn't happened :-)<span class="HOEnZb"><font color="#888888"><br>
<br>
John</font></span><div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div><br></div><div>Sorry for the confusion, I know what I mean to say but I have trouble verbalizing it clearly 8-) </div></div></div></div>