Hi,I have replaced stream->write(),
write_encoder_output_frame(buffer){
FILE fp = NULL;
if (NULL == fp)
{
fp = fopen(“out.264”, “wb”);
int ret = fwrite((char)buffer->planes[0].data, 1, buffer->planes[0].bytesused , fp);
}
else
{
int ret = fwrite((char*)buffer->planes[0].data, 1, buffer->planes[0].bytesused , fp);
}
}
The size of out.264 file sometimes adds,sometimes minus.
and ffplay can’t play the out.264.
I changed fp = fopen(“out.264”, “ab+”) ,also can’t play