[mythtv] [mythtv-commits] Ticket #8656: Display video format in INFO OSD

Mark Kendall mark.kendall at gmail.com
Sun Aug 29 00:49:21 UTC 2010


On 29 August 2010 08:11, Robert McNamara <robert.mcnamara at gmail.com> wrote:
> On Sat, Aug 28, 2010 at 2:59 PM, Robert McNamara
> <robert.mcnamara at gmail.com> wrote:
>> On Sat, Aug 28, 2010 at 2:55 PM, Robert McNamara
>> <robert.mcnamara at gmail.com> wrote:
>>>>  (In [25889]) Better codec descriptions (than MPEG2) in the themed INFO
>>>>  OSD. Refs #8656.
>>>>
>>>>  Currently, MythPlayer::GetEncodingType() uses GetVideoCodecID(),
>>>>  which only iterates some of the FFmpeg codecs (plus, AVF's video_codec_id
>>>>  is often mapped to MPEG2 in ScanStream()). Basically, a more opaque way of
>>>>  getting codec descriptions was needed, and what is more opaque than a
>>>>  string?
>>>>
>>>>  Technically, this changes the library API, but since only libmythtv is
>>>>  calling the extra method, no version change - to save a full recompile.
>>>
>>> Hi Nigel,
>>>
>>> I think this may have broken the videocodec statetype?  MPEG-2 video
>>> is no longer matching in the statetype, so OSDs that use the statetype
>>> (Arclight) end up with nothing displayed when using the statetype.
>>>
>>> Robert
>>>
>>
>> N/m, should be fixed now (assuming you can put up with having the (IMO
>> more correct) dash in the codec names.
>>
>> Robert
>>
>
> Nope, only fixed for MPEG-2... but it breaks all the other codecs that
> were working nicely-- I think there is something wrong here.  By
> adding a text field, this appears to have broken the statetypes mark
> added that are automatically populated by mythcodecidid.cpp.

Can I ask that we leave this alone for now. I've got some changes to
go through but the main issue is that I don't think Nigel's last
commit was correct on a number of levels. The video info stuff was
very deliberately written as a state type (flexibility, translations,
simplicity) and was never intended as a text field. Once I've had a
chance to finish up, I'll check with Nigel that I haven't missed
anything and get it sorted.

regards

Mark


More information about the mythtv-dev mailing list