xingmux

xingmux — Adds a Xing header to MP3 files

Synopsis




                    GstXingMux;

Description

xingmux adds a Xing header to MP3 files. This contains information about the duration and size of the file and a seek table and is very useful for getting an almost correct duration and better seeking on VBR MP3 files.

This element will remove any existing Xing, LAME or VBRI headers from the beginning of the file.

Example launch line

gst-launch audiotestsrc num-buffers=1000 ! audioconvert ! lame ! xingmux ! filesink location=test.mp3
gst-launch filesrc location=test.mp3 ! xingmux ! filesink location=test2.mp3
gst-launch filesrc location=test.mp3 ! mp3parse ! xingmux ! filesink location=test2.mp3

Element Information

plugin mpegaudioparse
author Christophe Fergeau <teuf@gnome.org>
class Formatter/Metadata

Element Pads

name src
direction source
presence always
details audio/mpeg, mpegversion=(int)1, layer=(int)[ 1, 3 ]
name sink
direction sink
presence always
details audio/mpeg, mpegversion=(int)1, layer=(int)[ 1, 3 ]

Details

GstXingMux

typedef struct {
  GstElement element;

  GstPad *sinkpad, *srcpad;
} GstXingMux;

Opaque data structure.