mjpeg icon indicating copy to clipboard operation
mjpeg copied to clipboard

how big images can be?

Open adriantabirta opened this issue 3 years ago • 3 comments

adriantabirta avatar Jul 26 '21 16:07 adriantabirta

The following limit applies to individual frames:

  • width is int32 (so it must be <= 2147483647)
  • height is int32 (so it must be <= 2147483647)
  • mjpeg file limit is 4GB, so obviously a single frame also cannot be bigger than 4GB

icza avatar Jul 26 '21 19:07 icza

Good job, How could I create a video stream from images? Is this even possible?

Pe 26 iul. 2021, la 22:54, András Belicza @.***> a scris:

 The following limit applies to individual frames:

width is int32 height is int32 mjpeg file limit is 4GB, so obviously a single frame also cannot be bigger than 4GB — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

adriantabirta avatar Jul 26 '21 20:07 adriantabirta

The MJPEG format contains header data which can be calculated only when all the frames are added, so you should choose another format for that, or just simply transfer the individual JPEG frames.

icza avatar Jul 26 '21 20:07 icza