vlc

Stream desktop over RTP using VLC with the lowest latency possible

亡梦爱人 提交于 2019-12-02 21:14:05
I have been trying to figure out how to stream my desktop (over LAN) using VLC and to achieve the lowest latency possible (<100ms). The goal is to have another computer receive the stream and potentially play games while streaming (i.e playing game from PC1 on the PC beside the TV). What settings should I use? I have tried multiple approaches but have yet to succeed. EDIT: I am open to using something other than VLC as well. I have also tried the same with VLC and couldn't ever get latency bellow 3 seconds. FFmpeg did wonders and finally provided a latency bellow 1 second. mpeg2video and UPD

ubuntu下编译vlc-android源代码

筅森魡賤 提交于 2019-12-02 19:33:02
一、安装所有必需的软件 1, # sudo apt-get install ant autoconf automake autopoint libtoo lgawk gcc g++pkg-config cmake patch subversion git Ant工具在最后编译android源码生成apk文件会用到,所以需要安装。如果手动安装了ant,需要在环境变量中配置好ant的 path,或者在进行编译之前在命令行执行export PATH=$PATH:/xxx/ant/bin,保证可以在执行编译的命令行中执行ant命令即可。 2, 除了以上软件/工具之外,还有两个必须的工具,就是Android的SDK和NDK。SDK和NDK的安装方法就不再详述了,网上有很多安装方法的文章。 二、环境变量配置 配置ANDROID_SDK # export ANDROID_SDK=/path/to/android-sdk(请把path改为自己的路径) 配置ANDROID_NDK # export ANDROID_NDK=/path/to/android-ndk 配置PATH变量 # export PATH=$PATH:$ANDROID_SDK/tools:$ANDROID_SDK/platform-tools 配置NEON相关信息(一般编译的时候,会编译NO_NEON和支持NEON两种包出来) #

CentOS 6.2 下编译使用Libvlc

巧了我就是萌 提交于 2019-12-02 16:48:42
总的来说把VLC内嵌入自己的应用有4种途径: •直接调用VLC进程 •VLC的plugin for Mozilla •VLC的ActiveX插件 •调用libvlc 最近需要VLC动态库做开发,故需要编译vlc,并修改VLC 将自己的API借口添加到Lib动态库中。 下面来编译VLC2.0.1,从官网下载最新VLC。(新版本的VLC需要gcc和glibc的支持,所以使用centOS 6.2或者ubunt10.0版本) 如果想要加载全部功能,需要安装如下库 yum install a52dec a52dec-devel caca-utils dirac dirac-devel expat expat-devel faac faac-devel faad2 faad2-devel ffmpeg \ ffmpeg-libs flac flac-devel fribidi-devel gettext gnutls gnutls-devel gnutls-utils lame lame-devel live555 live555-devel \ libass libass-devel libcaca libcaca-devel libcddb libcddb-devel libcdio libcdio-devel libdap libdap-devel libdca-devel \

Save continuous RTSP stream to 5-10 minute long mp4 files

拈花ヽ惹草 提交于 2019-12-02 16:47:57
How can I keep the flow (protocol rtsp, codec h264) in file (container mp4)? That is, on inputting an endless stream (with CCTV camera), and the output files in mp4 format size of 5-10 minutes of recording time. OS: debian, ubuntu Software: vlc, ffmpeg (avconv) Currently this scheme is used: cvlc rtsp://admin:admin@10.1.1.1:554/ch1-s1 --sout=file/ts:stream.ts ffmpeg -i stream.ts -vcodec copy -f mp4 stream.mp4 But it can not record video continuously (between restarts vlc loses about 10 seconds of live video). Alexander Garden See this question and answer on Server Fault. In short, switch tools

树莓派摄像头VLC网络监控

