libvlc

working with VLC smem

两盒软妹~` 提交于 2019-11-29 12:28:43
I'm trying to do something like this post : Get frame from video with libvlc smem and convert it to opencv Mat. (c++) I can't quite understand the code in this part : sprintf(smem_options , "#transcode{vcodec=RV24}:smem{" "video-prerender-callback=%lld," "video-postrender-callback=%lld," "video-data=%lld," "no-time-sync}," , (long long int)(intptr_t)(void*)&cbVideoPrerender , (long long int)(intptr_t)(void*)&cbVideoPostrender //This would normally be useful data, 100 is just test data , (long long int)200 //Test data ); It says video-data=%lld . What does it mean? Where is it taking data from?

Play video using libVLC from memory in python

烂漫一生 提交于 2019-11-29 08:39:39
I am trying to make use of libVLC python bindings to play files after reading them into memory. I have the following code that reads a valid video file into the memory. I need to now play the video directly from the memory. import vlc File1 = open('vid.webm','rb') Axel = File1.read() Now i need to play the contents in Axel, how can I do this. Information on how to do this in C, Java etc too can help. Edit: Understood I will have to use the imem module but can't find any help regarding how to get it done. to do this you have to use the imem module of libvlc. This can be really confusing since

How to disable VLCMediaPlayer error AlertView?

∥☆過路亽.° 提交于 2019-11-29 08:26:39
I am using VLCMediaPlayer class from the MobileVLCKit library to make an audio streaming application. My problem is that when error happens (e.g. incorrect stream url) it automatically alerts its own error message. In my case, I would like to disable that alert message and display my own one. No need to remove this option from source! Simply pass the player option like this: NSArray *options = @[@"--extraintf="]; VLCMediaPlayer *player = [[VLCMediaPlayer alloc] initWithOptions:options]; with recent (MobileVLCKit-prod 2.7.9) of MobileVLCKit you can implement VLCCustomDialogRendererProtocol on

A simple C program to play mp3 using libvlc

你离开我真会死。 提交于 2019-11-29 03:57:09
问题 I am an average C/C++ programmer. Recently I took a project to make a media player with a smart playlist that will work like Zune's SmartDj. I have decided to use libvlc for playing. I have never coded an open source software before, so I know nothing about git and all. Can you please help me to write at least a C program to play a mp3 file? Where should I get started? How do you extract a song's artist and other information from the mp3 file itself? regards. 回答1: be sure that you have

Saving a stream while playing it using LibVLC

天涯浪子 提交于 2019-11-28 19:24:42
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: % (%s vs Libvlc %s)' % (sys.exc_info()[1], vlc.__version__, vlc.libvlc_get_version())) sys.exit(1)

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

会有一股神秘感。 提交于 2019-11-28 11:38:45
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 is the my callback code: //! Called when a video frame is ready to be displayed, according to the vlc

Compile VLCKit on Mac OS 10.9

最后都变了- 提交于 2019-11-28 07:49:49
I'm trying to compile VLCKit on Mac OS 10.9 following this wiki : https://wiki.videolan.org/VLCKit/ I have clone git://git.videolan.org/vlc-bindings/VLCKit.git then open VLCKit.xcodeproj in Xcode 5.1 and finally run "Build Everything". But build failed with thoses issues : Run VLC configure PhaseScriptExecution bootstrap /Users/myname/Library/Developer/Xcode/DerivedData/VLCKit- bktcaifqrsqwbodqlfdqgsmkkdeb/Build/Intermediates/VLCKit.build/Debug/Run\ VLC\ configure.build/Script-631A90420D5A007D0014A2CE.sh cd /Users/myname/Documents/PhcDev/VLCKit /bin/sh -c \"/Users/myname/Library/Developer

Delphi XE2 : How can I play video files with firemonkey

爱⌒轻易说出口 提交于 2019-11-28 03:12:41
问题 I want to make a mediaplayer application using with firemonkey but I can't see any component for videoplayer :( I was trying to integrate VLC (VideoLAN player) to firemonkey but the firemonkey controls don't have window handle. How can I make or find a videoplayer component ? thanks 回答1: In addition to VideoLab we also offer a much cheaper BasicVideo. The libraries are also free for non commercial purposes. MAC and iOS FireMonkey versions are in development at the moment, and will be

Play video using libVLC from memory in python

懵懂的女人 提交于 2019-11-28 02:17:21
问题 I am trying to make use of libVLC python bindings to play files after reading them into memory. I have the following code that reads a valid video file into the memory. I need to now play the video directly from the memory. import vlc File1 = open('vid.webm','rb') Axel = File1.read() Now i need to play the contents in Axel, how can I do this. Information on how to do this in C, Java etc too can help. Edit: Understood I will have to use the imem module but can't find any help regarding how to

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

梦想与她 提交于 2019-11-27 23:12:32
[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 main(int argc, char ** argv) { libvlc_instance_t * inst; char smem_options[1000]; sprintf(smem_options