[mythtv-users] Error Transcoding HD H264 v0.2 11156

Chris Pinkham cpinkham at bc2va.org
Wed Sep 13 15:05:38 UTC 2006


* On Wed Sep 13, 2006 at 10:53:24AM +0100, Andrew Lyon wrote:
> Using v0.2 11156 I can receive BBC HD test channel (Satellite) but am
> unable to play it in realtime, even with core 2 duo 2.4 ghz cpu, I
> believe that is becuase it is H264 with MBAFF, so I decided to try
> recording and transcoding it, recording worked fine (as did commercial
> flagging) but transcoding gave a error, I get the same error if I try
> to transcode from command line using mythtranscode:

> 2006-09-13 10:42:16.696 Transcode: Couldn't find profile for : H.264

Edit mythtv/programs/mythtranscode/transcode.cpp and search for
Transcode::GetProfile.  In that method, you'll see the following code:

        if (encodingType == "MPEG-2")
            result = profile.loadByGroup("MPEG2", "Transcoders");
        if (encodingType == "MPEG-4" || encodingType == "RTjpeg")
            result = profile.loadByGroup("RTjpeg/MPEG4",
                                         "Transcoders");

A quick fix is to modify the first 'if' statement so it appears as below.
This will make the transcoder use the same profile it would use for
'autodetect mpeg-2'.  Not a long-term fix, but something to get you working.

        if (encodingType == "MPEG-2" || encodingType == "H.264")
            result = profile.loadByGroup("MPEG2", "Transcoders");
        if (encodingType == "MPEG-4" || encodingType == "RTjpeg")
            result = profile.loadByGroup("RTjpeg/MPEG4",
                                         "Transcoders");

We should add a separate set of profiles for H.264 at some point.

--
Chris


More information about the mythtv-users mailing list