JCHub

  • Home
  • Category
    • A/V
    • WebRTC
    • Beauty of Programming
    • Linux
    • Windows
    • Moments of Life
    • Campus Life
  • Reference
    • API Reference
    • Utilities
    • AV Test
    • Doc
  • Message Board
  • About
A/V
A/V

libvlc_new初始化失败

最近在做一个视频播放器,用到了libvlc,使用起来也是挺方便的,不过刚开始的时候遇到了一个问题: libvlc_new(0, NULL)这个函数总是返回NULL,后来发现是没把vlc的Plugins文件夹也放到程序执行目录,我只放了libvlc.dll与libvlccore.dll那两个dll文件,vlc初始化过程也需要初始化相应插件。放了之后,一切正常。 --------------------------------------------------------------------------------------------------- /*2015-12-25*/ 今天在linux下做libvlc开发,也遇到了libvlc_new执行失败的问题,我用的是QT框架。程序执行这一函数时候,报如下错误提示: [crayon-69c7300ad12c0637192770/] 卸载重装vlc与libvlc-dev也没解决问题,后来查了些资料,发现问题是出在vlc的插件缓存,该缓存需要刷新。 [crayon-69c7300ad12cc349704162/] 通过上述命令即可解决。 --------------------------------------------------------------------------------------------------

2015年11月13日 7comments 6487hotness 5likes Jeff Read all
A/V

PortAudio枚举音频设备

前面我们说到了如何用Visual Studio编译portAudio,下面我们开始讲下如何使用PortAudio,先从最简单的开始,这篇文章我们主要讲如何枚举音频相关设备。代码如下: [crayon-69c7300ad31a5737621454/] 如下是deviceinfo对应结构体声明: [crayon-69c7300ad31af693687607/] 编译运行得到如下结果: 在最后几行打印的结果中出现的一些设备名汉字乱码是因为有些设备名以UTF-8编码,我没做转换,转化后即可正常显示。

2015年6月23日 0comments 2237hotness 1likes Jeff Read all
12345
Copyright Statement

Unauthorized reproduction or plagiarism in any form is strictly prohibited. For reprint requests, please contact via email.

Recent Comments
snail Published at 16 hours ago(03 03202633105 27 27pm26) 多谢,大佬。醍醐灌顶!
Bramsnawl Published at 23 hours ago(03 03202633110 27 27am26) Proper blood collection playing cards are measure ...
NasibDepdrotte Published at 1 days ago(03 03202633110 26 26pm26) Inf ect isC linNo rth A m viiiix, Sm ets o urgo is...
Pereplanirovka kvartir_cvsr Published at 3 days ago(03 03202633105 25 25pm26) перепланировка услуги [url=https://pereplanirovka-...
Mirzoemele Published at 3 months ago(01 01202613104 06 06pm26) Double blind randomised controlled trial of two to...
Ad

COPYRIGHT © 2026 jianchihu.net. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang