View Single Post
Old 8th May 2012, 10:48   #10857  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
Quote:
Originally Posted by dukey View Post
Unless I am missing some critical piece of understanding.
You are.
There is no fixed packet size, the allocator just has some dummy value set, but since the source filter controls the allocator, it'll just have the packets matching the frame size perfectly, no extra allocation is done. Every packet has a different size.

For no VBR format you can use a static packet size, unless you specify it to be way huge, which isn't a good idea. However you have to tell the allocator some value in that allocator properties structure, could as well be "1" or something.
Most other splitters use a static size, and just increase that static size once a frame exceeds it. I used to do that as well, but implemented a better method recently.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote