From: Thomas Fillon Date: Tue, 26 Nov 2013 22:19:25 +0000 (+0100) Subject: Encoder: Mp3Encoder add xingmux in the pipe in order to fix duration X-Git-Tag: 0.5.2~42 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4a00f1661e753ec1577cf3529a0832e0f7190343;p=timeside.git Encoder: Mp3Encoder add xingmux in the pipe in order to fix duration From Gstreamer manual : "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." --- diff --git a/timeside/encoder/mp3.py b/timeside/encoder/mp3.py index 28f6169..a0c6d48 100644 --- a/timeside/encoder/mp3.py +++ b/timeside/encoder/mp3.py @@ -42,6 +42,7 @@ class Mp3Encoder(GstEncoder): self.pipe = '''appsrc name=src ! audioconvert ! lamemp3enc target=quality quality=2 encoding-engine-quality=standard + ! xingmux ! id3v2mux '''