libvlc

Stream camera into memory using libvlc and display a frame

老子叫甜甜 提交于 2019-12-23 20:16:42
问题 I am trying to stream a capturing device (camera) into memory using libvlc. I am unable to display image from data stored in memory. The memory content seems to be ok. I checked it using Visual Studio and its Memory window. The picture created by imshow is always grey. How can I display the image stored in the memory? My code is mostly based on this topic Thank you. using namespace cv; using namespace std; HANDLE hMutex; struct VideoDataStruct { int param; }; int done = 0; libvlc_media_player

video gets stuck when its seeked back (C++) (QT) (libvlc)

梦想的初衷 提交于 2019-12-23 10:19:13
问题 I am using libvlc to play video on my GUI Application using QT 4. When I seek forward the video it works fine, but when I seek back the video, it gets stuck I mean frame doesn't change and my callback function which is videopostrender doesn't get any call. void videoPrerender(void *p_video_data, uint8_t **pp_pixel_buffer, int size) { // Locking //printf("cbVideoPrerender %i\n",size); //printf("vtest: %lld\n",(long long int)p_video_data); VLCPlayer* player = reinterpret_cast<VLCPlayer*>(p

How to streaming video via VLC api in C#

主宰稳场 提交于 2019-12-23 02:52:40
问题 I'm working on small home project for video broadcasting. I've found some example. I've found some example Example, but it does not works, because needed old version of library 0.8.6. So I found it, but I have exceptions on unmanaged code when I've tried to get components from API. So maybe somebody works with VLC for videobrodcasting I would like if you are Advise any examples. 回答1: I found a solution and used Vlc.DotNet wrapper I've installed nuget packages and wrote console app: class

vlc-android-sdk - cannot view RTSP live video

五迷三道 提交于 2019-12-22 08:55:12
问题 I've been working on an Android application that shows live streaming video via RTSP. Assuming I have a well-functioning RTSP server that passes h264 packets, and to view the stream we should connect to rtsp://1.2.3.4:5555/stream So I tried to use the native MediaPlayer\VideoView, but no luck (the video was stuck after 2-3 seconds of playback, so I loaded mrmaffen's vlc-android-sdk (can be found here) and used the following code: ArrayList<String> options = new ArrayList<String>(); options

Transparency of QDeclarativeView containing QML on top of a QWidget playing a video (using either phonon or libvlc)

牧云@^-^@ 提交于 2019-12-22 08:18:27
问题 I am currently developing a video player. The GUI as the topmost layer is written in QML. It should be transparent to lower layers. It contains control elements, some Lists etc., It's displayed using a QDeclarativeView . Description QDeclarativeView *upperLayer = new QDeclarativeView(this); upperLayer->setSource(QUrl("/home/projects/QtVideo/qml/videoControl.qml")); upperLayer->setStyleSheet(QString("background: transparent"); upperLayer->setResizeMode(QDeclarativeView::SizeRootObjectToView);

How to save video stream using VLC in commandline?

瘦欲@ 提交于 2019-12-21 19:47:09
问题 I'm trying to save online video using VLC in command line on Window 7 Basic. Here are few things I tried and worked partially: I:\movies> vlc http://media.ch9.ms/ch9/7492/a92ae0a6-7b81-4114-b102aa055d147492/E2EMeijerBrachaDartMonadsContinuations.wmv --sout="#duplicate{dst=std{access=file,mux=wmv,dst='file.wmv'}, dst=display}" It plays the video while streaming, and it also saves the stream to file.wmv . But the saved video doesn't have audio! The command worked partially. Another try for

How to save video stream using VLC in commandline?

折月煮酒 提交于 2019-12-21 19:46:45
问题 I'm trying to save online video using VLC in command line on Window 7 Basic. Here are few things I tried and worked partially: I:\movies> vlc http://media.ch9.ms/ch9/7492/a92ae0a6-7b81-4114-b102aa055d147492/E2EMeijerBrachaDartMonadsContinuations.wmv --sout="#duplicate{dst=std{access=file,mux=wmv,dst='file.wmv'}, dst=display}" It plays the video while streaming, and it also saves the stream to file.wmv . But the saved video doesn't have audio! The command worked partially. Another try for

libvlc_new always return null in vlc 2.1.3

坚强是说给别人听的谎言 提交于 2019-12-20 06:51:52
问题 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"

Playing a video from an array of vlcj player

不打扰是莪最后的温柔 提交于 2019-12-20 05:53:48
问题 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

LibVLC.NET in GTK#

。_饼干妹妹 提交于 2019-12-20 03:46:29
问题 I use LibVLC.NET wrapper in GTK#. And I have already played video using this example: LibVLCLibrary library = LibVLCLibrary.Load(null); IntPtr inst, mp, m; inst = library.libvlc_new(); // Load the VLC engine m = library.libvlc_media_new_location(inst, "path/to/your/file"); // Create a new item mp = library.libvlc_media_player_new_from_media(m); // Create a media player playing environement library.libvlc_media_release(m); // No need to keep the media now library.libvlc_media_player_play(mp);