Newest 'libx264' Questions - Stack Overflow

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

Les articles publiés sur le site

  • 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

  • Libx264 not found on cross compiling ffmpeg

    28 juin 2021, par Roiniti

    Im trying to compile ffmpeg with mp4 for this project: https://github.com/libgdx/gdx-video the problem is when i try to cross compile ffmpeg, im in linux64 and i get

    libx264 not found
    

    when i execute this command

    ../configure --enable-pic --enable-cross-compile --disable-symver --disable-doc --enable-memalign-hack --arch=x86_64 --target-os=mingw32 --cross-prefix=x86_64-w64-mingw32- --pkg-config=pkg-config --disable-shared --enable-static --disable-everything --enable-filter=deshake --enable-protocol=file --enable-filter=aresample --enable-demuxer=ogg --enable-demuxer=matroska --enable-decoder=vorbis --enable-decoder=vp8 --enable-decoder=vp9 --enable-decoder=theora --enable-gpl --enable-libx264 --enable-decoder=h264
    

    without the --enable-libx264 ffmpeg compiles good, also when i try to compile it for linux64 it compiles good, I searched and I think I need to build libx264 for win64 or something similar but I don't if this is correct or if thats the solution, how can I compile it?

  • Inconsistent libx264 I-frame interval. Why ?

    20 juin 2021, par Alexander

    Why is the I-frame interval in some cases inconsistent despite of defyning it as a fixed value?

    I'm using ffmpeg and the below command, while the I-frame coded_picture_number goes as follows: 0 10 20 30 38 47 57 ... 196 206 215 225 235 245 255

    ffmpeg -i football.y4m -c:v libx264 -bf 0 -g 10 football.mp4

    The video data in question is footbal (b) at xiph.org