Have trouble saving opengl-generated RGB image sequence to .mp4
I asked a question on stackoverflow: https://stackoverflow.com/questions/60339670/have-problems-using-ffmpeg-to-s... 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 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: https://ffmpeg.zeranoe.com/builds/win64/dev/ffmpeg-20200224-bc9b635-win64-de... and .dll files from here (no proper .dll files in dev build for some reason...): https://ffmpeg.zeranoe.com/builds/win64/shared/ffmpeg-20200224-bc9b635-win64... I tried to compile and launch "encode_video.c" example, and it creates malformed video too (with libx264)
On Tue, Feb 25, 2020, at 7:49 AM, Igor Belyakov wrote:
My code is mostly composed of "encode_video.c" example: https://ffmpeg.org/doxygen/trunk/encode_video_8c-example.html
This mailing list (ffmpeg-user) is only for questions involving the FFmpeg command-line tools (ffmpeg, ffplay, ffprobe). Questions about using the FFmpeg libraries (libavcodec, libavformat, etc) should be asked at libav-user. See: https://ffmpeg.org/contact.html https://ffmpeg.org/mailing-list-faq.html#What-type-of-questions-can-I-ask_00...
On Tue, 25 Feb 2020, Lou Logan wrote:
On Tue, Feb 25, 2020, at 7:49 AM, Igor Belyakov wrote:
My code is mostly composed of "encode_video.c" example: https://ffmpeg.org/doxygen/trunk/encode_video_8c-example.html
This mailing list (ffmpeg-user) is only for questions involving the FFmpeg command-line tools (ffmpeg, ffplay, ffprobe). Questions about using the FFmpeg libraries (libavcodec, libavformat, etc) should be asked at libav-user.
Does it make sense to separate the two? libav-user traffic is quite low, also there is the libav v.s. ffmpeg confusion, so maybe it is just better to simply merge libav-user to ffmpeg-user. Regards, Marton
On Tue, Feb 25, 2020, at 10:41 AM, Marton Balint wrote:
Does it make sense to separate the two?
I don't think so, but I'm not strongly opinionated about it. Library usage and cli tool usage are two completely different topics. I don't know how others here feel, but I have no interest in reading library questions.
libav-user traffic is quite low,
libav-user averages ~50 messages per month in the last year. Seems like enough to me. If it were down to single digits then message count would be more of a factor. Do you think library questions would get more attention if all user help was in one mailing list?
also there is the libav v.s. ffmpeg confusion
I don't know how relevant that is anymore. Libav is inactive. I haven't seen any user questions involving it for quite a while (here or anywhere else).
On Tue, 25 Feb 2020, Lou Logan wrote:
On Tue, Feb 25, 2020, at 10:41 AM, Marton Balint wrote:
Does it make sense to separate the two?
I don't think so, but I'm not strongly opinionated about it.
Library usage and cli tool usage are two completely different topics. I don't know how others here feel, but I have no interest in reading library questions.
libav-user traffic is quite low,
libav-user averages ~50 messages per month in the last year. Seems like enough to me. If it were down to single digits then message count would be more of a factor.
Do you think library questions would get more attention if all user help was in one mailing list?
Probably. Maybe it's just me, but I only noticed the libav-user mailing list recently and I have been around for several years now... Also ffmpeg-devel has no distinction about the API and ffmpeg.c development, but I guess the reason for that is historical. Regards, Marton
participants (3)
-
Igor Belyakov -
Lou Logan -
Marton Balint