libvlc

Create a videoplayer with the LibVLC for android

拥有回忆 提交于 2019-12-03 08:41:46
I am trying to creat a video player for an android app with the last LibVLC. The problem is that I don't know how this lib works and I can't find sample to help me (as it is say here https://bitbucket.org/edwardcw/libvlc-android-sample ) So I try on my own to create the video player : public class VideoPlayerActivity extends AppCompatActivity implements IVideoPlayer, GestureDetector.OnDoubleTapListener, IDelayController { private static LibVLC LibVLC() { return VLCInstance.get(); } private static MediaPlayer MediaPlayer() { return VLCInstance.getMainMediaPlayer(); } @Override @TargetApi(Build

MobileVLCKit fails while compiling

﹥>﹥吖頭↗ 提交于 2019-12-03 07:34:32
问题 I am trying to use MobileVLCKit for iOS in my application. I followed steps given @ Building the Framework for iOS. I have set deploymet target to iOS 7 in my Xcode 5. I used command ./buildMobileVLCKit.sh -f -l to compile the shell file to get an iOS framework. I got following errors on my terminal application. The following build commands failed: Libtool build/MobileVLCKit.build/Release-iphoneos/MobileVLCKit.build/Objects-normal/armv7/libMobileVLCKit.a normal armv7 Libtool build

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

匿名 (未验证) 提交于 2019-12-03 01:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: [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

android libvlc multiple surface problems

匿名 (未验证) 提交于 2019-12-03 01:33:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I would know if is possible to use two surface in same layout and view each at same time. In future I would a grid-view of video-view, but each video-view using vlc. I modify this sample ( android-vlc-sample ) using fragment. The result is that I see only one video...How can I solve ? From log-cat I not see important error, but I think that there are rendering problems for android UIThread Java Coding public class MultipleVideoPlayFragmentActivity extends FragmentActivity { public final static String LOCATION = "com.compdigitec

vlcj:: Unable to load library 'libvlc' in 64bit OS

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using 64 bit OS Windows 7 and i have 32 bit VLC versioned 1.1.8. I have added these libraries jna.jar platform.jar vlcj-1.1.5.1.jar I am not able to stream using jVlc public class HelloVLC { /** * @param args * @throws IOException */ public static void main(String[] args) throws IOException { // TODO Auto-generated method stub System.out.println( WindowsRuntimeUtil.getVlcInstallDir()); NativeLibrary.addSearchPath("libvlc", "C:\\Program Files (x86)\\VideoLAN\\VLC"); String media = "dshow://"; String[] options = {" :dshow-vdev=Integrated

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 \

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

Python script executes but unable to hear sound which it is playing

房东的猫 提交于 2019-12-02 11:55:01
问题 I am using libvlc python binding to play a music file.my code is as follows: import vlc instance = vlc.Instance() #Create a MediaPlayer with the default instance player = instance.media_player_new() #Load the media file media = instance.media_new('01.DONT CARE.mp3') #Add the media to the player player.set_media(media) try: player.play() except Exception, e: raise e The script executes successfully but I am unable to hear anything. If the code is executed line by line then it works correctly

C++ LibVLC Create Stream from Frames/Images

ぐ巨炮叔叔 提交于 2019-12-02 09:51:11
I want to use LibVLC for creating a Video from Images. As for now I have no experience with LibVLC. I already Implemented a test Project like here ( A simple C program to play mp3 using libvlc ). Is there any Way to create an Instance of "libvlc_media_t" and put images to it instead of calling "libvlc_media_new_path" to load a Video from a File? Or are there any other Possibilities? Create a media list and media play list in addition to a media player: media_list_ = libvlc_media_list_new(vlc_instance_); media_list_player_ = libvlc_media_list_player_new(vlc_instance_); libvlc_media_list_player

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