zoukankan      html  css  js  c++  java
  • Ubuntu安装VLC播放器

    Ubuntu安装VLC官方介绍:http://www.videolan.org/vlc/download-ubuntu.html

    sudo apt-get update
    sudo apt-get install vlc browser-plugin-vlc

    其他问题请查看官方wiki:https://wiki.videolan.org/Ubuntu/

     Many vlc plugins can be installed afterwards (some of these may no longer be needed)

     vlc-plugin-alsa    - ALSA audio output plugin for VLC (install it if sound doesn't work)
     vlc-plugin-arts    - aRts audio output plugin for VLC (install it if sound still doesn't work and you're using KDE)
     vlc-plugin-esd     - Esound audio output plugin for VLC (install it if sound still doesn't work and you're using Gnome)
     vlc-plugin-ggi     - GGI video output plugin for VLC
     vlc-plugin-glide   - Glide video output plugin for VLC
     vlc-plugin-pulse   - PulseAudio audio output plugin for VLC
     vlc-plugin-sdl     - SDL video and audio output plugin for VLC
     vlc-plugin-svgalib - SVGAlib video output plugin for VLC
     mozilla-plugin-vlc - the VLC plugin for Mozilla based browsers
     vlc-plugin-jack    - the VLC plugin for Jack Audio Connection Kit

    为homeassistant添加配置文件:

    https://www.home-assistant.io/components/media_player.vlc/

    # Example configuration.yaml entry
    media_player:
      - platform: vlc
        name: speaker_1
        arguments: '--alsa-audio-device=hw:1,0'

     主要用于homeassistant中的TTS语音播报

    VLC配置完成后,不能从蓝牙耳机发出声音,但是使用VLC音乐播放器播放本地mp3文件的时候是可以从蓝牙耳机发生的,VLC播放器有切换输出方式的选项;

    arguments: '--alsa-audio-device=hw:1,0' 

    上面这个yaml的配置参数貌似没有什么作用,改成其他的也不会影响声音播放。

    有个很好的情况,就是连接蓝牙后播放器自动从蓝牙耳机发出声音,但是tts的语音依然从有线HDMI(转VGA和音频)耳机发出声音。

  • 相关阅读:
    js实现页面的全屏与退出
    vue父组件访问子组件
    v-contextmenu的使用(右键菜单)
    vue实现tab切换
    vue中子组件向父组件传值
    vue中父组件传数据给子组件
    RNN
    用于超参数随机化搜索的几个分布
    Numpy 函数总结 (不断更新)
    神经网络求导
  • 原文地址:https://www.cnblogs.com/arrive/p/9645931.html
Copyright © 2011-2022 走看看