<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:873662754;
        mso-list-type:hybrid;
        mso-list-template-ids:-65106660 736910016 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-start-at:2;
        mso-level-number-format:bullet;
        mso-level-text:\F0D8;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;
        mso-fareast-font-family:Calibri;
        mso-bidi-font-family:"Times New Roman";}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Hello,<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I have a series of png images. I read them, convert each of them to RGB24, then fill a frame with the data to create a .mov quicktime file. It all works.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Each png image is about 200K in size. Each image is 1536x856 pixels. This means that uncompressed, each image is about 4MB.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>My resulting mov file is about 10MB. Clearly, some compression took place. However, if I use the command line ffmpeg to generate the file using<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>ffmpeg -framerate 10 -i image%02d.png -c:v qtrle output.mov<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>then the resulting file is only 1.3Mb. Below is the output from the ffmpeg command. <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>My question: how do I configure libav through the API to also generate such a small, good-quality file?<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Thanks.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>-Arthur<o:p></o:p></p><p class=MsoNormal>ffmpeg version 3.0 Copyright (c) 2000-2016 the FFmpeg developers<o:p></o:p></p><p class=MsoNormal>  built with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)<o:p></o:p></p><p class=MsoNormal>  configuration: --enable-libopenh264<o:p></o:p></p><p class=MsoNormal>  libavutil      55. 17.103 / 55. 17.103<o:p></o:p></p><p class=MsoNormal>  libavcodec     57. 24.102 / 57. 24.102<o:p></o:p></p><p class=MsoNormal>  libavformat    57. 25.100 / 57. 25.100<o:p></o:p></p><p class=MsoNormal>  libavdevice    57.  0.101 / 57.  0.101<o:p></o:p></p><p class=MsoNormal>  libavfilter     6. 31.100 /  6. 31.100<o:p></o:p></p><p class=MsoNormal>  libswscale      4.  0.100 /  4.  0.100<o:p></o:p></p><p class=MsoNormal>  libswresample   2.  0.101 /  2.  0.101<o:p></o:p></p><p class=MsoNormal>Input #0, image2, from 'image%02d.png':<o:p></o:p></p><p class=MsoNormal>  Duration: 00:00:01.80, start: 0.000000, bitrate: N/A<o:p></o:p></p><p class=MsoNormal>    Stream #0:0: Video: png, rgb24(pc), 1536x856, 10 fps, 10 tbr, 10 tbn, 10 tbc<o:p></o:p></p><p class=MsoNormal>Output #0, mov, to 'output.mov':<o:p></o:p></p><p class=MsoNormal>  Metadata:<o:p></o:p></p><p class=MsoNormal>    encoder         : Lavf57.25.100<o:p></o:p></p><p class=MsoNormal>    Stream #0:0: Video: qtrle (rle  / 0x20656C72), rgb24, 1536x856, q=2-31, 200 kb/s, 10 fps, 10240 tbn, 10 tbc<o:p></o:p></p><p class=MsoNormal>    Metadata:<o:p></o:p></p><p class=MsoNormal>      encoder         : Lavc57.24.102 qtrle<o:p></o:p></p><p class=MsoNormal>Stream mapping:<o:p></o:p></p><p class=MsoNormal>  Stream #0:0 -> #0:0 (png (native) -> qtrle (native))<o:p></o:p></p><p class=MsoNormal>Press [q] to stop, [?] for help<o:p></o:p></p><p class=MsoNormal>frame=   18 fps= 17 q=-0.0 Lsize=    1276kB time=00:00:01.80 bitrate=5808.1kbits/s speed=1.72x<o:p></o:p></p><p class=MsoNormal>video:1275kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.064166%<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><o:p> </o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>