- x264 for encoding high-quality video suitable for streaming to end users.
- FFmpeg for muxing, and for encoding audio. You will need at least
- version 4.0.
+ version 5.0.
- Working OpenGL; Movit works with almost any modern OpenGL implementation.
Nageru has been tested with Intel on Mesa (you want 11.2 or newer, due
void VideoEncoder::open_output_stream()
{
AVFormatContext *avctx = avformat_alloc_context();
- avctx->oformat = const_cast<decltype(avctx->oformat)>(oformat); // const_cast is a hack to work in FFmpeg both before and after 5.0.
+ avctx->oformat = oformat;
uint8_t *buf = (uint8_t *)av_malloc(MUX_BUFFER_SIZE);
avctx->pb = avio_alloc_context(buf, MUX_BUFFER_SIZE, 1, this, nullptr, nullptr, nullptr);