Cannot Play Video Output of Libavcodec (ffmpeg) Encoding Example
问题 From FFMPEG's GitHub, I use the encode_video.c to generate a 1 second video. Here is the example in question: https://github.com/FFmpeg/FFmpeg/blob/master/doc/examples/encode_video.c I compile with: gcc -Wall -o ffencode encode_video.c -lavcodec -lavutil -lz -lm Clean compile, zero warnings. I test the program by running: ./ffencode video.mp4 libx264 Lots of stats printed out (expected based on source code) as well as ffmpeg logs, but ultimately no errors or warnings. However, then the