mpegtsmux, high overhead for a small aac bitrate

Vincent GĂ©nieux vincent.genieux at startigen.fr
Wed May 18 09:13:37 UTC 2016


Hi all,

I am facing an issue with the following pipeline :

audiotestsrc num-buffers=100000 ! audio/x-raw,channels=2 !  voaacenc 
bitrate=32000 ! mpegtsmux ! filesink location=test.ts

The tsdemux generate a stream with a huge bitrate compared to other 
containers, such as mp4mux :

audiotestsrc num-buffers=100000 ! audio/x-raw,channels=2 !  voaacenc 
bitrate=32000 ! mp4mux ! filesink location=test.mp4

$ ls -lh test.*
-rw-r--r-- 1 vincent vincent 9.6M May 18 10:56 test.mp4
-rw-r--r-- 1 vincent vincent  26M May 18 10:57 test.ts

I think there is a misconfiguration somewhere which leads the demux to 
create very small chunk with many headers. I also noticed we can reduce 
the size of the ts file with libav :

$ avconv -i test.ts -codec copy test2.ts
$ ls -lh *.ts
-rw-r--r-- 1 vincent vincent  26M May 18 10:57 test.ts
-rw-r--r-- 1 vincent vincent 9.8M May 18 11:03 test2.ts


Do you have any idea on how I could reduce the bitrate of the ts stream 
in my pipeline ?

--
vincent.


More information about the gstreamer-devel mailing list