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和音頻)耳機發出聲音。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM