Newest 'x264' Questions - Stack Overflow

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

Les articles publiés sur le site

  • How to reduce latency when streaming x264

    10 janvier 2014, par tobsen

    I would like to produce a zerolatency live video stream and play it in VLC player with as little latency as possible.

    This are the settings I currently use:

    x264_param_default_preset( &m_Params, "veryfast", "zerolatency" );
    
    m_Params.i_threads              =   2;
    m_Params.b_sliced_threads       =   true;
    m_Params.i_width                =   m_SourceWidth;
    m_Params.i_height               =   m_SourceHeight;
    
    m_Params.b_intra_refresh        =   1;
    
    m_Params.b_vfr_input            =   true;
    m_Params.i_timebase_num         =   1;
    m_Params.i_timebase_den         =   1000;
    
    m_Params.i_fps_num              =   1;
    m_Params.i_fps_den              =   60;
    
    m_Params.rc.i_vbv_max_bitrate   =   512;
    m_Params.rc.i_vbv_buffer_size   =   256;
    m_Params.rc.f_vbv_buffer_init   =   1.1f;
    
    m_Params.rc.i_rc_method         =   X264_RC_CRF;
    m_Params.rc.f_rf_constant       =   24;
    m_Params.rc.f_rf_constant_max   =   35;
    
    m_Params.b_annexb               =   0;
    m_Params.b_repeat_headers       =   0;
    m_Params.b_aud                  =   0;
    
    x264_param_apply_profile( &m_Params, "high" );
    

    Using those settings, I have the following issues:

    • VLC shows lots of missing frames (see screenshot, "verloren"). I am not sure if this is an issue.
    • If I set a value <200ms for the network stream delay in VLC, VLC renders a few frames and than stops to decode/render frames.
    • If I set a value >= 200ms for the network stream delay in VLC, everything looks good so far but the latency is, obviously, 200ms, which is too high.

    Question: Which settings (x264lib and VLC) should I use in order to encode and stream with as little latency as possible?

    enter image description here

  • PSNR calculation in H.264 packet loss

    5 janvier 2014, par user2425275

    I'm streaming H.264(libx264) videos using RTP. I would like to compare the different error resiliency methods in h.264. In some research papers, psnr was used to compare them. So I would like to know how to calculate the psnr of the h.264 video during streaming.

  • Could x264 do the audio recording job on Android

    27 décembre 2013, par Brendon Tsai

    I am trying to use x264 on Android to build a video system, which could do the encoding and decoding work. I've finished the video data capturing and encoding work. But I am not sure about how to deal with the audio stuff. Does x264 support audio recording? Or should I use some other api provided by Android? If I do the video capturing and audio capturing job seperately, how could I make sure they are time synchronization?

  • OpenCV binary deployment (Linux)

    25 décembre 2013, par Vadim Kantorov

    In the institute we use Scientific Linux 5 on the cluster and I need to deploy an app that uses a modern OpenCV distribution (2.3.1 or 2.4.0). I don't have root privileges on the cluster.

    Essentially, how do I package all the dynamic binary dependencies of ffmpeg (and hopefully x264), opencv so that I can xcopy-deploy my app?

    I have a working installation of OpenCV 2.3.1 on Ubuntu. If there was a way to controllably load the executable and copy along all the dynamic dependencies, I could use it.

    Thanks, Vadim

  • android hw h264 encoder (x264 ?) for ffmpeg

    22 décembre 2013, par user2905958

    I'm integrating ffmpeg into android, while found the h264 encoder is missing. I looked around and seems it requires a x264 lib for that, but I'm not sure if x264 supports hw acceleration, or just a pure sw encoder? And is there any hw h264 encoder available for ffmpeg?