zoukankan      html  css  js  c++  java
  • ubuntu下正确编译VLC 可打开图形界面 并可接收视频组播流

    最近尝试使用ubuntu系统中使用vlc接收视频,试了很多方法,要么是编译后打不开图形界面,要么是可以接受组播流,但不能正常解码为视频,最后终于找到方法,和大家分享一下,希望对你有帮助:

    1 解压vlc安装包vlc-2.1.5.tar.xz

    到vlc网站下载源码包,我使用的是2.1.5版本

    # tar –xvf vlc-2.1.5.tar.xz

    2 进入解压目录,运行./bootstrap

    #./bootstrap
    如果报以下错误
    ./bootstrap: 78: ./bootstrap: autoreconf: not found

    则需要安装:

    # sudo apt-get install autoconf  automake  libtool

    安装好之后,再试一次:

    #./bootstrap

    Successfully bootstrapped

    3 安装vlc的依赖包:

    sudo  apt-get build-dep vlc

    大概253M左右

    4 编译

    ./configure --enable-run-as-root

     

    make

    make install

    ldconfig

    5 运行检查

    ./vlc

    这时就可以打开图形界面了

    6 添加链接

    ln –s /usr/local/lib/libvlc.so.5 /usr/lib/libvlc.so.5

    ln –s /usr/local/lib/libvlccore.so.7 /usr/lib/libvlccore.so.7

  • 相关阅读:
    HTTP报文语法/HTTP组成
    get和post的区别
    Jmeter图形结果
    Jmeter用表格查看结果
    Jmeter聚合报告
    Jmeter查看结果树
    Jmeter集合点
    Jmeter-BeanShell Sampler调用java代码
    Jmeter简单的接口测试
    get、post接口测试-java
  • 原文地址:https://www.cnblogs.com/apache11/p/4237965.html
Copyright © 2011-2022 走看看