FFmpeg: Encoding PCM 16 audio data Allocation error

前端 未结 1 818
太阳男子
太阳男子 2021-01-15 22:30

I am currently trying to encode some raw audio data with some video inside an avi container.

The video codec used is mpeg4 and I would like to use the PCM_16LE for t

相关标签:
1条回答
  • 2021-01-15 22:37

    As you can see in pcm_encode_init function in pcm.c

    All pcm encoders have frame_size = 0;. Why?

    Because in all PCM formats 'De facto' no such thing like frame, there is no compression by nature of PCM.

    So you should decide by your own how many samples you wanna to store in buffer

    0 讨论(0)
提交回复
热议问题