欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 运维知识 > Ubuntu >内容正文

Ubuntu

Ubuntu安装VLC播放器

发布时间:2025/5/22 Ubuntu 79 豆豆
生活随笔 收集整理的这篇文章主要介绍了 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 VLCvlc-plugin-glide - Glide video output plugin for VLCvlc-plugin-pulse - PulseAudio audio output plugin for VLCvlc-plugin-sdl - SDL video and audio output plugin for VLCvlc-plugin-svgalib - SVGAlib video output plugin for VLCmozilla-plugin-vlc - the VLC plugin for Mozilla based browsersvlc-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: vlcname: speaker_1arguments: '--alsa-audio-device=hw:1,0'

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

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

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

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

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

 

转载于:https://www.cnblogs.com/arrive/p/9645931.html

总结

以上是生活随笔为你收集整理的Ubuntu安装VLC播放器的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。