From 4a00f1661e753ec1577cf3529a0832e0f7190343 Mon Sep 17 00:00:00 2001 From: Thomas Fillon Date: Tue, 26 Nov 2013 23:19:25 +0100 Subject: [PATCH] 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." --- timeside/encoder/mp3.py | 1 + 1 file changed, 1 insertion(+) 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 ''' -- 2.39.5