<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Nov 17, 2015 at 5:39 PM, Karl Newman <span dir="ltr"><<a href="mailto:newmank1@asme.org" target="_blank">newmank1@asme.org</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"><div class="gmail_extra"><div><div><div class="gmail_quote">On Tue, Nov 17, 2015 at 12:35 PM, Phil Bridges <span dir="ltr"><<a href="mailto:gravityhammer@gmail.com" target="_blank">gravityhammer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote"><div><div>On Tue, Nov 17, 2015 at 3:31 PM, John P Poet <span dir="ltr"><<a href="mailto:jppoet@gmail.com" target="_blank">jppoet@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div dir="ltr"><div><div>On Tue, Nov 17, 2015 at 12:41 PM MythTV <<a href="mailto:noreply@mythtv.org" target="_blank">noreply@mythtv.org</a>> wrote:<br></div></div><div class="gmail_quote"><div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">#12546: Captions not recognized in MP4 recordings<br>
----------------------------------+-----------------------------<br>
 Reporter:  gravityhammer@…       |          Owner:<br>
     Type:  Bug Report - General  |         Status:  new<br>
 Priority:  minor                 |      Milestone:  unknown<br>
Component:  MythTV - General      |        Version:  Unspecified<br>
 Severity:  medium                |     Resolution:<br>
 Keywords:  MP4 captions          |  Ticket locked:  0<br>
----------------------------------+-----------------------------<br>
<br>
Comment (by Phil Bridges <gravityhammer@…>):<br>
<br>
 OK - stupid question.  How do I apply this patch?<br>
<br>
 I put the file in /usr/bin<br>
 ran  patch -p0 < h264-captions2.patch<br>
<br>
 I get:<br>
 can't find file to patch at input line 11<br>
 Perhaps you used the wrong -p or --strip option?<br>
 The text leading up to this was:<br>
 --------------------------<br>
 |commit 4dd789efdce70c969b283642f1a484fd585e183b<br>
 |Author: rkrishna1 <<a href="mailto:sun.radha@gmail.com" target="_blank">sun.radha@gmail.com</a>><br>
 |Date:   Wed Nov 6 21:04:26 2013 +0530<br>
 |<br>
 |    Add H264 Caption extraction<br>
 |<br>
 |diff --git a/mythtv/external/FFmpeg/libavcodec/h264.c<br>
 b/mythtv/external/FFmpeg/libavcodec/h264.c<br>
 |index 8c0544a..f464364 100644<br>
 |--- a/mythtv/external/FFmpeg/libavcodec/h264.c<br>
 |+++ b/mythtv/external/FFmpeg/libavcodec/h264.c<br>
 --------------------------<br>
 File to patch:<br></blockquote></div></div><div><br>That patch applies to the source code.  You would need to build MythTV from source, with that patch applied, and then run it.<br><br>You can grab the source like:<br><br>$ mkdir ~/src && cd ~/src<br>$ git clone -b fixes/0.27 git://<a href="http://github.com/MythTV/mythtv.git" target="_blank">github.com/MythTV/mythtv.git</a><br>$ git clone -b fixes/0.27 git://<a href="http://github.com/MythTV/mythweb.git" target="_blank">github.com/MythTV/mythweb.git</a>

<br><br>Then patch it:<br>$ cd ~/src/mythtv<br>$ patch -p1 < /path/to/h264-captions.patch<br><br>Build it:<br>$ cd ~/src/mythtv/mythtv<br>$ ./configure<br>$ make<br><br>Install it:<br>$ sudo make install<br><br>That will (by default) install it all in /usr/local.  If you have installed from packages, then that version is probably installed in /usr.  To avoid conflicts you may want to uninstall the packages first.  You should also backup your database before running the new version just in case something goes wrong.<br><br>There are much more detailed instructions on building from source here:
<a href="https://www.mythtv.org/wiki/MythTV-HOWTO_-_0.27" target="_blank">https://www.mythtv.org/wiki/MythTV-HOWTO_-_0.27</a><br><a href="https://www.mythtv.org/wiki/User_Manual:Initial_Installation" target="_blank">https://www.mythtv.org/wiki/User_Manual:Initial_Installation</a><br><br></div><div>If you have never build from source before, there are likely a bunch of prerequisites that you will need.  Those links should help you with those.  If you need further help please ask on the mythtv-users mailing list, at the MythTV forum, or on freenode in the mythtv-users channel.<span><font color="#888888"><br><br></font></span></div><span><font color="#888888"><div>John<br></div></font></span></div></div></div></div> </blockquote></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"></blockquote></div><div><br></div>Thanks, John.  I'm running the ebuild from Gentoo right now, so I'll need to look at building from source.<div><br></div><div>Thanks again!</div></div>
</blockquote><div> </div></div></div></div>Fixed top posting. The convention on this mailing list is bottom posting, so please post your response below the text you're replying to.<br><br>You're in luck. Gentoo already builds from source by default, and it's 
super easy to add in patches. You just need to create a directory 
/etc/portage/patches/media-tv/mythtv/ and then drop your patches in there
 (they need to be named with a *.patch extension). Then emerge mythtv. The mythtv ebuild will 
pick up user patches automatically after unpacking the source (it will 
show a confirmation message as it is applying your patch).<br><br></div><div class="gmail_extra">Sincerely,<br><br></div><div class="gmail_extra">Karl<br></div></div>
<br>_______________________________________________<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><div class="gmail_extra">Looks like this works!  Thank you!</div><div class="gmail_extra"><br></div><div class="gmail_extra">What should I do with the patch if there is a Gentoo MythTV update?</div></div>