avimux

Muxes raw or compressed audio and/or video streams into an AVI file.

Example launch lines

(write everything in one line, without the backslash characters)

 gst-launch-1.0 videotestsrc num-buffers=250 \
 ! 'video/x-raw,format=(string)I420,width=320,height=240,framerate=(fraction)25/1' \
 ! queue ! mux. \
 audiotestsrc num-buffers=440 ! audioconvert \
 ! 'audio/x-raw,rate=44100,channels=2' ! queue ! mux. \
 avimux name=mux ! filesink location=test.avi

This will create an .AVI file containing an uncompressed video stream with a test picture and an uncompressed audio stream containing a test sound.

 gst-launch-1.0 videotestsrc num-buffers=250 \
 ! 'video/x-raw,format=(string)I420,width=320,height=240,framerate=(fraction)25/1' \
 ! xvidenc ! queue ! mux. \
 audiotestsrc num-buffers=440 ! audioconvert ! 'audio/x-raw,rate=44100,channels=2' \
 ! lame ! queue ! mux. \
 avimux name=mux ! filesink location=test.avi

This will create an .AVI file containing the same test video and sound as above, only that both streams will be compressed this time. This will only work if you have the necessary encoder elements installed of course.

Hierarchy

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstElement
                ╰──avimux

Implemented interfaces

Factory details

Authors: – GStreamer maintainers

Classification:Codec/Muxer

Rank – primary

Plugin – avi

Package – GStreamer Good Plug-ins

Pad Templates

audio_%u

audio/x-raw:
         format: { U8, S16LE, S24LE, S32LE }
           rate: [ 1000, 96000 ]
       channels: [ 1, 65535 ]
audio/mpeg:
    mpegversion: 1
          layer: [ 1, 3 ]
           rate: [ 1000, 96000 ]
       channels: [ 1, 2 ]
audio/mpeg:
    mpegversion: 4
  stream-format: raw
           rate: [ 1000, 96000 ]
       channels: [ 1, 2 ]
audio/x-ac3:
           rate: [ 1000, 96000 ]
       channels: [ 1, 6 ]
audio/x-alaw:
           rate: [ 1000, 48000 ]
       channels: [ 1, 2 ]
audio/x-mulaw:
           rate: [ 1000, 48000 ]
       channels: [ 1, 2 ]
audio/x-wma:
           rate: [ 1000, 96000 ]
       channels: [ 1, 2 ]
     wmaversion: [ 1, 2 ]

Presencerequest

Directionsink

Object typeGstPad


src

video/x-msvideo:

Presencealways

Directionsrc

Object typeGstPad


video_%u

video/x-raw:
         format: { YUY2, I420, BGR, BGRx, BGRA, GRAY8, UYVY, v210 }
          width: [ 16, 4096 ]
         height: [ 16, 4096 ]
      framerate: [ 0/1, 2147483647/1 ]
image/jpeg:
          width: [ 16, 4096 ]
         height: [ 16, 4096 ]
      framerate: [ 0/1, 2147483647/1 ]
video/x-divx:
          width: [ 16, 4096 ]
         height: [ 16, 4096 ]
      framerate: [ 0/1, 2147483647/1 ]
    divxversion: [ 3, 5 ]
video/x-msmpeg:
          width: [ 16, 4096 ]
         height: [ 16, 4096 ]
      framerate: [ 0/1, 2147483647/1 ]
  msmpegversion: [ 41, 43 ]
video/mpeg:
          width: [ 16, 4096 ]
         height: [ 16, 4096 ]
      framerate: [ 0/1, 2147483647/1 ]
    mpegversion: { (int)1, (int)2, (int)4 }
   systemstream: false
video/x-h263:
          width: [ 16, 4096 ]
         height: [ 16, 4096 ]
      framerate: [ 0/1, 2147483647/1 ]
video/x-h264:
  stream-format: byte-stream
      alignment: au
          width: [ 16, 4096 ]
         height: [ 16, 4096 ]
      framerate: [ 0/1, 2147483647/1 ]
video/x-dv:
          width: 720
         height: { (int)576, (int)480 }
      framerate: [ 0/1, 2147483647/1 ]
   systemstream: false
video/x-huffyuv:
          width: [ 16, 4096 ]
         height: [ 16, 4096 ]
      framerate: [ 0/1, 2147483647/1 ]
video/x-wmv:
          width: [ 16, 4096 ]
         height: [ 16, 4096 ]
      framerate: [ 0/1, 2147483647/1 ]
     wmvversion: [ 1, 3 ]
image/x-jpc:
          width: [ 1, 2147483647 ]
         height: [ 1, 2147483647 ]
      framerate: [ 0/1, 2147483647/1 ]
video/x-vp8:
          width: [ 1, 2147483647 ]
         height: [ 1, 2147483647 ]
      framerate: [ 0/1, 2147483647/1 ]
image/png:
          width: [ 16, 4096 ]
         height: [ 16, 4096 ]
      framerate: [ 0/1, 2147483647/1 ]

Presencerequest

Directionsink

Object typeGstPad


Properties

bigfile

“bigfile” gboolean

Support for openDML-2.0 (big) AVI files

Flags : Read / Write

Default value : true


The results of the search are