schnaader / precomp-cpp

Precomp, C++ version - further compress already compressed files
http://schnaader.info/precomp.php
Apache License 2.0
402 stars 52 forks source link

Support MP3 format in containers #20

Open schnaader opened 8 years ago

schnaader commented 8 years ago

There are several types of video/audio containers like avi, mpeg, mp4, ogm, webm, flv, mov, mkv, ts, 3gp that can contain MP3 streams. These will often be interleaved so that the detection (5 consecutive frames) won't succeed. Also, they don't have to be in the right order.

"Demuxing" the MP3 streams would fix this, for some containers like AVI this seems to be very easy, for others, it could be more complex.

wavetlan.com seems to be a good place for testfiles (section "Video Formats")

Diazonium commented 8 years ago

MKVtoolnix has a number of input modules for demuxing various media containers. Could be worth a look.