Questions tagged [avi]

This tag is for questions about playback of, creation of, and programmatic interaction with, Audio Video Interleave (*.avi) files. The AVI format was introduced by Microsoft in 1992 and has been widely adopted and modified since, but remains mostly supported on Microsoft devices

The AVI - "Audio Video Interleave" - format was introduced by Microsoft in 1992 and has been widely adopted and modified since, notably with the widely-used file format extensions developed by the Matrox OpenDML group in February 1996.

AVI files can contain both audio and video data in a file container that allows synchronous audio-with-video playback.AVI is a derivative of the Resource Interchange File Format (RIFF), which divides a file's data into blocks, or "chunks." Each "chunk" is identified by a FourCC tag. An AVI file takes the form of a single chunk in a RIFF formatted file, which is then subdivided into two mandatory "chunks" and one optional "chunk". By way of the RIFF format, the audio-visual data contained in the "movi" chunk can be encoded or decoded by software called a codec, which is an abbreviation for (en)coder/decoder. Upon creation of the file, the codec translates between raw data and the (compressed) data format used inside the chunk. An AVI file may carry audio/visual data inside the chunks in virtually any compression scheme, including Full Frame (Uncompressed), Intel Real Time (Indeo), Cinepak, Motion JPEG, Editable MPEG, VDOWave, ClearVideo / RealVideo, QPEG, and MPEG-4 Video.

Since AVI's introduction in the 1990s, evolving requirements for computerized video files have resulted in many situations that the original AVI spec did not anticipate, and a variety of responses have come forward. As a result, AVI-based videos have fallen victim to some format fragmentation, although there are widely-available codecs and other software (e.g. VLC Player) which can play all major types of video files.

526 questions
54
votes
4 answers

Does HTML5

I am wondering if the HTML5
phuang07
  • 981
  • 1
  • 9
  • 18
35
votes
4 answers

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

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…
user361676
  • 719
  • 2
  • 7
  • 16
13
votes
1 answer

Specify Compression Quality in Python for OpenCV Video Object

I must create low resolution AVI videos using a large number of jpeg images contained in individual directories. I have nearly one hundred directories, and each directory may contain many thousands of images. In order to automate this process, I…
KRH
  • 133
  • 1
  • 1
  • 5
13
votes
4 answers

OpenCV: VideoCapture::get(CV_CAP_PROP_FPS) returns 0 FPS

I am trying to get the fps from my camera so that I can pass it to the VideoWriter for outputting the video. However, I am getting 0 fps by calling VideoCapture::get(CV_CAP_PROP_FPS) from my camera. If I hardcode it, my video may be too slow or too…
swtdrgn
  • 1,154
  • 4
  • 17
  • 49
12
votes
4 answers

Create a Video Stream (AVI) from a Series of Images

There is an IP web camera that I wrote a .NET class for sometime ago. It's basically a Timer implementation that pings a snapshot CGI script from the camera every five seconds. The camera itself is very rudamentary; it does not have any sort of…
Josh Stodola
  • 81,538
  • 47
  • 180
  • 227
12
votes
1 answer

Extracting metadata from incomplete video files

Can anyone tell me where metadata is stored in common video file formats? And if it would be located towards the start of the file, or scattered throughout. I'm working with a remote object store containing a lot of video files and I want to extract…
npgall
  • 2,979
  • 1
  • 24
  • 24
11
votes
7 answers

Writing AVI files in OpenCV

There example on the net and code given in Learn OpenCv,Orielly. After many attempts the out.avi file is written with 0 bytes. I wonder where i went wrong. The following are the code i used... int main(int argc, char* argv[]) { CvCapture* input…
user43076
  • 671
  • 3
  • 10
  • 13
10
votes
3 answers

FFmpeg fourcc Avi codec support list?

A couple of similar questions are on stackoverflow, but I haven't been able to figure this exact problem out. I want to get a list of the fourccs for the avi codecs that FFMpeg can decode. I know how to get all the formats ffmpeg -formats and codecs…
Sugrue
  • 3,629
  • 5
  • 35
  • 53
8
votes
2 answers

Embedding .avi in JavaHelp?

I'm creating some help content for an application (built on NetBeans), and thought it would be useful in some cases to be able do show a tutorial video within the JavaHelp or have a link to open a video. I'd imagine it would be possible using the…
bjarven
  • 771
  • 2
  • 10
  • 27
7
votes
1 answer

Creating a video out of a set of images

I've been looking much time for creating a video(.avi file) from images using a C# code, Is there any library that maintain the video creating? I've been looking through AviFileWriter library, but that library seems to be too fixed since I need to…
idish
  • 3,190
  • 12
  • 53
  • 85
6
votes
1 answer

Recording Video in UYVY codec in Opencv

I have a camera from e-con systems which supports UYVU codec video recording. When I use their own software (QTCam) to record a video it records in avi format with YUY2 Codec, which the video opens and runs in VLC perfectly. Now I tried recording…
6
votes
2 answers

Python and OpenCV - Cannot write readable avi video files

I have a code like this: import numpy as np import cv2 cap = cv2.VideoCapture('C:/Users/Hilman/haatsu/drive_recorder/sample/3.mov') # Define the codec and create VideoWriter object fourcc = cv2.VideoWriter_fourcc(*'XVID') out =…
6
votes
1 answer

Why is ffmpeg start time non-zero in .ts format?

I'm using ffmpeg to transcode video to .ts format, and I am getting unexpected start times in the output file. To simplify things, I've started with a nice simple AVI file (no audio): ffmpeg -i in.avi ... Input #0, avi, from 'in.avi': Metadata: …
geekydel
  • 183
  • 1
  • 6
6
votes
5 answers

Batch File Loop Skip File if name contains

I am creating this batch file, that works with handbrakecli, to batch convert avi to mp4. However I am stuck in how to continue the loop and skip the current file inside a loop. FOR /R "%somepath%" %%G in (*.avi) DO ( rem skip if filename contains…
crosenblum
  • 1,869
  • 5
  • 34
  • 57
6
votes
3 answers

How to write frames to a video file?

I am currently writing an application that read frames from camera, modify them, and save them into a video file. I'm planing to do it with ffmpeg. There's rarely a documentation about ffmpeg. I can't find a way. Does any know how to do it? I need…
Mike Chen
  • 1,113
  • 8
  • 9
1
2 3
35 36