[FFmpeg-user] Encoding .png images with h264 to a file on disk
laddoe
xyfix at hotmail.com
Sun Feb 21 13:24:04 EET 2021
Is there anyone who can help me with my question I posted a couple of days ago with subject "Encoding .png images with h264 to a file on disk" ?
________________________________
Van: ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> namens laddoe <xyfix at hotmail.com>
Verzonden: donderdag 18 februari 2021 01:27
Aan: ffmpeg-user at ffmpeg.org <ffmpeg-user at ffmpeg.org>
Onderwerp: [FFmpeg-user] Encoding .png images with h264 to a file on disk
Hi there,
Can somebody help me to find out why I end up with a file on disk that is only 24 kb and not readable by vlc or so, while I send valid YUV images to the codec. I have added the .h and .cpp file. Up till "avcodec_receive_packet" everything seems to be OK. The function call "avcodec_send_frame" returns 0, so that must be OK but "avcodec_receive_packet" returns -11. If I flush the encoder (currently commented) then "avcodec_receive_packet" returns 0 and I can see encoded data if I store it on disk. Also the input image to the encoder is also correct (currently commented) and checked. I'm aiming for an intra-frame encoding, so I should get the encoded frame data back, but I don't get anything back even if I send 24 images to it.
More information about the ffmpeg-user
mailing list