Newest 'libx264' Questions - Stack Overflow
Les articles publiés sur le site
-
FFMPEG Flutter - Generating video from images not playing on default android video players
17 février 2023, par Abdullah RiazI'm trying to generate a video from multiple image files in FFMPEG Flutter. I'm using https-gpl package.
ffmpeg_kit_flutter_https_gpl: 5.1.0
I'm using this command.
"-f concat -safe 0 -protocol_whitelist file,http,https,tcp,tls,crypto -i $filePath -stream_loop -1 -i $musicFile -vf 'scale=3840:2880:force_original_aspect_ratio=decrease,pad=3840:2880:(ow-iw)/2:(oh-ih)/2,setsar=1' -r 6 -c:v libx264 -crf 40 -profile:v main -preset veryfast -pix_fmt yuv420p -t $totalTime $outputFilePath"
Where you can clearly see, I'm encoding video in
libx264
withyuv420p
.The thing is, the video is created successfully and played smoothly on the VLC. But it doesn't show anything on normal/default android video players although it plays the audio.
I've tried multiple things but all failed to run video on default android video players. I've even tried multiple android phones. What am I doing wrong here?
-
libx264 codec not enabled in ffmpeg ubuntu 18.04
18 janvier 2023, par BendemannI have some weird codec installation issues with the following docker image.
ARG PYTORCH="1.8.0" ARG CUDA="11.1" ARG CUDNN="8" FROM pytorch/pytorch:${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel ENV TORCH_CUDA_ARCH_LIST="6.0 6.1 7.0 8.0+PTX" ENV TORCH_NVCC_FLAGS="-Xfatbin -compress-all" ENV CMAKE_PREFIX_PATH="$(dirname $(which conda))/../" # https://github.com/NVIDIA/nvidia-docker/issues/1632 RUN apt-key del 7fa2af80 RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu2004/x86_64/7fa2af80.pub RUN apt-get update && apt-get install -y \ git nano ninja-build p7zip-full imagemagick wget unzip \ libglib2.0-0 libsm6 libxrender-dev libxext6 libturbojpeg \ libxrender1 libfontconfig1 freeglut3-dev llvm-6.0-tools curl \ amqp-tools ffmpeg libx264-dev \ && apt --fix-broken install \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* \ # for visualizing && wget https://github.com/mmatl/travis_debs/raw/master/xenial/mesa_18.3.3-0.deb \ && dpkg -i ./mesa_18.3.3-0.deb || true \ && apt install -f \ && git clone https://github.com/mmatl/pyopengl.git \ && pip install ./pyopengl
First of all, libx264 is supposed to be installed by a simple
apt-get install ffmpeg
in ubuntu 18.04.5. Indeed I see that it is being installed in the installation instructions but for some reason, it's not enabled. This is confirmed when runningffmpeg -codecs | grep 264
, which doesn't showlibx264
(only h264, libopenh264 are there).In addition, I also compiled from source, explicitly enabling libx264 during installation. It didn't make a difference.
-
Lib x : display problem related to window pixel color changes with the mlx_put_pixel() function [closed]
15 janvier 2023, par Jordan RigaI'm stuck on a project that I have to return for school. I have to make a 3D game with the minilibx in C, the problem being that I try to make the graphic part work but it doesn't work (display pixels on the screen). And all this same with the examples that I found of school 42 on the internet in that link https://harm-smits.github.io/42docs/libs/minilibx. All configuration has been done.
Could there be a possible configuration problem? I'm working on Kali Linux (Even using a VM on Ubuntu it didn't work).
In short my question is what can be the different reasons why the graphical part of minilibx independently of events, loops and etc does not work without errors ?
-
libx264 codex not enabled in ffmpeg ubuntu 18.04
23 novembre 2022, par BendemannI have some weird codex installation issues with the following docker image.
ARG PYTORCH="1.8.0" ARG CUDA="11.1" ARG CUDNN="8" FROM pytorch/pytorch:${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel ENV TORCH_CUDA_ARCH_LIST="6.0 6.1 7.0 8.0+PTX" ENV TORCH_NVCC_FLAGS="-Xfatbin -compress-all" ENV CMAKE_PREFIX_PATH="$(dirname $(which conda))/../" # https://github.com/NVIDIA/nvidia-docker/issues/1632 RUN apt-key del 7fa2af80 RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu2004/x86_64/7fa2af80.pub RUN apt-get update && apt-get install -y \ git nano ninja-build p7zip-full imagemagick wget unzip \ libglib2.0-0 libsm6 libxrender-dev libxext6 libturbojpeg \ libxrender1 libfontconfig1 freeglut3-dev llvm-6.0-tools curl \ amqp-tools ffmpeg libx264-dev \ && apt --fix-broken install \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* \ # for visualizing && wget https://github.com/mmatl/travis_debs/raw/master/xenial/mesa_18.3.3-0.deb \ && dpkg -i ./mesa_18.3.3-0.deb || true \ && apt install -f \ && git clone https://github.com/mmatl/pyopengl.git \ && pip install ./pyopengl
First of all, libx264 is supposed to be installed by a simple
apt-get install ffmpeg
in ubuntu 18.04.5. Indeed I see that it is being installed in the installation instructions but for some reason, it's not enabled. This is confirmed when runningffmpeg -codecs | grep 264
, which doesn't showlibx264
(only h264, libopenh264 are there).In addition, I also compiled from source, explicitly enabling libx264 during installation. It didn't make a difference.
-
ERROR : X264 not found ustng pkg-config FFMPEG
27 octobre 2022, par A GVI’m having lots of problems with Ffmpeg because it doesn’t recognize the options I use. I tried three different versions and none of them work. I finally installed the last version which is available (5.1) but when I used options like
-present
or-cq: 1
it tells that they are not recognize. I saw some others questions about, and the problem was that the libx264 was not enable.I tried to enable the lib (
./configure —- enable gpl —-enable libx264
) but it came out with:ERROR: X264 not found ustng pkg-config
.I’m working on Linux Ubuntu.