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 <[email protected]> namens laddoe 
<[email protected]>
Verzonden: donderdag 18 februari 2021 01:27
Aan: [email protected] <[email protected]>
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.
_______________________________________________
ffmpeg-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to