Ubuntu20, 22vlc无法播放rtsp流

原因

由于debian政策,导致ubuntu21,22无法使用vlc拉取rtsp流.
https://askubuntu.com/questions/1360613/unable-to-play-any-rtsp-streams-in-xubuntu-and-debian Updated to 21.04, VLC stopped working but worked in 20.10. Mplayer does

https://forum.videolan.org/viewtopic.php?f=13&t=158071&p=520527 Unable to play any rtsp Streams - in XUbuntu and Debian

解决方案

使用ubuntu22 Flatpak安装vlc.这个在ubuntu22上面无用,可能随着更新,没有解决方案了。

Ubuntu20vlc无法播放rtsp流

由于snap是封闭容器,导致vlc无法读取usb相机,需要网络流推流再读取。 snap不允许vlc访问/dev/video设备。

Ubuntu20无法播放rtsp流和cheese软件黑屏

虚拟机切换usb3.1
https://blog.csdn.net/u012254599/article/details/109075067 虚拟机下Ubuntu打开摄像头是黑屏问题

备注

无关备注,由于snap是封闭容器,导致zotero一些功能失效。

查看相机设备

ls /dev/video*
http://www.4k8k.xyz/article/weixin_42704090/100139638 Linux(Ubuntu)下查看摄像头是否挂载及挂载的USB端口号_墨上烟雨-程序员资料_ubuntu查看摄像头设备

附加相机到docker

docker run --rm -it --entrypoint /bin/bash --device /dev/video0 jrottenberg/ffmpeg
 ffmpeg -f video4linux2 -list_formats all -i /dev/video0
sudo docker run -d -p 55555:22 --privileged -v /dev/video0:/dev/video0 testimage

https://www.faqcode4u.com/faq/405883/access-camera-inside-docker-container Access Camera Inside Docker Container

docker run -it --device=/dev/video0 <image_name>

https://blog.csdn.net/u012219045/article/details/114092283 Docker 容器挂载摄像头并显示图像

posted @ 2022-07-19 09:43  fengmao31  阅读(952)  评论(0编辑  收藏  举报