Hi, all.

I've got output_example.c and add one source code string for encoding to
H264:
+    fmt->video_codec = CODEC_ID_H264;
    if (fmt->video_codec != CODEC_ID_NONE) {
        video_st = add_video_stream(oc, fmt->video_codec);
    }

And receive following error:
[libx264 @ 0x8dbb1c0] broken ffmpeg default settings detected
[libx264 @ 0x8dbb1c0] use an encoding preset (vpre)

So, five minutes of google and solution was found:
    if( c->codec_id == CODEC_ID_H264 )
    {
      c->me_range = 16;
      c->max_qdiff = 4;
      c->qmin = 10;
      c->qmax = 51;
      c->qcompress = 0.6;
    }

After that sample video was created. So I copy-paste this changes to my
program, but it's not work. I've show diffs between my program and
output_example, fixed them, but nothing change.

If I comment fmt->video_codec = CODEC_ID_H264 for using default flv-codec,
my program work fine.

So, I have any question:
1) last difference: in my program encode and write_frame process occured in
one thread, and main-thread wait for interruption signals. Can it have side
effects for h264?
2) Also I found difference in generated outputs. output_example generate
video with fps 25 and resolutions 640x480. But my program fps 1000 and no
resolution(for h264) and fps 1000 and resolution 640x480(for default
flv-code). How can it helps? Any Idea?
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to