Opened 20 years ago

Last modified 11 years ago

#287 closed enhancement

XvMC decoding, MPEG2 stream recognized as MPEG1 — at Version 4

Reported by: jung@… Owned by: danielk
Priority: minor Milestone: 0.19
Component: mythtv Version: head
Severity: low Keywords: XvMC MPEG1 MPEG2
Cc: Ticket locked: no

Description (last modified by danielk)

Whenever a XvMC is used, it sometimes works and sometimes it does not, I have found that when the same DVB-C (ts) stream is recognized as MPEG1 the XvMC-hardware decoding does not work ( AVFD: Stream #0, has id 0x33 codec id MPEG1VIDEO, type Video at 0x0x82a95a0 ), but when the same stream is recognized as MPEG2 everything works.( AVFD: Stream #0, has id 0x215 codec id MPEG2VIDEO, type Video at 0x0x827e940 )

Debug output attached.

Change History (7)

comment:1 by danielk, 20 years ago

Description: modified (diff)
Owner: changed from Isaac Richards to danielk
Priority: criticalminor
Status: newassigned

comment:2 by danielk, 20 years ago

Milestone: 0.19
Severity: mediumlow
Type: defectenhancement

It looks like the transmitter is marking an MPEG-2 stream as a MPEG-1 stream, since libav can handle MPEG-1 in the MPEG-2 decoder it should be easy to work around this problem with the channel. I just want to check if this will break libmpeg first.

But you should notify the engineers at that broadcaster of their problem.

comment:3 by jung@…, 20 years ago

But why the stream is sometimes recognized as MPEG1 and sometimes MPEG2. This happens on all of my channels. That's a little wierd if it's a broadcasters problem..

by jung@…, 20 years ago

Attachment: debug-broken.txt added

debug txt-files, for easier reading

by jung@…, 20 years ago

Attachment: debug-worked.txt added

debug txt-files, for easier reading (working)

by danielk, 20 years ago

Attachment: mpeg1-hack.patch added

comment:4 by danielk, 20 years ago

Description: modified (diff)

Can you try the attached patch, it should fix the problem without breaking anything if I have diagnosed the problem correctly.

Note: See TracTickets for help on using tickets.