[Ffmpeg-devel] truncated audio output
Mon Jun 19 11:48:37 CEST 2006
Michael Niedermayer said:
> On Mon, Jun 19, 2006 at 10:01:36AM +0100, M?ns Rullg?rd wrote:
>> Michael Niedermayer said:
>> > Hi
>> > On Mon, Jun 19, 2006 at 12:11:26AM -0400, Justin Ruggles wrote:
>> >> After re-reading my post, I figured that my idea might be better
>> >> explained by a patch. Here is what it would look like if I modified the
>> >> pcm encoder to use my suggestion instead of frame_size=1, which is what
>> >> is used currently.
>> > i agree that a CODEC_CAP_VAR_FRAME_SIZE needs to be added ...
>> Couldn't a frame_size of 0 be used to signal this? Permitting a partial
>> last frame is also useful with some codecs.
> but what frame size would then be used for the previous frames?
> a codec might not support arbitrary large ones or might not allow non fixed
> except for the last
That would require a new flag.
> if all codecs which support arbitrary small last frames also support
> arbitrary large frames anywhere then of coarse frame_size=0 would be
> enough and iam fine with that too ...
That's the case I meant frame_size=0 would be used for.
Whatever solution we pick, it has to be able to handle both partial final
frame and true variable frame size.
mru at inprovide.com
More information about the ffmpeg-devel