Newest 'libx264' Questions - Stack Overflow

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

Les articles publiés sur le site

  • How to enable libx264 for FFmpeg on Elastic Beanstalk

    2 août 2021, par user15575918

    My question is very similar to that of this person, but the suggested answer did not work for me.

    Using the following ffmpeg.config file in .ebextensions I am able to install ffmpeg, but without the libx264 codec.

    packages:
      yum:
        autoconf: []
        automake: []
        cmake: []
        freetype-devel: []
        gcc: []
        gcc-c++: []
        git: []
        libtool: []
        make: []
        nasm: []
        pkgconfig: []
        zlib-devel: []
    sources:
      /usr/local/src: http://ffmpeg.org/releases/ffmpeg-4.4.tar.bz2
    commands:
        ffmpeg_install:
          cwd: /usr/local/src/ffmpeg-4.4
          command: sudo ./configure --prefix="/usr" --enable-gpl && make && make install
    

    And so, to install libx264, I have tried replacing the lines after commands: with:

      01-install_libx264:
          cwd: /usr/local/src/
          command: git clone https://code.videolan.org/videolan/x264.git && cd x264 && ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" && make && make install
      02-ffmpeg_install:
          cwd: /usr/local/src/ffmpeg-4.4
          command: sudo ./configure --prefix="/usr" --enable-gpl --enable-libx264 && make && make install
    

    It didn't work, so I tried:

      01-install_libx264:
          cwd: /usr/local/src/
          command: curl -L -O https://code.videolan.org/videolan/x264/-/archive/master/x264-master.tar.bz2 && tar xjvf x264-master.tar.bz2 && cd x264-master && ./configure --bindir="$HOME/bin" --disable-shared --enable-nasm && make && make install
      02-ffmpeg_install:
          cwd: /usr/local/src/ffmpeg-4.4
          command: sudo ./configure --prefix="/usr" --enable-gpl --enable-libx264 && make && make install
    

    Neither have worked. Any ideas what I'm doing wrong here? Deployment fails, log says "Unsuccessful command execution on instance", but no further detail. Is there any way to debug the command execution better?

  • Error : undefined reference to `x264_encoder_open_155'

    27 juillet 2021, par Shankar

    I had done

    sudo apt-get update
    sudo apt-get upgrade
    

    after that i am getting this error while compiling project:

    ffmpeg/libavcodec/libx264.c:948: undefined reference to `x264_encoder_open_155'

    Even i tried to build ffmpeg, i still got same error. Is there any solution or suggestions for this error?

  • FFmpeg : Attach metadata to the segment muxer

    25 juillet 2021, par Maria

    I tried to attach metadata to the segment muxer using bitstream filter with no success, Please tell me how can do it?

  • ffmpeg-kit(macOS swift) - FATAL : Unknown encoder 'libx264'

    21 juillet 2021, par Noob

    I am using FFMPEG-Kit in my macOS app to compress the video file. While executing arguments along with libx264 I am getting FATAL: Unknown encoder 'libx264' I am not sure where to enable libx264. I am using cocoa-pod pod 'ffmpeg-kit-macos-full', '~> 4.4.LTS'. Please help me to resolve this problem. Thank you all.

    Below argument perfectly works in my system.

    Code:

    let arguement = "-i \(sourceURL.path) -c:v libx264 -crf 28 \(destinationURL.path)"
    
    guard let session = FFmpegKit.execute(arguement) else {
        
        print("FFMPEG: Session not created!")
        return
    }
    guard let returnCode = session.getReturnCode() else {
        
        print("FFMPEG: Error return code!")
        return
    }
    
    if ReturnCode.isSuccess(returnCode){
        
        print("FFMPEG: Success")
    }else if ReturnCode.isCancel(returnCode){
        
        print("FFMPEG: Cancelled.")
    }else{
        
        print("FFMPEG: failed. \(FFmpegKitConfig.sessionState(toString: session.getState()))")
    
    }
    

    Error:

    Unknown encoder 'libx264'

  • How to set x264 encode parameters through ffmpeg AVCodecContext

    7 juillet 2021, par songqi

    I'm trying to use ffmpeg/libx264 to encode and transmit a real-time video, when I use av_dict_set(&opts, "tune", "zerolatency", 0); the system works well. As the X264 encode parameters are set by ffmpeg using av_dict_set, for some research purpose I want to change them by myself. But some parameters in x264_param_t can not correspond to those parameters in AVCodecContext, such as vfr_input. So I want to know if there is a directly way to transmit parameters into X264 encoder when using libx264 in ffmpeg.


    Can anyone help me? Thanks