Newest 'libx264' Questions - Stack Overflow

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

Les articles publiés sur le site

  • How to check 'Output bit depth' of the libx264 library in ffmpeg ?

    26 mai 2024, par Greg

    According to the x264 Encoding Guide, the crf scale depends on whether x264 is 8-bit or 10-bit. Supposedly x264 --help shows the Output bit depth. But on Windows ffmpeg -h full doesn't say anything about Output bit depth and the crf scale option is described as from -1 to FLT_MAX. How can I check if my ffmpeg is using 8-bit or 10-bit version of the libx264 library?

  • How to transcode short video using FFmpeg, libx264 codec, Swift, iOS app

    21 mars 2024, par Dmitriy iOS

    The goal is to transcode a short video into .mov format using FFmpeg and libx264 codec. So far I have not been able to do this using third-party libraries. Using the command line, the video is perfectly transcoded, but I need it inside the application.

    If anyone has a solution I would be very grateful.

    The resulting video needs to have the following parameters, something like this:

    Picture 1 Picture 2 Picture 3

    For example:

    let command = ["ffmpeg", "-i", videoOutputURL.path, "-c:v", "libx264", "-c:a", "copy", convertedVideoUrl.path]
    let ffmpegCommand = ffmpeg(command)
    
  • ffmpeg Connection to tcp ://127.0.0.1:1935 refused on Windows 10

    6 mars 2024, par Wissam Elias

    I am trying to re-stream an RTSP connection on the local network using this command:

    ffmpeg -loglevel debug -rtsp_transport tcp -i rtsp://192.168.1.13:1935 -codec copy -f rtsp rtsp://172.0.0.1:1935/live/stream
    

    but i am getting an error message:

    [tcp @ 0000020c99c4c1c0] Connection to tcp://127.0.0.1:1935 failed: Connection refused
    rtsp://127.0.0.1:1935/live/stream: Connection refused
    

    while the port is not used and I've tried to use 8554 also with the same result, and the firewall on my device is turned off.

  • Error Linking FFmpeg with libx264 : Undefined Reference to __imp_x264_encoder_open_163

    23 février 2024, par zeyu

    I'm attempting to compile FFmpeg with libx264 support on Windows using MinGW-w64, but I'm encountering a linking error when building . The error points to an undefined reference to in . Here are the details of the error message:libavcodec/avcodec-57.dll__imp_x264_encoder_open_163libx264.o

    In fact, I want to run the AccMPEG branch from https://github.com/Alex-q-z/myh264.git, and I am looking to obtain an executable (exe) to run on Windows.

    LD      libavcodec/avcodec-57.dll
    E:/MSY/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: libavcodec/libx264.o: in function `X264_init':
    E:\MSY\home\myh264\ffmpeg-3.4.8/libavcodec/libx264.c:818: undefined reference to `__imp_x264_encoder_open_163'
    collect2.exe: error: ld returned 1 exit status
    make: *** [ffbuild/library.mak:103: libavcodec/avcodec-57.dll] Error 1
    
    

    Here's what I've tried so far:

    Ensuring libx264 is compiled with shared library support using .--enable-shared Verifying that the libx264 version is compatible with the version of FFmpeg I'm compiling. Adding the path to libx264 binaries to my PATH environment variable. Environment Details:

    OS: Windows 11 MSYS2 MinGW-w64 version: 13.2.0 FFmpeg version: 3.4.8 libx264 version: unknown Questions:

    What could be causing this undefined reference error? Is there a specific version of libx264 that's known to work with FFmpeg 3.4.8? Are there additional flags or configurations I should use when compiling libx264 or FFmpeg to avoid this issue? Any guidance or suggestions would be greatly appreciated. Thank you in advance!

    In fact, I want to run the AccMPEG branch from https://github.com/Alex-q-z/myh264.git, and I am looking to obtain an executable (exe) to run on Windows.

  • how to use x264 dll in another project

    7 février 2024, par Hadi Rasekh

    I want to use x264 in my project. There is some line in the code said:

    `/* Application developers planning to link against a shared library version of

    • libx264 from a Microsoft Visual Studio or similar development environment
    • will need to define X264_API_IMPORTS before including this header.
    • This clause does not apply to MinGW, similar development environments, or non
    • Windows platforms. */`

    But I don't get this line: define X264_API_IMPORTS before including this header

    We can create x264 dll by its configuration and make

        ./configure --enable-shared
        make
    

    but I can not use the dll in my Qt Project.

    I can make my own dll (in another code) and use it in the project. But when I start to use x264 dll in my project I get the following error:

        C:\DataHiding\SourceCode2\GUI\DataHiding\mainwindow.cpp:10: error:
        'pulldown_frame_duration' was not declared in this scope
        qDebug() << pulldown_frame_duration[1];
                 ^