<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;">On 17 May 2014, at 23:43, Gonzalo Garramuno <<a href="mailto:ggarra13@gmail.com">ggarra13@gmail.com</a>> wrote:<div><blockquote type="cite"><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">On 16/05/14 17:02, Info || Non-Lethal Applications wrote:<br><blockquote type="cite">On 16 May 2014, at 19:02, Gonzalo Garramuno <<a href="mailto:ggarra13@gmail.com">ggarra13@gmail.com</a>> wrote:<br><br><blockquote type="cite">On 16/05/14 10:27, Info || Non-Lethal Applications wrote:<br><blockquote type="cite">Hey there,<br><br>I’m trying to encode a sequence of images into Pro Res 422 in the MOV container.<br>I already had a look at the example: muxing.c and it looks promising.<br><br>However, I can’t figure out how to tell the encoder to use ProRes instead of H.264 for MOV.<br>Here’s what I’ve tried (mostly unaltered sample …):<br><br>AVOutputFormat* pOutputFmt;<br>AVFormatContext* pFormatCtx;<br>AVStream* pVideoStream;<br>AVCodec* pVideoCodec;<br><br>/* Initialize libavcodec, and register all codecs and formats. */<br>av_register_all();<br><br>/* allocate the output media context */<br>avformat_alloc_output_context2(&pFormatCtx, NULL, "mov", filename.c_str());<br><br></blockquote>Try after that:<br><br>pOutputFmt = pFormatCtx->oformat;<br>pOutputFmt->video_codec = AV_CODEC_ID_PRORES;<br><br>(add stream and open codec here).<br></blockquote>Ok, got it. That works perfectly.<br>And how would I go about defining the different Pro Res flavors? Like Proxy/LT/Standard/HQ?<br></blockquote>My guess is that you need to modify the AVCodecContext* or pass some opts with set_opts.  You will need to read the source code of prores I am afraid.<br></div></blockquote><br></div><div>Thanks for getting back to me.</div><div>Ok, I guess that’s what I need to do then ...</div><br></body></html>