<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hey there,<div><br></div><div>I’m trying to encode a sequence of images into Pro Res 422 in the MOV container.</div><div>I already had a look at the example: muxing.c and it looks promising.</div><div><br></div><div>However, I can’t figure out how to tell the encoder to use ProRes instead of H.264 for MOV.</div><div>Here’s what I’ve tried (mostly unaltered sample …):</div><div><span style="color: rgb(112, 61, 170); font-family: Menlo;"><br></span></div><div><div style="margin: 0px; font-family: Menlo; color: rgb(112, 61, 170);">AVOutputFormat<span style="color: #000000">* pOutputFmt;</span></div><div style="margin: 0px; font-family: Menlo; color: rgb(112, 61, 170);">AVFormatContext<span style="color: #000000">* pFormatCtx;</span></div><div style="margin: 0px; font-family: Menlo;"><span style="color: #703daa">AVStream</span>* pVideoStream;</div><div style="margin: 0px; font-family: Menlo;"><span style="color: #703daa">AVCodec</span>* pVideoCodec;</div><div style="margin: 0px; font-family: Menlo; min-height: 14px;"><br></div><div style="margin: 0px; font-family: Menlo; color: rgb(0, 132, 0);">/* Initialize libavcodec, and register all codecs and formats. */</div><div style="margin: 0px; font-family: Menlo; color: rgb(61, 29, 129);">av_register_all<span style="color: #000000">();</span></div><div style="margin: 0px; font-family: Menlo; min-height: 14px;"><br></div><div style="margin: 0px; font-family: Menlo; color: rgb(0, 132, 0);">/* allocate the output media context */</div><div style="margin: 0px; font-family: Menlo; color: rgb(61, 29, 129);">avformat_alloc_output_context2<span style="color: #000000">(&pFormatCtx, </span><span style="color: #bb2ca2">NULL</span><span style="color: #000000">, </span><span style="color: #d12f1b">"mov"</span><span style="color: #000000">, filename.</span>c_str<span style="color: #000000">());</span></div></div><div style="margin: 0px; font-family: Menlo; color: rgb(61, 29, 129);"><br></div><div>From my understanding, the second parameter (NULL in my code) is the output format that is to be used and I assume that I can define what I want my output format to be with that parameter.</div><div>However, AVOutputFormat is a struct with a bunch of fields and I’m not sure if manually setting all of them is the right way.</div><div>Also, I’d like to have the option to write different Pro Res profiles and I couldn’t find an option for that so far.</div><div><br></div><div>Maybe someone can point me in the right direction/resource.</div><div>Thanks!</div><div><br></div><div>Flo</div><div><br></div></body></html>