[Libav-user] Have trouble saving opengl-generated RGB image sequence to .mp4
belyakov-i at spsinf.ru
Wed Feb 26 11:47:00 EET 2020
I asked a question on stackoverflow:
Didn't get any useful answers so far. Can someone help me?
My code is mostly composed of "encode_video.c" example: https://ffmpeg.org/doxygen/trunk/encode_video_8c-example.html
It generates a malformed video file which I can transform into a well-formed one with ffmpeg tool:
ffmpeg -i input.mp4 -vcodec copy test.mp4
The tool prints the following warnings:
[mp4 @ 00000208ce831240] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[mp4 @ 00000208ce831240] pts has no value
I really want to get a well-formed file in one pass using only c++ code.
I work on Windows 10 and use FFMPEG C headers and .lib files from here:
and .dll files from here (no proper .dll files in dev build for some reason...):
I tried to compile and launch "encode_video.c" example, and it creates malformed video too (with libx264)
More information about the Libav-user