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

John P Poet jppoet at gmail.com
Tue Nov 17 20:31:11 UTC 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20151117/c2af9221/attachment.html>


More information about the mythtv-users mailing list