No picture on xvid/mpeg4 video with hardware decoding

I suspect this may be a known issue, but hopefully there’s no harm in checking.

I’m playing an old .avi file with MediaInfo as follows:

General
Complete name                            : Jam s01e01.avi
Format                                   : AVI
Format/Info                              : Audio Video Interleave
File size                                : 302 MiB
Duration                                 : 24 min 46 s
Overall bit rate                         : 1 705 kb/s
Writing application                      : VirtualDubMod 1.5.4.1 (build 2178/release)
Writing library                          : VirtualDubMod build 2178/release

Video
ID                                       : 0
Format                                   : MPEG-4 Visual
Format profile                           : Advanced Simple@L5
Format settings                          : BVOP1 / Custom Matrix
Format settings, BVOP                    : 1
Format settings, QPel                    : No
Format settings, GMC                     : No warppoints
Format settings, Matrix                  : Custom
Muxing mode                              : Packed bitstream
Codec ID                                 : XVID
Codec ID/Hint                            : XviD
Duration                                 : 24 min 46 s
Bit rate                                 : 1 570 kb/s
Width                                    : 624 pixels
Height                                   : 464 pixels
Display aspect ratio                     : 4:3
Frame rate                               : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.217
Stream size                              : 278 MiB (92%)
Writing library                          : XviD 67

Audio
ID                                       : 1
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 3
Format settings                          : Joint stereo / MS Stereo
Codec ID                                 : 55
Codec ID/Hint                            : MP3
Duration                                 : 24 min 46 s
Bit rate mode                            : Constant
Bit rate                                 : 128 kb/s
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 kHz
Frame rate                               : 41.667 FPS (1152 SPF)
Compression mode                         : Lossy
Stream size                              : 22.7 MiB (8%)
Alignment                                : Aligned on interleaves
Interleave, duration                     : 80  ms (2.00 video frames)
Interleave, preload duration             : 504  ms
Writing library                          : LAME3.98r
Encoding settings                        : -m j -V 4 -q 2 -lowpass 17 -b 128

Decoding in hardware, there’s no picture: the audio plays, and I can see the UI when I bring it up, but otherwise the screen is just black. Switching to software decoding makes it play okay.

If this sounds like a known issue, fine; if it doesn’t (and you’re interested) let me know and I’ll get you some debug logs.

It’s XVid – so no plans to look in to that.

Just change HW acceleration to HD and Up.

It could be because it’s an old packed bitstream avi. We used to have to unpack them via virttualdub years ago to get video to display. Mp3freeze a virttualdub mod also did it from memory.

Old AVIs tend to have bad PTS values and can trip up hardware decoders. XVid has its own caveats.
Content encoded like this is SD and can be played with software easily, so this is the best compromise.

1 Like