Question

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

Was it helpful?

Solution

you can use ffmpeg for this porpose.

For example :
    ffmpeg -i in_file -f s16le -acodec pcm_s16le out.avi
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top