Skip to content

M-JPEG/RTP streaming player to display interlaced video correctly upon rfc2435 Type-specific field

The source video is interlaced, i.e 2 fields per frame. The RTP/UDP M-JPEG streaming server encodes each field into a separate picture and sends it out separately (with its own TimeStamp). The Type-specific field in JPEG header is either 1 or 2 depending on even/odd field according to RFC2435.

VLC player receives and decodes the field picture correctly. But it displays each field picture separately as if it is a progressive scan whole frame picture (treated as Type-specific is 0). It does NOT combine field pictures into a frame picture. The height of video is cut to half. The expected behavior is it will combine even field picture with odd field picture into a frame picture and display frame picture. As a comparison, Apple Quicktime player combines the filed pictures into frame picture and display the combined frame picture correctly.

Tested version is 2.0.1

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information