Newest 'x264' Questions - Stack Overflow

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

Les articles publiés sur le site

  • ffmpeg not working after update to Mavericks

    26 février 2015, par Hudson Buddy

    After recently updating to Mavericks 10.9.5, my installation of ffmpeg has been bugging out

    Error:

    dyld: Library not loaded: /usr/local/lib/libx264.142.dylib
      Referenced from: /usr/local/bin/ffmpeg
      Reason: image not found
    Trace/BPT trap: 5
    

    Any thoughts? I'm not very familar with manual compiling and I installed ffmpeg through Homebrew.

    I tried uninstalling and doing:

    brew install ffmpeg --HEAD
    brew install ffmpeg --build-from-source
    

    but it spits back a ./configure error

    ==> ./configure --prefix=/usr/local/Cellar/ffmpeg/2.4.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample
    If you think configure made a mistake, make sure you are using the latest
    version from Git.  If the latest version fails, report the problem to the
    ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
    Include the log file "config.log" produced by configure as this will help
    solve the problem.
    
    READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting
    
    These open issues may also help:
    gpac 0.5.0 doesn't build against ffmpeg 2.4.1 (https://github.com/Homebrew/homebrew/issues/32978)
    
  • libx264 bitrate to high for streaming

    26 février 2015, par KevinA

    I'm using libx264 to encode video captured at 1080p 24fps from a video camera. The output of the encoder goes to Live555 for streaming. I cannot get the bitrate below 30 mb/s.

    My Current Settings for x264 are:

    if (x264_param_default_preset(&m_pParam, "ultrafast", "zerolatency") != 0){
        return false;
    }
    int fps = 24;
    m_pParam.i_threads = 1;
    m_pParam.i_fps_num = fps;
    m_pParam.i_fps_den = 1;
    m_pParam.i_width = m_iWidthOut;
    m_pParam.i_height = m_iHeightOut;
    
    // One keyframe per X frames:
    m_pParam.i_keyint_max = 60;
    
    //Rate control:
    m_pParam.rc.i_rc_method = X264_RC_CRF;
    m_pParam.rc.f_rf_constant = fps - 5;
    m_pParam.rc.f_rf_constant_max = fps + 5;
    //m_pParam.i_sps_id = 7;
    //For streaming:
    m_pParam.b_repeat_headers = 1;
    m_pParam.b_annexb = 1;
    m_pParam.b_intra_refresh = 1;
    
    if (x264_param_apply_profile(&m_pParam, "main") != 0) {
        return false;
    }
    
    return true;
    

    Changing the preset seems to only slow the encoding rate and consequently the frame rate.

    How can I get the bitrate below 30mb/s so I can stream to something like a phone?

  • ffmpeg 10.04 Could Not Find Codec Parameters [closed]

    12 février 2015, par Dmitry

    I am getting an error while executing the command ffmpeg -i /path/to/video.mp4 :

      ffmpeg version git-2012-07-24-93342de Copyright (c) 2000-2012 the FFmpeg developers
          built on Jul 24 2012 23:55:41 with gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1)
          configuration: --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-swscale --enable-vdpau --enable-version3 --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab
          libavutil      51. 65.100 / 51. 65.100
          libavcodec     54. 44.100 / 54. 44.100
          libavformat    54. 20.100 / 54. 20.100
          libavdevice    54.  2.100 / 54.  2.100
          libavfilter     3.  3.100 /  3.  3.100
          libswscale      2.  1.100 /  2.  1.100
          libswresample   0. 15.100 /  0. 15.100
          libpostproc    52.  0.100 / 52.  0.100
        [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a1b240] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), 1280x720): unspecified pixel format
        Consider increasing the value for the 'analyzeduration' and 'probesize' options
        /path/to/video.mp4: could not find codec parameters
    
  • Does ffmpeg fate testing include x264 encoding test also ?

    5 février 2015, par Shivraj Patil

    Ffmpeg fate tests all the decoders(hevc, h264, etc). If I use x264 libraries so as to encode the video, does the fate tests x264 encoder also? If yes how should I check the same?

  • LSB replacement (n & 1) | b causing segmentation fault : 11

    2 février 2015, par progdo

    I'm trying to to apply LSB replacement on int16_t. But it only accepts 0 bit, if I replace with 1 bit, it gives me segmentation fault. Any help? Specifically, I'm modifying x264 dct coefficients,

    h->dct.luma4x4[2][2] = ((h->dct.luma4x4[2][2]) & ~1) | 1
    

    Some how it gives me segmentation fault. It was ok with 0 bit.