]> git.parisson.com Git - timeside.git/commitdiff
Encoder: Mp3Encoder add xingmux in the pipe in order to fix duration
authorThomas Fillon <thomas@parisson.com>
Tue, 26 Nov 2013 22:19:25 +0000 (23:19 +0100)
committerThomas Fillon <thomas@parisson.com>
Tue, 26 Nov 2013 22:19:25 +0000 (23:19 +0100)
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

index 28f6169ae1a2a654cdbd723c1d2ad30db2b4fde7..a0c6d482d9f4c0074ccfa3706c87fa93513a9ce5 100644 (file)
@@ -42,6 +42,7 @@ class Mp3Encoder(GstEncoder):
         self.pipe = '''appsrc name=src
                   ! audioconvert
                   ! lamemp3enc target=quality quality=2 encoding-engine-quality=standard
+                  ! xingmux
                   ! id3v2mux
                   '''