孤者浪人 提交于 2019-12-02 16:27:51
备忘 树莓派有网口,又有 摄像头 可以用,当然不能浪费资源,下面我就用红外摄像头来做个昼夜均可使用的摄像头监控~ 连接好树莓派的CSI摄像头,我用的是带有红外灯的,并且有光感控制的,只有在夜间红外灯才会自动亮起。这样可以省电并且保证红外灯的工作效率。 然后,树莓派用有线连接,因为我是从楼上拉到楼下,用无线会不稳定,所以用有线和树莓派连接。连接好后确认树莓派的网络是通的,最好设置树莓派的IP是固定IP,方便以后查看摄像头数据。 接下来就是监控配置,一样写个脚本,让树莓派进入监控。监控其实就是录像了……但是树莓派录像有个弊端,就是录像只能HDMI输出,或者只能输出不能记录。那我在这就用网络的方式来进行记录。首先树莓派的存储卡要大,或者你外接个U盘或者硬盘也可以。然后,开启摄像头并用VLC传输。 如果没有安装VLC先安装 apt-get -y install vlc aspivid -o - -t 0 -w 640 -h 360 -fps 25|cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8090}' :demux=h264 &> /dev/null 上面是记录分辨率是640x360的录像,帧数是25帧,并把摄像头数据通过8090端口发送出去。 在电脑或者手机上,随便找一个vlc播放器

libvlc_new always return null in vlc 2.1.3

半世苍凉 提交于 2019-12-02 12:05:59
libvlc_new always return null. I have copied libvlc.dll and libvlccore.dll in debug folder of my solution directory. We have also tried calling libvlc_new(0,null) and set the environment variable "VLC_PLUGIN_PATH " to plugins directory, with same result. Any pointer what is going wrong/ or what is the best way to access libVlc API programmitically in .net environment. PLEASE FIND CODE SNIPPET BELOW deveopled in C#, VS2010. IntPtr instance, player ; string[] args = new string[] { "-I", "dummy", "--ignore-config", @"--plugin-path=D:\plugins", "--vout-filter=deinterlace", "--deinterlace-mode

VLC and Python architecture comatibility issue

北城以北 提交于 2019-12-02 09:21:21
When I open vlc.py with the python 2.7 interpreter it works, but when I open it with the python 3.4 interpreter it doesn't work. I get the below error. I am pretty sure the issue is that the architecture is different for my python 3.4 (64bit in conda) and python 2.7 (32bit not in conda), so vlc.py will only work with my python 2.7. I understand that when the Python version and VLC is compatible, i.e. 32bit Python architecture , it works fine. But, I can't create this architecture in my conda because, my conda root is 64bits. Even if I create a new environment in conda and install Python 2

Playing a video from an array of vlcj player

大城市里の小女人 提交于 2019-12-02 08:37:51
I am trying to play a video from the lists of MRL provided as a String. The problem is when I try to run the class, a list of panels shows with button, with only one panel working, but the play button does not work and that of other panels. Although I intentionally left the stop button out because I have not added action listeners to them. What I want to achieve is, when I run the class, a single video plays, and when I click on the play button of another video, the current video stops and moves to the next video. I don't know where I have gone wrong. Here is my code: public class MediaPlayer

Convert rtsp-stream into http stream

不羁岁月 提交于 2019-12-02 03:19:06
Often discussed but so far never working on windows with the current versions of vlc or ffmpeg. These are my stream's properties: How to do it with vlc or ffmpeg? I tried a lot. Way too much to list. I use this to convert a remote RTSP source to a local HLS streaming with ffmpeg and it works ok: ffmpeg -i "rtsp://yourRtspStreamSource" -hls_time 3 -hls_wrap 10 "yourOutputDir/streaming.m3u8" Also I use -t and -stimeout options to control the timeout of that proccess. More info about HLS ffmpeg in docs: https://ffmpeg.org/ffmpeg-formats.html#hls-1 来源: https://stackoverflow.com/questions/41836137

Check if VLC is installed

左心房为你撑大大i 提交于 2019-12-02 01:14:56
I'm calling vlc from a C# app in order to play a video. I need a way to consistently check if VLC is installed. I've tried checking registry keys, but they don't seem to be consistent or reliable depending on your Windows version or architecture. Anyone have any suggestions/advice? I'd say you're doing unnecessary work in trying to detect this. What are you going to do if VLC is not installed? Show an error message? Then just try to launch it, and show an error message if it fails to launch. That way, you also capture the case where it is installed, but still fails to launch for whatever