TransWikia.com

How do I export a movie in AVI or Mov without altering the color and resolution?

Mathematica Asked by Chris Django on November 30, 2020

Lossless movie export. How do I do that ?

Or how do I export such that the color doesn’t change. AVI makes changes the color and mov changes resolution and color.

If you export a still image (in BMP or PDF for example) then the color appears exactly the same as in mathematica. I would like to export a list of these still images in a movie file (mov, AVI, etc format) that has these same colors as the still or same colors as they appear, while working in mathematica

I would like to import my animated movies into Final cut pro. I have converters for that. It is for my science youtube channel so it is really important to me.

Any solution that can make me export movies from mathematica with the right colour in high resolution is appreciated. I do not care about the file size at this point.

2 Answers

The changes of colors go from the built-in algorithms of used video codec. The AVI or MOV are just container formats and do not change anything by itself. So, you can try to make uncompressed video. Of course, the file-size will be impressive for durable animation.

The simple way to make a "true color" video is making GIF animation. The color palette of GIF can be defined exactly.

Correct answer by Rom38 on November 30, 2020

GIF can store only 256 different colors. You can use animated PNG or multi-frame TIFF to export "Bit16" images:

In[1]:= frames = LinearGradientImage[#, 100, "Bit16"] & /@ {Red, Green, Blue};

In[2]:= pngFrames = ImportString[ExportString[frames, "PNG"]];

In[3]:= tiffFrames = ImportString[ExportString[frames, "TIFF"]];

In[4]:= ListableImageData[frames_List] := Map[ImageData[#, Automatic] &, frames]

In[5]:= ListableImageData[frames] === ListableImageData[pngFrames] ===
  ListableImageData[tiffFrames]

Out[5]= True

Answered by Piotr Wendykier on November 30, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP