SlideShare a Scribd company logo
1 of 2
Download to read offline
AVI RIFF Form
AVI files are identified by the FOURCC 'AVI ' in the RIFF header. All AVI files include
two mandatory LIST chunks, which define the format of the streams and the stream data,
respectively. An AVI file might also include an index chunk, which gives the location of
the data chunks within the file. An AVI file with these components has the following
form:

RIFF ('AVI '
   LIST ('hdrl' ... )
   LIST ('movi' ... )
   ['idx1' (<AVI Index>) ]
  )

The 'hdrl' list defines the format of the data and is the first required LIST chunk. The
'movi' list contains the data for the AVI sequence and is the second required LIST chunk.
The 'idx1' list contains the index. AVI files must keep these three components in the
proper sequence.

The 'hdrl' and 'movi' lists use subchunks for their data. The following example shows the
AVI RIFF form expanded with the chunks needed to complete these lists:

RIFF ('AVI '
   LIST ('hdrl'
        'avih'(<Main AVI Header>)
        LIST ('strl'
                'strh'(<Stream header>)
                'strf'(<Stream format>)
                [ 'strd'(<Additional header data>) ]
                [ 'strn'(<Stream name>) ]
                ...
              )
         ...
       )
   LIST ('movi'
        {SubChunk | LIST ('rec '
                          SubChunk1
                          SubChunk2
                          ...
                         )
            ...
        }
        ...
       )
   ['idx1' (<AVI Index>) ]
  )
Waveform Audio File Format (WAVE)

This section describes the Waveform format, which is used to represent digitized sound.

The WAVE form is defined as follows. Programs must expect (and ignore) any unknown
chunks encountered, as with all RIFF forms. However, <fmt-ck> must always occur
before <wave-data>, and both of these chunks are mandatory in a WAVE file.

             <WAVE-form> ->
                   RIFF
                   (
                                 'WAVE'
                                 <fmt-ck>           // Format
                                 [<fact-ck>]        // Fact chunk
                                 [<cue-ck>]          // Cue points
                                 [<playlist-ck>]      // Playlist
                                 [<assoc-data-list>] // Associated data list
                                 <wave-data>           // Wave data
                       )

The WAVE chunks are described in the following sections.

WAVE Format Chunk

The WAVE format chunk <fmt-ck> specifies the format of the <wave-data>. The <fmt-
ck> is defined as follows:

       <fmt-ck> ->
               fmt
               (
                           <common-fields>
                           <format-specific-fields>
                 )

       <common-fields> ->
              struct
              {
                        WORD wFormatTag;     // Format category
                        WORD wChannels;    // Number of channels
                        DWORDdwSamplesPerSec; // Sampling rate
                        DWORDdwAvgBytesPerSec; // For buffer estimation
                        WORD wBlockAlign;    // Data block size
              }
 

More Related Content

Viewers also liked

Idatz irakurmenaren prozesua 2
Idatz irakurmenaren prozesua 2Idatz irakurmenaren prozesua 2
Idatz irakurmenaren prozesua 2Bego Iturgaitz
 
27 september presentation ksau 2
27 september presentation ksau 227 september presentation ksau 2
27 september presentation ksau 2Mattias Larsson
 
Purdue's Memorial Mall
Purdue's Memorial MallPurdue's Memorial Mall
Purdue's Memorial Mallabaffes
 
Dostoevsky and Radicalism
Dostoevsky and RadicalismDostoevsky and Radicalism
Dostoevsky and RadicalismKirsten Lodge
 
Иностранные инвестиции в нефтегазовых проектах НК "КазМунайГаз"
Иностранные инвестиции в нефтегазовых проектах НК "КазМунайГаз"Иностранные инвестиции в нефтегазовых проектах НК "КазМунайГаз"
Иностранные инвестиции в нефтегазовых проектах НК "КазМунайГаз"АО "Самрук-Казына"
 
David Troy's Presentation at eComm 2009
David Troy's Presentation at eComm 2009David Troy's Presentation at eComm 2009
David Troy's Presentation at eComm 2009eCommConf
 
HRBA capacity building at grassroots
HRBA capacity building at grassrootsHRBA capacity building at grassroots
HRBA capacity building at grassrootsNazmul Ahsan Miraz
 
Chuyển mạch nhãn đa giao thức mpls
Chuyển mạch nhãn đa giao thức mplsChuyển mạch nhãn đa giao thức mpls
Chuyển mạch nhãn đa giao thức mplssuccessnguyen86
 
Marka ElçIsi Kimdir
Marka ElçIsi KimdirMarka ElçIsi Kimdir
Marka ElçIsi KimdirYouth Media
 
Using Micro-Video to Build Your Brand
Using Micro-Video to Build Your BrandUsing Micro-Video to Build Your Brand
Using Micro-Video to Build Your BrandAshley Gilmer
 
Feweb on tour - Van stage tot werken bij wijs
Feweb on tour - Van stage tot werken bij wijsFeweb on tour - Van stage tot werken bij wijs
Feweb on tour - Van stage tot werken bij wijsWijs
 
Pde2012 l8 a relational philosophy of education martin buber
Pde2012 l8 a relational philosophy of education martin buberPde2012 l8 a relational philosophy of education martin buber
Pde2012 l8 a relational philosophy of education martin buberEmma Grice
 
Multi-physics modelling for the safety assessment of complex structural syste...
Multi-physics modelling for the safety assessment of complex structural syste...Multi-physics modelling for the safety assessment of complex structural syste...
Multi-physics modelling for the safety assessment of complex structural syste...Franco Bontempi Org Didattica
 

Viewers also liked (20)

Using Corporate Data to Create Media Buzz
Using Corporate Data to Create Media BuzzUsing Corporate Data to Create Media Buzz
Using Corporate Data to Create Media Buzz
 
Idatz irakurmenaren prozesua 2
Idatz irakurmenaren prozesua 2Idatz irakurmenaren prozesua 2
Idatz irakurmenaren prozesua 2
 
Ap 5
Ap 5Ap 5
Ap 5
 
Balallaika CTF Team
Balallaika CTF TeamBalallaika CTF Team
Balallaika CTF Team
 
27 september presentation ksau 2
27 september presentation ksau 227 september presentation ksau 2
27 september presentation ksau 2
 
Продажи - двигатель бизнеса
Продажи - двигатель бизнесаПродажи - двигатель бизнеса
Продажи - двигатель бизнеса
 
Purdue's Memorial Mall
Purdue's Memorial MallPurdue's Memorial Mall
Purdue's Memorial Mall
 
Dostoevsky and Radicalism
Dostoevsky and RadicalismDostoevsky and Radicalism
Dostoevsky and Radicalism
 
Иностранные инвестиции в нефтегазовых проектах НК "КазМунайГаз"
Иностранные инвестиции в нефтегазовых проектах НК "КазМунайГаз"Иностранные инвестиции в нефтегазовых проектах НК "КазМунайГаз"
Иностранные инвестиции в нефтегазовых проектах НК "КазМунайГаз"
 
Paul Dorosh - Wheat Prices, Procurement and Stocks
Paul Dorosh - Wheat Prices, Procurement and StocksPaul Dorosh - Wheat Prices, Procurement and Stocks
Paul Dorosh - Wheat Prices, Procurement and Stocks
 
David Troy's Presentation at eComm 2009
David Troy's Presentation at eComm 2009David Troy's Presentation at eComm 2009
David Troy's Presentation at eComm 2009
 
HRBA capacity building at grassroots
HRBA capacity building at grassrootsHRBA capacity building at grassroots
HRBA capacity building at grassroots
 
Chuyển mạch nhãn đa giao thức mpls
Chuyển mạch nhãn đa giao thức mplsChuyển mạch nhãn đa giao thức mpls
Chuyển mạch nhãn đa giao thức mpls
 
GREE inc., in JMBACC
GREE inc., in JMBACCGREE inc., in JMBACC
GREE inc., in JMBACC
 
Marka ElçIsi Kimdir
Marka ElçIsi KimdirMarka ElçIsi Kimdir
Marka ElçIsi Kimdir
 
Using Micro-Video to Build Your Brand
Using Micro-Video to Build Your BrandUsing Micro-Video to Build Your Brand
Using Micro-Video to Build Your Brand
 
Feweb on tour - Van stage tot werken bij wijs
Feweb on tour - Van stage tot werken bij wijsFeweb on tour - Van stage tot werken bij wijs
Feweb on tour - Van stage tot werken bij wijs
 
Pde2012 l8 a relational philosophy of education martin buber
Pde2012 l8 a relational philosophy of education martin buberPde2012 l8 a relational philosophy of education martin buber
Pde2012 l8 a relational philosophy of education martin buber
 
Multi-physics modelling for the safety assessment of complex structural syste...
Multi-physics modelling for the safety assessment of complex structural syste...Multi-physics modelling for the safety assessment of complex structural syste...
Multi-physics modelling for the safety assessment of complex structural syste...
 
Perception
PerceptionPerception
Perception
 

Similar to Avi riff form

Utilizing kotlin flows in an android application
Utilizing kotlin flows in an android applicationUtilizing kotlin flows in an android application
Utilizing kotlin flows in an android applicationSeven Peaks Speaks
 
Forward Swift 2017: Media Frameworks and Swift: This Is Fine
Forward Swift 2017: Media Frameworks and Swift: This Is FineForward Swift 2017: Media Frameworks and Swift: This Is Fine
Forward Swift 2017: Media Frameworks and Swift: This Is FineChris Adamson
 
Meet Up - Spark Stream Processing + Kafka
Meet Up - Spark Stream Processing + KafkaMeet Up - Spark Stream Processing + Kafka
Meet Up - Spark Stream Processing + KafkaKnoldus Inc.
 
Présentation des différents standards de fichiers Mezzanine_AtelierFocusInnov...
Présentation des différents standards de fichiers Mezzanine_AtelierFocusInnov...Présentation des différents standards de fichiers Mezzanine_AtelierFocusInnov...
Présentation des différents standards de fichiers Mezzanine_AtelierFocusInnov...Marc Bourhis
 
Stupid Video Tricks, CocoaConf Seattle 2014
Stupid Video Tricks, CocoaConf Seattle 2014Stupid Video Tricks, CocoaConf Seattle 2014
Stupid Video Tricks, CocoaConf Seattle 2014Chris Adamson
 
Workshop NGS data analysis - 2
Workshop NGS data analysis - 2Workshop NGS data analysis - 2
Workshop NGS data analysis - 2Maté Ongenaert
 
Ffmpeg
FfmpegFfmpeg
Ffmpegduquoi
 
Simulation and Performance Analysis of AODV using NS 2.34 by Ashok Panwar
Simulation and Performance Analysis of AODV using NS 2.34 by Ashok PanwarSimulation and Performance Analysis of AODV using NS 2.34 by Ashok Panwar
Simulation and Performance Analysis of AODV using NS 2.34 by Ashok PanwarAshok Panwar
 
Media Frameworks Versus Swift (Swift by Northwest, October 2017)
Media Frameworks Versus Swift (Swift by Northwest, October 2017)Media Frameworks Versus Swift (Swift by Northwest, October 2017)
Media Frameworks Versus Swift (Swift by Northwest, October 2017)Chris Adamson
 
User guide wishbone serializer
User guide wishbone serializerUser guide wishbone serializer
User guide wishbone serializerdragonvnu
 
Vsam presentation PPT
Vsam presentation PPTVsam presentation PPT
Vsam presentation PPTAnil Polsani
 
AWS SSA Webinar 20 - Getting Started with Data Warehouses on AWS
AWS SSA Webinar 20 - Getting Started with Data Warehouses on AWSAWS SSA Webinar 20 - Getting Started with Data Warehouses on AWS
AWS SSA Webinar 20 - Getting Started with Data Warehouses on AWSCobus Bernard
 
Seismic Analysis Code (SAC)
Seismic Analysis Code (SAC)Seismic Analysis Code (SAC)
Seismic Analysis Code (SAC)ssuser8193e7
 
Oit And Indirect Illumination Using Dx11 Linked Lists
Oit And Indirect Illumination Using Dx11 Linked ListsOit And Indirect Illumination Using Dx11 Linked Lists
Oit And Indirect Illumination Using Dx11 Linked ListsHolger Gruen
 

Similar to Avi riff form (20)

Utilizing kotlin flows in an android application
Utilizing kotlin flows in an android applicationUtilizing kotlin flows in an android application
Utilizing kotlin flows in an android application
 
Forward Swift 2017: Media Frameworks and Swift: This Is Fine
Forward Swift 2017: Media Frameworks and Swift: This Is FineForward Swift 2017: Media Frameworks and Swift: This Is Fine
Forward Swift 2017: Media Frameworks and Swift: This Is Fine
 
Meet Up - Spark Stream Processing + Kafka
Meet Up - Spark Stream Processing + KafkaMeet Up - Spark Stream Processing + Kafka
Meet Up - Spark Stream Processing + Kafka
 
Ns2 introduction 2
Ns2 introduction 2Ns2 introduction 2
Ns2 introduction 2
 
Présentation des différents standards de fichiers Mezzanine_AtelierFocusInnov...
Présentation des différents standards de fichiers Mezzanine_AtelierFocusInnov...Présentation des différents standards de fichiers Mezzanine_AtelierFocusInnov...
Présentation des différents standards de fichiers Mezzanine_AtelierFocusInnov...
 
Stupid Video Tricks, CocoaConf Seattle 2014
Stupid Video Tricks, CocoaConf Seattle 2014Stupid Video Tricks, CocoaConf Seattle 2014
Stupid Video Tricks, CocoaConf Seattle 2014
 
Workshop NGS data analysis - 2
Workshop NGS data analysis - 2Workshop NGS data analysis - 2
Workshop NGS data analysis - 2
 
Ffmpeg
FfmpegFfmpeg
Ffmpeg
 
Web Services - WSDL
Web Services - WSDLWeb Services - WSDL
Web Services - WSDL
 
Simulation and Performance Analysis of AODV using NS 2.34 by Ashok Panwar
Simulation and Performance Analysis of AODV using NS 2.34 by Ashok PanwarSimulation and Performance Analysis of AODV using NS 2.34 by Ashok Panwar
Simulation and Performance Analysis of AODV using NS 2.34 by Ashok Panwar
 
Media Frameworks Versus Swift (Swift by Northwest, October 2017)
Media Frameworks Versus Swift (Swift by Northwest, October 2017)Media Frameworks Versus Swift (Swift by Northwest, October 2017)
Media Frameworks Versus Swift (Swift by Northwest, October 2017)
 
User guide wishbone serializer
User guide wishbone serializerUser guide wishbone serializer
User guide wishbone serializer
 
Vsam presentation PPT
Vsam presentation PPTVsam presentation PPT
Vsam presentation PPT
 
AWS SSA Webinar 20 - Getting Started with Data Warehouses on AWS
AWS SSA Webinar 20 - Getting Started with Data Warehouses on AWSAWS SSA Webinar 20 - Getting Started with Data Warehouses on AWS
AWS SSA Webinar 20 - Getting Started with Data Warehouses on AWS
 
Wsdl
WsdlWsdl
Wsdl
 
FFmpeg
FFmpegFFmpeg
FFmpeg
 
Useful cli commands v1
Useful cli commands v1Useful cli commands v1
Useful cli commands v1
 
Stupid Video Tricks
Stupid Video TricksStupid Video Tricks
Stupid Video Tricks
 
Seismic Analysis Code (SAC)
Seismic Analysis Code (SAC)Seismic Analysis Code (SAC)
Seismic Analysis Code (SAC)
 
Oit And Indirect Illumination Using Dx11 Linked Lists
Oit And Indirect Illumination Using Dx11 Linked ListsOit And Indirect Illumination Using Dx11 Linked Lists
Oit And Indirect Illumination Using Dx11 Linked Lists
 

Recently uploaded

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 

Recently uploaded (20)

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 

Avi riff form

  • 1. AVI RIFF Form AVI files are identified by the FOURCC 'AVI ' in the RIFF header. All AVI files include two mandatory LIST chunks, which define the format of the streams and the stream data, respectively. An AVI file might also include an index chunk, which gives the location of the data chunks within the file. An AVI file with these components has the following form: RIFF ('AVI ' LIST ('hdrl' ... ) LIST ('movi' ... ) ['idx1' (<AVI Index>) ] ) The 'hdrl' list defines the format of the data and is the first required LIST chunk. The 'movi' list contains the data for the AVI sequence and is the second required LIST chunk. The 'idx1' list contains the index. AVI files must keep these three components in the proper sequence. The 'hdrl' and 'movi' lists use subchunks for their data. The following example shows the AVI RIFF form expanded with the chunks needed to complete these lists: RIFF ('AVI ' LIST ('hdrl' 'avih'(<Main AVI Header>) LIST ('strl' 'strh'(<Stream header>) 'strf'(<Stream format>) [ 'strd'(<Additional header data>) ] [ 'strn'(<Stream name>) ] ... ) ... ) LIST ('movi' {SubChunk | LIST ('rec ' SubChunk1 SubChunk2 ... ) ... } ... ) ['idx1' (<AVI Index>) ] )
  • 2. Waveform Audio File Format (WAVE) This section describes the Waveform format, which is used to represent digitized sound. The WAVE form is defined as follows. Programs must expect (and ignore) any unknown chunks encountered, as with all RIFF forms. However, <fmt-ck> must always occur before <wave-data>, and both of these chunks are mandatory in a WAVE file. <WAVE-form> -> RIFF ( 'WAVE' <fmt-ck> // Format [<fact-ck>] // Fact chunk [<cue-ck>] // Cue points [<playlist-ck>] // Playlist [<assoc-data-list>] // Associated data list <wave-data> // Wave data ) The WAVE chunks are described in the following sections. WAVE Format Chunk The WAVE format chunk <fmt-ck> specifies the format of the <wave-data>. The <fmt- ck> is defined as follows: <fmt-ck> -> fmt ( <common-fields> <format-specific-fields> ) <common-fields> -> struct { WORD wFormatTag; // Format category WORD wChannels; // Number of channels DWORDdwSamplesPerSec; // Sampling rate DWORDdwAvgBytesPerSec; // For buffer estimation WORD wBlockAlign; // Data block size }