> I'm trying to write a generic encoder (generic = encode multiple
> formats, codecs), but am using dv/dvvideo as my current test codec.
> Borrowing code from ffmpeg.c and apiexample.c, I am generating a sample
> buffer of size avctx->frame_size * sample_size * numchannels.
> However, pcm_encode_init():107 sets avctx->frame_size = 1.
> What should the frame-size for dv/pcm_s16le be, and how can I calculate
> the correct frame-size for different codecs?
> Also, are there any good examples/tutorials/documentation on how to
> write interleaved frames when encoding? I've search everywhere and can
> only seem to find the occasional example of encoding video or encoding
> audio, but nothing that encodes both, and uses libavformat to interleave
> them together.
> ffmpeg-user mailing list
> [hidden email] > http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user >