[FFmpeg-devel] can not run encoding example of FFmpeg

cfd new newcfd at yahoo.com
Wed Oct 9 06:49:56 EEST 2024


Tried to run the following FFmpeg example:https://ffmpeg.org/doxygen/4.2/encode_video_8c-example.html

| 
| 
|  | 
FFmpeg: encode_video.c


 |

 |

 |


On Ubuntu 22.04 and Windows 11 with the latest FFmpeg. Two runs failed at 
ret = avcodec_send_frame(enc_ctx, frame);ret = -22.
What is wrong?


More information about the ffmpeg-devel mailing list