Newest 'libx264' Questions - Stack Overflow

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

Les articles publiés sur le site

  • Compile ffmpeg with x264 shows : ERROR : libx264 not found

    6 mai 2019, par NKam

    Trying to install ffmpeg from source with libx264 package. When I compile ffmpeg can't find x264 because it is not installed. I followed ffmpeg installation guide.

    I tried to install and compile ffmpeg locally and found out in folder ffmpeg_build/include I don't have x264 files installed.

    To compile libx264 I used:

    cd ~/ffmpeg_sources && \

    git -C x264 pull 2> /dev/null || git clone --depth 1 https://code.videolan.org/videolan/x264.git && \

    cd x264 && \

    PATH="$HOME/bin:$PATH"

    PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-static --enable-pic && \

    PATH="$HOME/bin:$PATH" make && \

    make install

    I changed url to https://code.videolan.org/videolan/x264.git, because this url https://git.videolan.org/git/x264 from guide not working

    Here how config.log's last lines look like

    test_cflags -Wmaybe-uninitialized
    test_cc -Wmaybe-uninitialized
    BEGIN /tmp/ffconf.1LD1vklR/test.c
        1   int x;
    END /tmp/ffconf.1LD1vklR/test.c
    gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -I/home/nurs/ffmpeg_build/include -std=c11 -fomit-frame-pointer -fPIC -pthread -I/home/nurs/ffmpeg_build/include -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/opus -I/usr/include/opus -I/usr/include/alsa -g -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -Wno-unused-const-variable -Wno-char-subscripts -O3 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-security -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=vla -Wformat -fdiagnostics-color=auto -Wmaybe-uninitialized -c -o /tmp/ffconf.1LD1vklR/test.o /tmp/ffconf.1LD1vklR/test.c
    

    I want to know what I missed. I want ffmpeg to find x264, if it is not installed how can I find way to install.

  • Compile ffmpeg with x264 shows : ERROR : libx264 not found in docker building image

    3 mai 2019, par NKam

    Trying to install ffmpeg from source with libx264 package. When I compile ffmpeg can't find x264 because it is not installed. I followed ffmpeg installation guide.

    Before intention to compile ffmpeg in building docker image I tried to install locally and found out in folder ffmpeg_build/include I don't have x264 files installed.

    To compile libx264 I used:

    cd ~/ffmpeg_sources && \

    git -C x264 pull 2> /dev/null || git clone --depth 1 https://code.videolan.org/videolan/x264.git && \

    cd x264 && \

    PATH="$HOME/bin:$PATH"

    PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-static --enable-pic && \

    PATH="$HOME/bin:$PATH" make && \

    make install

    I changed url to https://code.videolan.org/videolan/x264.git, because this url https://git.videolan.org/git/x264 from guide not working

    I want to know what I missed. I want ffmpeg to find x264, if it is not installed how can I find way to install.

  • How to fix "fatal error : x.264 no such file or directory"

    24 avril 2019, par user11340790

    I wrote a makefile which builds a C program attaching the x.264 header. After trying to execute the makefile in terminal I receive the fatal error: "example.c line [line of #include ] x264.h no such file or directory". Below you can find the C code and makefile (located in the same folder, the library - containing the x264.pc file- is in the folder libx264 of the parent folder). I would be very grateful if you could help with the linkage.

    Makefile:

        CC = gcc
    
        CFLAGS = -c -Wall `export PKG_CONFIG_PATH=../libx264 && pkg-config            --cflags x264`
        LDFLAGS = -static `export PKG_CONFIG_PATH=../libx264 && pkg-config --libs --static libx264`
    
    
        all: Release
    
        Debug: CFLAGS += -g
        Debug: example
    
        Release: example
    
        test: example.o
            $(CC) -o example example.o $(LDFLAGS)
    
        test.o: example.c
            $(CC) $(CFLAGS) example.c -o example.o
    
        clean:
            rm -f example.o example
    

    example.c code

        #include 
        #include 
        int main( int argc, char **argv )
        {
            int width, height;
             return 0;
        }
    
  • 2559x1450 image sequence won't convert to yuv420p video file, vlc cant play yuv444p10le

    24 mars 2019, par Sacha

    I upscaled a movie with waifu2x (from 1920x1088 to 2559x1450) i now have an image sequence that i need to convert to an mp4 when i try -pix_fmt yuv420p, it says that it cannot devide the width by 2 so i tried yuv444p10le, but yuv444p doesnt play on anything else than ffplay.

    so, how do i convert my img sequence into a video vlc can play?

    ive also tried this: -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" but that doesnt work either

    and i had to convert to 2559x1450 cause otherwise it would stretch, (it took 90 hours to convert all the frames so i cant just do it over again)

    i want the output to be a 2559x1450 video file that is playable on vlc.

  • Access to macroblocks and motion values with libx264

    6 mars 2019, par Enock

    I have a question and I hope someone can help me. I want to extract all motion vectors in P_type mocroblock in a P_frame during encoding h264 video with libx264 (x264). libx264 uses X264Context in the function x264_frame to encode video. Then, I want to know how can I access to macroblocks in a picture and how to access to motion vectors table on this picture while using the X264Context struct. With MpegEncContext we can access them while using MpegEncContext struct's mb_type, *mvs[2], mb_width, mb_height and mb_stride. But I don't know how to have such informations ( mb_type, *mvs[2], mb_width, mb_height and mb_stride) with X264Context struct.

    Please I need your help.

    Regards