<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Greetings -<div class=""><br class=""></div><div class="">Video n00b here…</div><div class=""><br class=""></div><div class="">I’ve been using FFmpeg to encode a sequence of raw RGB frames to a movie file, in a C/C++ app. I basically took the code from here:</div><div class=""><br class=""></div><div class=""> <a href="http://ffmpeg.org/doxygen/trunk/doc_2examples_2decoding__encoding_8c-example.html" class="">http://ffmpeg.org/doxygen/trunk/doc_2examples_2decoding__encoding_8c-example.html</a></div><div class=""><br class=""></div><div class="">The video_encode_example() function synthesizes each frame’s data; in my case I have a data pointer, width, height, and rowbytes, so I just use sws_scale() to convert to YUV and I’m good to go. So far I’ve been using AV_CODEC_ID_MPEG2VIDEO. Plays on every movie player I have on my Mac (VLC, QuickTime Player, etc, etc)</div><div class=""><br class=""></div><div class="">For obvious (?) reasons I want H.264. Swapping in that codec (using x264 or openh264) gives me a movie. I can play this on a Mac with VLC, but QuickTimePlayer doesn’t like the format (tries to “convert” and says “QuickTime Player can’t open <filename>”.</div><div class=""><br class=""></div><div class="">The “file” command gives me back this:</div><div class=""><br class=""></div><div class=""> <span style="font-family: Courier; font-size: 14px;" class="">JVT NAL sequence, H.264 video @ L 13</span></div><div class=""><br class=""></div><div class="">It does not surprise me much that simply dropping in a different codec yields a movie that can’t be opened by some particular player, given all the possible format and codec properties/settings.</div><div class=""><br class=""></div><div class="">But, it seems that I should be able to configure the necessary codec and/or container properties such that I get a movie file that can be opened with a wider variety of apps (particularly QuickTime Player, given it’s supposed to support a variety of formats and codecs)</div><div class=""><br class=""></div><div class="">I’m guessing I’m just missing a few settings, but I really don’t know where to start looking. Any help/advice/pointers/documentation would be greatly appreciated…</div><div class=""><br class=""></div><div class="">- Philip</div><div class=""><br class=""></div></body></html>