I use these following extra setting for h264 encoding, where o_v_st is the ouput video stream<br>I can send you a complete sample code if you need more information<br><br>    // for H264<br>    o_v_st->codec->me_range = 16;<br>
    o_v_st->codec->max_qdiff = 4;<br><br>    // lower value for higher quality range: 0-52<br>    o_v_st->codec->qmin = 10;<br>    o_v_st->codec->qmax = 26;<br><br>    o_v_st->codec->qcompress = 0.6;<br>
<br><br><br><div class="gmail_quote">On Sat, May 26, 2012 at 1:37 PM, Christian Brümmer <span dir="ltr"><<a href="mailto:christian.bruemmer@gmx.de" target="_blank">christian.bruemmer@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    i'm new to libav and video compression at all. What i tried so far
    is reusing output-example.c or decoding-encoding.c slightly modyfied
    for compiling on VS++2010 (win7) and to use it for x264 encoding.
    One of my main problems are that i didnt find up-to-date x264
    configurations (c: hardcoded) working with current ffmpeg build.
    Most examples i found (around 2010) using deprecated flags and
    functions for configuration and cause i dont know what most of that
    flag does - so i can't replace them with up-to-date right ones.<br>
    <br>
    Would be nice to get a example configuration which is working
    (c-code and may without using ffmpeg-presets) so i can make sure
    that my problems (crashes on avcodec_encode_video or
    av_interleaved_write_frame()) not caused by bad codec
    configurations!<br>
    <br>
    By the way: my avcodec_encode_video returns 32 times "0" before
    really writing a frame and returning a valid byte size - can this be
    a right behaviour?<br>
    <br>
    Thanks for reading!<br>
    Regards,<br>
    Christian<br>
    <a href="http://www.libav.org/doxygen/master/group__lavc__encoding.html#ga22847c21918ee93a4d05f7ffb419f9a9" target="_blank"></a><a href="http://ffmpeg.org/doxygen/0.6/output-example_8c.html" target="_blank"></a>
  </div>

<br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>ArasH<br><br>