문제

Currentl, I have a PCM stream, and want to record a segment of the stream to an avi file, which can be played using an avi-supportted media player.

I am wondering:

  1. Any conversion is needed to record PCM streams to AVI file?
  2. How to write the file header to avi file correctly, so that the media player can read it.
  3. Is there open source library or tools which have avi file creation and writing?

Thanks

도움이 되었습니까?

해결책

you can use ffmpeg for this porpose.

For example :
    ffmpeg -i in_file -f s16le -acodec pcm_s16le out.avi
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top