[vlc-devel] Chroma question on geting raw video data

Seven Du dujinfang at gmail.com
Sat Jun 9 13:05:08 CEST 2012

Hi there, 

I'm not to VLC, I'm trying to get video data via callbacks in the following code

libvlc_video_set_format(context->mp, "YUYV", 352, 288, 288 * 2);

libvlc_video_set_callbacks(context->mp, vlc_video_lock_callback, vlc_video_unlock_callback, vlc_video_display_callback, context);

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?

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" ?


About: http://about.me/dujinfang
Blog: http://www.dujinfang.com
Proj:  http://www.freeswitch.org.cn

Sent with Sparrow (http://www.sparrowmailapp.com)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120609/72be1427/attachment.html>

More information about the vlc-devel mailing list