Newest 'libx264' Questions - Stack Overflow

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

Les articles publiés sur le site

  • Why does my H.264 video have a green overlay after video filter is applied ?

    11 juin 2019, par d1che

    When executing the following code:

    ffmpeg -i input.mov -c:v libx264 -preset veryslow -pix_fmt yuv420p -filter_complex "drawtext=fontfile=font.ttf:fontcolor=white@1:fontsize=h/6:x=(w-text_w)/2:y=(h-text_h)/2:text='Henk de Vries'[watermark];[0][watermark]blend=all_mode=difference:all_opacity=1" output.mp4

    The output file has a green overlay. When using other blend modes, results vary with some modes displaying correct colors and others green and pink.

    I know that the input file has yuv420p colorspacing. I think the blend filter only supports rgba modes but I am not sure.

    How can I avoid the green overlay and get the original colors? (e.i. what the original input video looks like)

  • how can I fix a video which has a smaller width and black sides when a pad is added with ffmpeg

    24 mai 2019, par eliud nyamai

    im aplying a pad to a video but the video is displaying with black sides after i add a pad with ffmpeg instead of being full screen.can somebody help me correct it or give me an alternative of using a pad

    ffmpeg is on an ubuntu server

    ffmpeg -i IMG_9079.mov -ss 00:00:20.0 -vcodec libx264 -vf "pad=width=1280:height=1280:x=0:y=280:color=white" -acodec copy -t 20 output_withpad.mov

    I expect the video to be full screen with a pad at the bottom

  • FFmpeg with libx264 skipped many frames during re-encoding

    18 mai 2019, par Igor

    I found a strange problem with FFmpeg 4.1.3 when I re-encode this video file with libx264 and I use bitrate 8000k mode.

    ffmpeg -y -i src.mp4 -c:v libx264 -preset slow -b:v 8000k dst.mp4
    

    Source video (28 seconds) shows 3 images.

    After re-encoding I see only 2 images and 3rd image is missing. I tested in latest VLC player 3.0.6, MPC-HC, Media player in Windows 10.

    If I use crf video encoding instead of bitrate everything is fine.

    Source video: https://drive.google.com/open?id=1gK06QtN8IqQNwAZeJdg7lbQgX0tkjaOn

  • Anybody can Explain me, what is Open GOP & Close GOP in Easy way- H.264 ?

    18 mai 2019, par Sunil Sen

    Youtube is Mentioned that, you should have to use Close GOP, Half of the frame rate. Now in my adobe premier pro i added the TMPGEncMovieAVC101212PremPro Plugin. In this plugin, I found GOP setting but i confused how to set close GOP value.

    Also I want to know this is Close GOP structure? IBBPBBPBBPBBPBP

  • 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.