libvlc

How to embed VLC media player to my Android App

混江龙づ霸主 提交于 2019-11-27 18:00:37
Is there a way to embed VLC media player to Android Application? I have several issues: 1) I have a video streaming Camera (from RTSP) and I cannot play its stream on my regular videoview panel (Sorry this video cannot be played error). However, I installed the VLC application for Android (beta version) and I was able to play it. 2) My main objective is to port a desktop java application which uses VLC plugin to Android. I want to accomplish this task with minimum effort (I have some time issues). Another alternative, is there a way to embed codecs used by VLC to my application? Because with

Saving a stream while playing it using LibVLC

自古美人都是妖i 提交于 2019-11-27 11:39:35
问题 Using LibVLC, I'm trying to save a stream while playing it. This is the python code: import os import sys import vlc if __name__ == '__main__': filepath = <either-some-url-or-local-path> movie = os.path.expanduser(filepath) if 'http://' not in filepath: if not os.access(movie, os.R_OK): print ( 'Error: %s file is not readable' % movie ) sys.exit(1) instance = vlc.Instance("--sub-source marq --sout=file/ps:example.mpg") try: media = instance.media_new(movie) except NameError: print ('NameError

Using QWidget::update() from non-GUI thread

这一生的挚爱 提交于 2019-11-27 06:21:30
问题 Sometimes my application crashes in QWidget::update() that is performing in non-GUI thread. I am developing an application in which receives video frames from remote host and display them on QWidget. For this purpose I use libVLC library that gives to me a decoded image. I receive image in libVLC callback, that is performing in separate libVLC thread. In this callback I'm trying to perform QWidget::update() method. Sometimes application crashes, and callstack is somewhere in this method. Here

Get frame from video with libvlc smem and convert it to opencv Mat. (c++)

↘锁芯ラ 提交于 2019-11-26 21:21:05
问题 [UPDATED WITH PARTIAL ANSWER] Here is my code: void cbVideoPrerender(void *p_video_data, uint8_t **pp_pixel_buffer, int size) { // Locking imageMutex.lock(); videoBuffer = (uint8_t *)malloc(size); *pp_pixel_buffer = videoBuffer; } void cbVideoPostrender(void *p_video_data, uint8_t *p_pixel_buffer , int width, int height, int pixel_pitch, int size, int64_t pts) { // Unlocking imageMutex.unlock(); Mat img = Mat(Size(width,height), CV_8UC3, p_pixel_buffer); //cvtColor(img,img,CV_RGB2BGR); } int