Newest 'libx264' Questions - Stack Overflow

http://stackoverflow.com/questions/tagged/libx264

Les articles publiés sur le site

  • Two-pass (or multipass) encoding with FFmpeg libraries

    13 mars 2014, par taansari

    I want to do two pass encoding using FFmpeg libraries. Sample codes provided as documentation show encoding/decoding, muxing/demuxing etc., but the encoding process is single pass. I want to do/experiment with two-pass encoding. Is there some example/sample provided elsewhere?

    Thanks in advance!

  • how to set x264 encoder output 720P when the input is 1080P on linux

    8 mars 2014, par Lyric

    I use libx264 on ubuntu, programming use C.

    I want to set x264 encoder output 720P. The input image size is 1080P. How to set the params?

    I don't know whether set the two parameters:

    param->vui.i_sar_width = ?; 
    param->vui.i_sar_height= ?;
    

    or another parameter crop-rect?

  • libx264 runtime check failure #2

    4 mars 2014, par PeeVee75

    I have built libx264.dll as explained in http://doom10.org/index.php?topic=1876.0

    However, when I try to run a simple test by just initializing an x264_param_t variable to the default values, and exiting the program, I get a runtime check failure #2 error.

    I'm on a Win7 machine with VS2005. Below is the code I'm trying to run. Is there something I need to clean in x264_param_t before exiting?

    extern "C" {
      #include "stdint.h"
      #include "x264.h"
    }
    
    void InitX264Params(x264_param_t *outX264Param)
    {
      x264_param_default(outX264Param);
    }
    
    int main(int argc,const char **argv)
    {
      x264_param_t x264Param;
      InitX264Params(&x264Param);
      return 0;
    }
    
  • FFMPEG with x264 encoding

    21 février 2014, par mmmaaak

    I'm trying ton encode video from set of jpeg images to h264, using ffmpeg + x264 for it. I init AVCodecContext in such way:

    _outputCodec = avcodec_find_encoder(AV_CODEC_ID_H264);
    _outputCodecContext = avcodec_alloc_context3(_outputCodec);
    avcodec_get_context_defaults3(_outputCodecContext, _outputCodec);
    _outputCodecContext->width                 = _currentWidth;
    _outputCodecContext->height                = _currentHeight;
    _outputCodecContext->pix_fmt               = AV_PIX_FMT_YUV420P;
    _outputCodecContext->time_base.num         = 1;
    _outputCodecContext->time_base.den         = 25;
    _outputCodecContext->profile =FF_PROFILE_H264_BASELINE;
    _outputCodecContext->level = 50;
    

    avcodec_open return no errors, anything is OK, but when I call avcodec_encode_video2() I get such messages (I think it's from x264):

    using mv_range_thread = %d
    
    %s
    
    profile %s, level %s
    

    And then app crashs. My be there are more neccessary settings for codec context, when use x264 &&

  • How to reduce the quality of H264 Video

    20 février 2014, par user3239282

    How to reduce the quality of H264 video using libx264 library, for transmission over internet.

    I want to reduce the quality, so that the frame size will become small and decreases the network latency while transferring over internet.