avi

Java: How do I create a movie from an array of images?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-17 05:01:33
问题 I basically have an matrix of bytes. Each row (meaning byte[]) represents an image. How do I create a movie out of that (any format - avi, mpeg, whatever), and save it as a file? Each image can be one of the following: int JPEG Encoded formats. int NV16 YCbCr format, used for video. int NV21 YCrCb format used for images, which uses the NV21 encoding format. int RGB_565 RGB format used for pictures encoded as RGB_565. int YUY2 YCbCr format used for images, which uses YUYV (YUY2) encoding

Matlab: using avifile, addframe, getframe; the generated avi is contorted

巧了我就是萌 提交于 2019-12-13 16:29:14
问题 I'm training a machine learning algorithm, and wanted to make an avi to visualize the appearance of weights over time. I threw together something similar to: aviobj = avifile( 'weights.avi' ); for jj = 1:whatever % do some training imagesc( ... ); % where '...' is stuff to reshape the weight matrix aviobj = addframe( aviobj, getframe ); end; aviobj = close( aviobj ); implay( 'weights.avi' ); The problem is, the frames end up looking like this: The numbers shouldn't have that orientation. This

MATLAB getframe captures whatever is on screen

◇◆丶佛笑我妖孽 提交于 2019-12-13 15:00:09
问题 I am trying to create a movie from my MATLAB plot. When I call getframe, it "usually" captures the plot image, but sometimes if there is something else active on the screen (which is normal if I continue to use the computer) it captures whatever window is active. Is there another way to grab the image of the active figure? e.g. fig = figure; aviobj = avifile('sample.avi','compression','None'); for i=1:t clf(fig); plot(...); % some arbitrary plotting hold on; plot(...); % some other arbitrary

Error on getting AVI file duration

丶灬走出姿态 提交于 2019-12-13 07:14:07
问题 I am using VFW unit from JEDI wrapper on WinAPI. The code I am writing is intended to search user drives and detect warez. We do MP3, WMA and some graphic file search. Now we want to detect illegal movies. I want to open AVI file, read some details from it and close it. I have the following code: uses WFV; //from JEDI api wrappers procedure TForm1.Button1Click(Sender: TObject); var lInfo : TAVIFILEINFO lFile : IAVIFILE; lFileType : string; lLenMinutes : integer; lFPS : integer; begin {init

How to play .avi FILES WITH JMF

流过昼夜 提交于 2019-12-13 07:07:40
问题 i m doing a project in java i m using jmf (media package) for the same.it plays mpg mp3 files but it can't play .avi files give me some hint. 回答1: You might be missing the codec the file is encoded with..you can use any open source tools like this, to find out the codec that is missing. 来源: https://stackoverflow.com/questions/4089997/how-to-play-avi-files-with-jmf

How can I get the frames per sec from the header of an avi xvid video file?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 04:22:43
问题 The following is a hex-ascii dump of the first 300 bytes of an avi xvid file: |52|49|46|46|8c|79|95|00|41|56|49|20|4c|49|53|54|94|6a|00|00 RIFF.y..AVI LIST.j.. |68|64|72|6c|61|76|69|68|38|00|00|00|40|9c|00|00|00|ec|36|00 hdrlavih8...@.....6. |00|00|00|00|10|00|00|00|81|01|00|00|00|00|00|00|01|00|00|00 .................... |df|9e|01|00|d0|02|00|00|40|02|00|00|00|00|00|00|00|00|00|00 ........@........... |00|00|00|00|00|00|00|00|4c|49|53|54|3c|69|00|00|73|74|72|6c ........LIST<i..strl |73|74|72

How do I refresh the video codecs shown in the list presented by AviSaveOptions() to show a newly installed codec?

試著忘記壹切 提交于 2019-12-12 18:52:28
问题 I have a Delphi 6 application with a Wizard that helps people select an appropriate video codec. It uses AviSaveOptions() to show the user a list of video codecs so they can select one. The choice is saved to disk for later re-use. At one point in the Wizard, the user is directed to download and install one out of several popular video codecs using their browser in the event they don't have a suitable one. However, after they install the new video codec and return to my app, when I call

Example code not working with DirectShow

与世无争的帅哥 提交于 2019-12-12 03:26:35
问题 that's my problem: I'm trying to create a game for a school project and I created a video for it, so I googled a little bit and discovered that DirectShow provides some method to play .avi files, so I created a new project and pasted the example code I found here, but this won't work because it throws an exception on &pEvent, &pControl and pGraph. The exception reports: Access violation reading location 0x04186000. How could I solve this problem? (I'm a very newbie with DirectShow so I'm

OpenCV - Play AVI File

核能气质少年 提交于 2019-12-12 02:35:34
问题 I am trying to play in avi file using opencv c++ in ubuntu but i am getting no output. The code im using is a standard code that i found online that is used to play an avi video but im seeing no output. And yes the video is in the same directory as my src code folder. The only thing im seeing is that on the first iteration of the while loop, frame is empty and hence breaks. but i do not know why it is happening as the video is working on vlc. I would really appreciate some help here as i have

Failed to convert .avi to .mp4 in iOS objective-c

…衆ロ難τιáo~ 提交于 2019-12-11 15:08:20
问题 I am using a camera to record video's and save them into my documents folder. The problem I am facing is that the video's I got from the camera are .avi files and have to be converted to .mp4 (or any other allowed format). I use the code below: SOURCE: iOS Convert AVI to MP4 Format programatically NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString *filePath = [documentsDirectory