[Libav-user] Encoding video to memory instead of file (alternative to avformat_new_stream)

Carl Eugen Hoyos ceffmpeg at gmail.com
Tue Jan 23 00:10:05 EET 2018

2018-01-17 9:06 GMT+01:00 Frederick Koh <FrederickK at xrvision.com>:
> I am trying to encode RGB pixels in memory into the H264 format
> to be streamed out.

Note that while x264 does support rgb encoding, the resulting
stream can only be decoded with libavcodec-based players.

> So I need the encoding to be in memory rather than in a file.
> So far the examples I have seen  require  streams created
> by calling "avformat_new_stream" which seems to only
> support files.

The encoding example doc/examples/encode_video.c does
not use libavformat.

Carl Eugen

More information about the Libav-user mailing list