View Full Version : avi audio muxing in mencoder
Doom9
27th June 2005, 17:52
In mencoder we have the audio-density <1-50> parameter which indicates how many audio chunks will be used per second if the audio is CBR. But, how much does fit into a chunk?
And how big is a vbr mp3 packet (according to the man page each packet goes into a separate chunk)
stephanV
28th June 2005, 09:09
In mencoder we have the audio-density <1-50> parameter which indicates how many audio chunks will be used per second if the audio is CBR. But, how much does fit into a chunk?
Practically, as much as you want to fit in there. The more chunks per second you use, the more overhead you'll get. E.g. VirtualDub has a standard setting of 1 audio chunk per video frame.
And how big is a vbr mp3 packet (according to the man page each packet goes into a separate chunk)
In byte-size it is variable of course (thats why its VBR).
MPEG1 layer III is 1152 samples per audio-frame.
Doom9
28th June 2005, 17:56
The more chunks per second you use, the more overhead you'll get.So chunks incurr some kind of overhead then.. how much per chunk?
stephanV
29th June 2005, 04:38
*sigh*
Thats pretty common knowledge I thought... :search:
Of course chunks will cause overhead because you need chunk headers and/or index entries to actually know where a video or audio chunk starts. It would be kinda difficult to decode interleaved streams if you don't know to which stream the data you are decoding belongs.
24 bytes per chunk for legacy, 16 bytes per chunk for OpenDML.
Doom9
29th June 2005, 09:29
Thats pretty common knowledge I thoughtI'm a clueless n00b after all ;) Though, please point me to the search that yields that result or don't use the smilie.. it's only to be used if with a reasonably formulated search you can find the answer. Yes I know about AVI overhead, I know the size of one unit of overhead, but none of the documents I found said 1 chunk generates one unit of overhead.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.