SMJPEG codec and extension

SMJPEG is a simple video codec first developped by Loki Software and supported by FFMpeg, VLC and by Antiryad Gx as an interchange video format.
This describe the file format and extensions.

All numbers are in big endian format.

Main header

  • SMJPEG (6 bytes)
  • Version (=0) (4 bytes)
  • Video duration in milliseconds (4 bytes)

Headers

Text header

[Extended by FFMpeg]

  • _TXT fourcc (4 bytes)
  • Datas size (4 bytes)
  • Text data

Sound header

  • _SND fourcc (4 bytes)
  • Datas size (4 bytes)
  • Samplerate (2 bytes)
  • Bits per sample (1 bytes)
  • Channels (1 bytes)
  • Format fourcc: APCM or NONE (4 bytes)

Video header

  • _VID fourcc (4 bytes)
  • Datas size (4 bytes)
  • Total frames (4 bytes)
  • Width (2 bytes)
  • Height (2 bytes)
  • Format fourcc (4 bytes)

End header

  • HEND fourcc (4 bytes)

Datas chunk

Sound chunk

  • sndD fourcc (4 bytes)
  • Time in milliseconds (4 bytes)
  • Datas size (4 bytes)
  • Datas

Video chunk

  • vidD fourcc (4 bytes)
  • Time in milliseconds (4 bytes)
  • Datas size (4 bytes)
  • Datas

End chunk

  • DONE fourcc (4 bytes)
smjpeg.txt · Last modified: 2016/06/29 14:36 by pyro
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki