-
At a library level, explicitly setting just the sample_aspect_ratio (think "pixel" when you see "sample") fixes the problem. As I recall from hunting around ffmpeg.c, the ffmpeg application uses the frame aspect ratio to calculate the pixel aspect ratio (though I could be remembering incorrectly; once I found a solution, I stopped hunting).
2009-09-22 02:41:07 UTC in videoIO Toolbox for Matlab
-
I finally had a chance to hunt down the problem. FFMPEG has a field, sample_aspect_ratio. Nearly all codecs are okay with the aspect ratio being left unspecified (defaulting to an aspect ratio of 1:1 for square pixels). Unfortunately, libxvid doesn't want to make any guesses and thus it requires an explicit setting. I'm putting a fix in that hard codes the aspect ratio to 1:1. If you're...
2009-09-12 22:04:29 UTC in videoIO Toolbox for Matlab
-
Did you run videoIoSysInfo after the setenv call, or before it?
Don't worry about the "is not fully compatible" messages right now. It's important information to know as a user, but it's presented poorly in the current version. I'm slowly working on presenting it better. The basic point is that the underlying codecs are not required to be correct...they can do things like guess...
2009-08-05 12:50:50 UTC in videoIO Toolbox for Matlab
-
Answer to the buildVideoIO post...
It looks like Matlab's version of gcc and/or binutils (ld) is working better than Apple's, but the std c++ library is not being linked.
Quick thing to try... run each of these:
standardTestBattery('ffmpegPopen2')
standardTestBattery('ffmpegDirect')
Do both result in the problem you're seeing?
The current problem is most likely due to one...
2009-08-05 03:54:24 UTC in videoIO Toolbox for Matlab
-
It looks like we're making some good progress. After we're all done, it would be nice to have a final copy of your modified ffmpeg-config-internal.pl.
I did some poking around on the web for the collect2 error message. The consensus for such error messages is that one of 3 things is happening: (1) there's a hardware bug (unlikely, IMHO), (2) there's a bug in the version of ld you're using...
2009-08-05 03:28:28 UTC in videoIO Toolbox for Matlab
-
I'm glad to see a Mac user daring enough to try to get this to work. I've never used a Mac for more than a few minutes, so I'll have to make some guesses. For the -m32 versus -m64, you'll need to know whether you have 32-bit or 64-bit Matlab (and you'll want to have the corresponding bitness for ffmpeg if you want to keep life easy). Try running the videoIoSysInfo script and look at the...
2009-08-04 11:06:10 UTC in videoIO Toolbox for Matlab
-
That does sound like a bug. Thanks for reporting it.
It'll be a little while before I can take a look at it. In the mean time, try "clear mex" instead of "clear all". This will just unload mex functions and it should reset the readers without clearing all of your variables.
Do you know what version of videoIO you're using? If not, run videoIoSysInfo and send me the...
2009-05-28 22:05:25 UTC in videoIO Toolbox for Matlab
-
That sounds like a good example video. I don't have an anonymous upload service at the moment. If you don't have a web account where you can post the video, you might want to use a service like rapidshare (http://www.rapidshare.com/). I believe it's free for low-volume use like this.
I'll try to take a quick look in the next few days. I'm defending my thesis in a week or two, so no time...
2009-05-22 16:48:54 UTC in videoIO Toolbox for Matlab
-
It's not surprising that a 1 frame file has trouble. With the DirectShow API, it can be very difficult to decode the last few frames of a video. If there's one with a few hundred frames that still doesn't work well (e.g. more than about 8 frames can't be read), then that would be most helpful.
2009-05-22 15:45:21 UTC in videoIO Toolbox for Matlab
-
Try one of the more recent versions like r706 or r720 and see if the problem is fixed in them.
If the difficulties persist, would it be possible to post a problematic VOB file so I can test it out?.
2009-05-22 14:58:16 UTC in videoIO Toolbox for Matlab