vlc

Storing RTSP to a file location

百般思念 提交于 2019-11-30 20:56:40
I am able to stream an rtsp on windows 7 64 bit machine through C# Winform application. This is the library i used - VLCDotNet and here is the code sample to play the RTSP stream: LocationMedia media = new LocationMedia(@"rtsp://192.168.137.73:554/live.sdp"); vlcControl1.Media = media; vlcControl1.Play(); I would like to store the streams to a file in my PC on a button click and stop the same with another button. How do i achieve this? Here is the code: Vlc.DotNet.Core.Medias.MediaBase media1 = new Vlc.DotNet.Core.Medias.PathMedia("rtsp://192.168.137.73:554/live.sdp"); media.AddOption(":sout=

how to set transparent opacity to panel

∥☆過路亽.° 提交于 2019-11-30 20:06:33
问题 how do i set panel transparent like opacity to 0. i set the panel by program and it was on top of video player. the code is like this Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click ', AxVLCPlugin21.Click Dim panelx As New Panel panelx.Visible = True panelx.Size = New Size(AxVLCPlugin21.Width, CInt(AxVLCPlugin21.Height / 2)) panelx.BackColor = System.Drawing.Color.Transparent AxVLCPlugin21.Controls.Add(panelx) panelx.BringToFront() 'AddHandler panelx

VLC Python EventManager callback type?

徘徊边缘 提交于 2019-11-30 17:44:20
I'm having trouble attaching an event handler to tell when a song has finished playing when using the VLC Python bindings. The event_attach function is complaining about the callback type. def __init__(self): self.vlc = vlc.Instance() self.vlc_playlist = self.vlc.media_list_new() self.vlc_player = self.vlc.media_list_player_new() self.vlc_player.set_media_list(self.vlc_playlist) self.vlc_events = self.vlc_player.event_manager() self.vlc_events.event_attach(vlc.EventType.MediaPlayerEndReached, self.SongFinished, 1) .... def SongFinished(self, *args, **kwargs): pass Errors: self.vlc_events.event

Linux control a running vlc process through command line

妖精的绣舞 提交于 2019-11-30 17:08:04
问题 is there any way to control an already running VLC player on ubuntu. For example, i am trying to start a vlc video full screen with a default audio. and then control the volume and other features through netcat or some other command remotely. is it possible? 回答1: Have you looked at the rc (remote control) interface ? It controls a VLC process via a Unix Domain Socket. See here and here for more info. 回答2: The script player control from exic's answer is just a wrapper for some dbus commands.

Using VLC imem to play an h264 video file from memory but receiving error “main stream error: cannot pre fill buffer”

本秂侑毒 提交于 2019-11-30 16:17:35
I have an h264 video file that is loaded into memory, and I attempt to play it with imem using the parameter "imem-cat=4" so that vlc will use an access module to demux the video, and vlc starts and receives my imem parameters successfully: [0x7f38a0000e28] access_imem demux debug: Using get(0x404e1d), release(0x404e91), data(0x7fff5b4a9430), cookie("IMEM") This category also means I don't have to provide DTS and PTS. The imem module for VLC isn't well documented, but I've found hints in several places e.g. https://forum.videolan.org/viewtopic.php?t=111917 https://forum.videolan.org/viewtopic

Reduce delay when playing rtp stream with libvlc on Android

守給你的承諾、 提交于 2019-11-30 16:16:15
I am using LibVLC version 3.0.0 to play incoming mpeg2ts stream over rtp on Android. The code is the following: SurfaceView playerView; //Initialized somewhere before LibVLC libVlc = new LibVLC(context, arrayListOf("--file-caching=150", "--network-caching=150", "--clock-jitter=0", "--live-caching=150", "--clock-synchro=0", "-vvv", "--drop-late-frames", "--skip-frames")); MediaPlayer player = new MediaPlayer(libVlc); IVLCVout vout = player.getVLCVout(); vout.setVideoView(playerView); vout.attachViews(); Media media = new Media(libVlc, Uri.parse("rtp://@:" + UDP_PORT + "/")); player.setMedia

Video rotation on android using LibVLC

蹲街弑〆低调 提交于 2019-11-30 16:10:00
I'm using LibVLC to display video files. It's working fine so far, despite of the orientation. I'm able to get the orientation out of meta-data but don't really know how to force LibVLC to rotate it from landscape to portrait. It would be nice to get a hint for a workaround. Thanks! I had a similar problem. Unfortunately LibVLC for android does not expose all features, so I had to change code in the jni layer to get it working. Here is how to do it: Edit libvlcjni.c, and find the function : Java_org_videolan_libvlc_LibVLC_nativeInit. Look for the local varibale argv array and add the following

VLC remotely control from C#

萝らか妹 提交于 2019-11-30 12:00:38
i'm trying to control the VLC Media Player from C#. I tried getting a handle on the window with the FindWindow() command from .Net but as i found out the name of the window changes every time a file is played. The biggest problem i have is sending wm_commands to vlc..This approach worked with Winamp and Windows Media Player but with VLC it appears that it won't work. I read that VLC can be controlled from a browser but i don't whant that...i've seen in it's settings that it has some hot keys that can be called..but they can be changed and if i call them from my code somehow...and the user

How to stream your images/files with VLC?

﹥>﹥吖頭↗ 提交于 2019-11-30 10:54:01
问题 So I know there are lot of wrappers of libVLC.dll . But I just do not know what one is ready to do what I need... What I need is simple... in my C# program I create some bitmap (once or twice per second)... I now want to stream bitmaps live as video (in some format VLC can to offer me) to some http:localhost:port/ using VLC... How to do that? 回答1: You need to use following code to stream a image. cd "C:\program files\videolan\vlc" vlc -I dummy fake:// --fake-file c:\1.jpg -vvv --sout

RTSP stream and OpenCV (Python)

橙三吉。 提交于 2019-11-30 08:54:15
I have an IP camera streaming on Linux through rtsp protocol and h264 linux driver. I am able to see the video in VLC with the following address and port: rtsp://192.168.1.2:8080/out.h264 However if I try to get the same video for OpenCV processing in Python 2.7.5 (MacOS X 10.9): import cv video = cv.CaptureFromFile('rtsp://192.168.1.2:8080/out.h264') I get the following error: WARNING: Couldn't read movie file rtsp://192.168.1.2:8080/out.h264 It seems something rather simple, but I am stuck on it. Thanks. this works for me (using opencv 2.4.9): vcap = cv.VideoCapture("rtsp://192.168.1.2:8080