<div>
                    Hi there,
                </div><div><br></div><div><br></div><div>I'm not to VLC, I'm trying to get video data via callbacks in the following code</div><div><br></div><div><br></div><div><div><span style="white-space:pre">             </span>libvlc_video_set_format(context->mp, "YUYV", 352, 288, 288 * 2);</div><div><br></div><div><span style="white-space:pre">                </span>libvlc_video_set_callbacks(context->mp, vlc_video_lock_callback, vlc_video_unlock_callback, vlc_video_display_callback, context);</div></div><div><br></div>
                <div><div><br></div><div>I want to use a buffer to get all the decoded or raw data on opening a mp4 file with H264 video and AAC audio, and I can get audio data fine, but with video, what the buffer size should be set in the lock callback?  Someone told me 352 * 288 * 1.5 for YUYV, it that true?</div><div><br></div><div>And I also want to get raw H264 video data without decode,  so is it possible to replace the "YUYV" param to sth. like "RAW" ? Or I guess it's not hard to make a module that just copy the raw data to the buffer like the "YUYV" module does, so question is - which module is actually decoding "YUYV" ?</div><div><br></div><div><br></div><div>Thanks.</div><div><br></div><div><br></div><div>-- </div><div>About: <a href="http://about.me/dujinfang">http://about.me/dujinfang</a></div><div>Blog: <a href="http://www.dujinfang.com">http://www.dujinfang.com</a></div><div>Proj:  <a href="http://www.freeswitch.org.cn">http://www.freeswitch.org.cn</a></div><div><br></div>Sent with <a href="http://www.sparrowmailapp.com">Sparrow</a><br><div><br></div></div>