[mythtv-users] Ticket #12546: Captions not recognized in MP4 recordings

Phil Bridges gravityhammer at gmail.com
Wed Nov 18 00:11:02 UTC 2015


On Tue, Nov 17, 2015 at 5:39 PM, Karl Newman <newmank1 at asme.org> wrote:

> On Tue, Nov 17, 2015 at 12:35 PM, Phil Bridges <gravityhammer at gmail.com>
> wrote:
>
>> On Tue, Nov 17, 2015 at 3:31 PM, John P Poet <jppoet at gmail.com> wrote:
>>
>>> On Tue, Nov 17, 2015 at 12:41 PM MythTV <noreply at mythtv.org> wrote:
>>>
>>>> #12546: Captions not recognized in MP4 recordings
>>>> ----------------------------------+-----------------------------
>>>>  Reporter:  gravityhammer@…       |          Owner:
>>>>      Type:  Bug Report - General  |         Status:  new
>>>>  Priority:  minor                 |      Milestone:  unknown
>>>> Component:  MythTV - General      |        Version:  Unspecified
>>>>  Severity:  medium                |     Resolution:
>>>>  Keywords:  MP4 captions          |  Ticket locked:  0
>>>> ----------------------------------+-----------------------------
>>>>
>>>> Comment (by Phil Bridges <gravityhammer@…>):
>>>>
>>>>  OK - stupid question.  How do I apply this patch?
>>>>
>>>>  I put the file in /usr/bin
>>>>  ran  patch -p0 < h264-captions2.patch
>>>>
>>>>  I get:
>>>>  can't find file to patch at input line 11
>>>>  Perhaps you used the wrong -p or --strip option?
>>>>  The text leading up to this was:
>>>>  --------------------------
>>>>  |commit 4dd789efdce70c969b283642f1a484fd585e183b
>>>>  |Author: rkrishna1 <sun.radha at gmail.com>
>>>>  |Date:   Wed Nov 6 21:04:26 2013 +0530
>>>>  |
>>>>  |    Add H264 Caption extraction
>>>>  |
>>>>  |diff --git a/mythtv/external/FFmpeg/libavcodec/h264.c
>>>>  b/mythtv/external/FFmpeg/libavcodec/h264.c
>>>>  |index 8c0544a..f464364 100644
>>>>  |--- a/mythtv/external/FFmpeg/libavcodec/h264.c
>>>>  |+++ b/mythtv/external/FFmpeg/libavcodec/h264.c
>>>>  --------------------------
>>>>  File to patch:
>>>>
>>>
>>> That patch applies to the source code. You would need to build MythTV
>>> from source, with that patch applied, and then run it.
>>>
>>> You can grab the source like:
>>>
>>> $ mkdir ~/src && cd ~/src
>>> $ git clone -b fixes/0.27 git://github.com/MythTV/mythtv.git
>>> $ git clone -b fixes/0.27 git://github.com/MythTV/mythweb.git
>>>
>>> Then patch it:
>>> $ cd ~/src/mythtv
>>> $ patch -p1 < /path/to/h264-captions.patch
>>>
>>> Build it:
>>> $ cd ~/src/mythtv/mythtv
>>> $ ./configure
>>> $ make
>>>
>>> Install it:
>>> $ sudo make install
>>>
>>> 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.
>>>
>>> There are much more detailed instructions on building from source here:
>>> https://www.mythtv.org/wiki/MythTV-HOWTO_-_0.27
>>> https://www.mythtv.org/wiki/User_Manual:Initial_Installation
>>>
>>> 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.
>>>
>>> John
>>>
>>
>>
>> Thanks, John.  I'm running the ebuild from Gentoo right now, so I'll need
>> to look at building from source.
>>
>> Thanks again!
>>
>
> Fixed top posting. The convention on this mailing list is bottom posting,
> so please post your response below the text you're replying to.
>
> 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).
>
> Sincerely,
>
> Karl
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
>
Looks like this works!  Thank you!

What should I do with the patch if there is a Gentoo MythTV update?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20151117/34cf1ede/attachment.html>


More information about the mythtv-users mailing list