Correct MIME type for multipart MJPEG stream over http?

skerit picture skerit · Feb 20, 2013 · Viewed 8.6k times · Source

Chrome always throws a warning for my MJPEG stream:

Resource interpreted as Image but transferred with MIME type multipart/x-mixed-replace

Is there maybe a better MIME type to use that can fix this? Can I just use 'Image', even though it IS a multipart stream?

Answer

Ganesh picture Ganesh · May 15, 2014

From different resources across the web, the more commonly employed MIME type for M-JPEG i.e. Motion JPEG is video/x-motion-jpeg. Only GStreamer has a slightly different view as it employs video/x-jpeg as indicated in this table of video MIME types.

The web resources for MJPEG MIME types are:

  1. htmlquick

  2. sitepoint

  3. Harvard Site

  4. IBM Site