durka / vlc-matlab

Thin, limited Matlab wrapper for libvlc to do fast video playback
MIT License
1 stars 0 forks source link

No window under mac #2

Open captainjtx opened 8 years ago

captainjtx commented 8 years ago

Hi, This is Tianxiao Jiang. I was searching for a real-time video palyer for matlab like yours that can run any platform for a while . I was planning to play back the video synchronized with some data. On windows I can easily achieve this by ActiveX control. But Mac OS is currently a dead end for me. I was trying to run this on my Mac Computer. The problem of your package is that everything seems to be playing at the background. I can see the frame number changed. However there is no visual output, no window that show the video being played. I discovered that, in your note, you said there is some problem with mac. You developed a helper library using Objective C. I am not sure how it works. Could you please described a bit more on what can I do with it ? I am not familiar with Objective-C. I am good at C++/C Matlab Java(kind of). If there is an alternative to do this, I would also like to hear. Thank you !

durka commented 8 years ago

Hm, this is quite strange. Can I ask what versions of OSX, VLC, and Matlab you are using? The Objective-C part of this library is a tiny OSX application that opens a window, that's pretty much it. It should be automatically built by my build_mac.sh script if you have XCode installed. Did you get any errors from build_mac.sh?

captainjtx commented 8 years ago

I am using OS X EL Capitan 10.11.2 , Matlab 2015b and VLC 2.2.2. All of them are the most updated I guess. There was compiler error problem before with Matlab 2015b but I fixed it. Apart from it, there is no error message from build_mac.sh.

durka commented 8 years ago

I haven't tested under El Capitan. It's possible something changed. I'll try to track down a machine for testing. On Mar 2, 2016 5:17 PM, "Tianxiao Jiang" notifications@github.com wrote:

I am using OS X EL Capitan 10.11.2 , Matlab 2015b and VLC 2.2.2. All of them are the most updated I guess. There was compiler error problem before with Matlab 2015b but I fixed it. Apart from it, there is no error message from build_mac.sh.

— Reply to this email directly or view it on GitHub https://github.com/durka/vlc-matlab/issues/2#issuecomment-191457634.

captainjtx commented 8 years ago

Thanks, I have tested under my win7+matlab2015b. It works pretty well.

On Mar 2, 2016, at 5:31 PM, Alex Burka notifications@github.com wrote:

I haven't tested under El Capitan. It's possibly something changed. I'll try to track down a machine for testing. On Mar 2, 2016 5:17 PM, "Tianxiao Jiang" notifications@github.com wrote:

I am using OS X EL Capitan 10.11.2 , Matlab 2015b and VLC 2.2.2. All of them are the most updated I guess. There was compiler error problem before with Matlab 2015b but I fixed it. Apart from it, there is no error message from build_mac.sh.

— Reply to this email directly or view it on GitHub https://github.com/durka/vlc-matlab/issues/2#issuecomment-191457634.

— Reply to this email directly or view it on GitHub https://github.com/durka/vlc-matlab/issues/2#issuecomment-191492431.

bradmonk commented 8 years ago

I'm having the same problem on OS X El Capitan (10.11.6). No build errors. Everything works fine. I can hear the video playing but there is no visual interface. Either the video interface is zero pixels, is showing up somewhere off screen, or is not being displayed at all. Great work on everything else btw. This would be exactly what I'm looking for if it displayed video. Cheers.

Pradyumna94 commented 7 years ago

Hi,

I am building a video annotator and found that this piece of software suites perfectly for me. However, I am facing an issue in Ubuntu 16.04+Matlab2016b+VLC-2.2.2

When I run the command: vp = vlc_wrapper('open',vh,'movie.avi') as in the example, I receive a message:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Error using vlc Could not stat video file: No such file or directory

Error in vlc_wrapper (line 14) [varargout{1:nargout}] = vlc(i, varargin{:}); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

I have followed the installation in order and have indeed run the build_linux.sh script prior to using the software. When I run the 'build_linux.sh' script I obtain the message: "Building with 'g++'. MEX completed successfully."

So, I don't know where I am going wrong. Hence, please let me know what the issue might be.

I really need this piece of software integrated in my project.

Thank You

durka commented 7 years ago

It seems that your video file does not exist (maybe it is in another directory?). If that is not the problem, please open a new issue as it's not related to this one.

On Wed, Feb 22, 2017 at 6:01 PM, Pradyumna notifications@github.com wrote:

Hi,

I am building a video annotator and found that this piece of software suites perfectly for me. However, I am facing an issue in Ubuntu 16.04+Matlab2016b+VLC-2.2.2

When I run the command: vp = vlc_wrapper('open',vh,'movie.avi') as in the example, I receive a message:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Error using vlc Could not stat video file: No such file or directory

Error in vlc_wrapper (line 14) [varargout{1:nargout}] = vlc(i, varargin{:}); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

I do run the 'build_linux.sh' script and obtain the message: "Building with 'g++'. MEX completed successfully."

Hence, please let me know what the issue might be.

I really need this piece of software integrated in my project.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/durka/vlc-matlab/issues/2#issuecomment-281833919, or mute the thread https://github.com/notifications/unsubscribe-auth/AAC3n1h8-_2ztXtWbNIQxk-CtdjxNVKDks5rfL5SgaJpZM4Hn4L- .

Pradyumna94 commented 7 years ago

I am using Ubuntu16.04+MATLAB2016b+vlc2.2.2 Previously I did not have the video in current folder. Now I do have the video file in current folder. However, I receive an error when I run the command: vp = vlc_wrapper('open',vh,'movie.avi') %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Error using vlc Not a VLC instance

Error in vlc_wrapper (line 14) [varargout{1:nargout}] = vlc(i, varargin{:}); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

What does "Not a VLC instance" mean?

Thank You

durka commented 7 years ago

It means the handle, vh, is no longer valid. You need to call vlc_wrapper('init') again to get a new one. Again, please open a new issue.

On Wed, Feb 22, 2017 at 6:13 PM, Pradyumna notifications@github.com wrote:

I am using Ubuntu16.04+MATLAB2016b+vlc2.2.2 Previously I did not have the video in current folder. Now I do have the video file in current folder. However, I receive an error when I run the command: vp = vlc_wrapper('open',vh,'movie.avi') %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Error using vlc Not a VLC instance

Error in vlc_wrapper (line 14) [varargout{1:nargout}] = vlc(i, varargin{:}); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

What does "Not a VLC instance" mean?

Thank You

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/durka/vlc-matlab/issues/2#issuecomment-281836411, or mute the thread https://github.com/notifications/unsubscribe-auth/AAC3n6EkMUNba703sHDij5mNB0aSxV3cks5rfMEZgaJpZM4Hn4L- .

Pradyumna94 commented 7 years ago

Thank You for helping me out. It works perfectly now!