1. libvlc在release下时,会出错。解决办法 project->linker->optimization->references-> NOREF
2. Iibvlc api调用流程
</pre><pre name="code" class="cpp">介绍就不说了,基本流程。
. libvlc_new
. libvlc_media_new_location
. libvlc_media_player_new_from_media
libvlc_media_release
. libvlc_video_set_callbacks
libvlc_video_set_format 如果仅仅只想显示,第四步骤换为:
libvlc_media_player_set_hwnd
. libvlc_media_player_play loop . libvlc_media_player_release
libvlc_release
其中 libvlc_video_set_format 中支持的图像数据格式有:
“UYUV” 大小: height*wight*2
“I420” (YUV420) 大小:height*wight*1.5
“RGB” 大小: height*wight*3
。。。。