Newest 'libx264' Questions - Stack Overflow
Les articles publiés sur le site
-
FFmpeg libxh264 error on Slackware current
22 novembre 2021, par unixbhaskarWell, here are specs which gives you heads up before suggesting ...
bhaskar@Slackware_06:46:54_Sat Nov 20: :~>ffmpeg -codecs | grep h264 ffmpeg version 4.4.1 Copyright (c) 2000-2021 the FFmpeg developers built with gcc 11.2.0 (GCC) configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/doc/ffmpeg-4.4.1/html --mandir=/usr/man --disable-debug --enable-shared --disable-static --enable-gpl --enable-version3 --enable-avresample --arch=x86_64 --disable-encoder=aac --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gnutls --enable-libbluray --enable-libcaca --enable-libcdio --enable-frei0r --enable-openal --enable-libopus --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libmp3lame --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libpulse --enable-libsmbclient --enable-libxml2 --enable-librsvg --enable-libdrm libavutil 56. 70.100 / 56. 70.100 libavcodec 58.134.100 / 58.134.100 libavformat 58. 76.100 / 58. 76.100 libavdevice 58. 13.100 / 58. 13.100 libavfilter 7.110.100 / 7.110.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 9.100 / 5. 9.100 libswresample 3. 9.100 / 3. 9.100 libpostproc 55. 9.100 / 55. 9.100 DEV.LS h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (decoders: h264 h264_v4l2m2m ) (encoders: h264_v4l2m2m h264_vaapi )
Also
ffmpeg version 4.4.1 Copyright (c) 2000-2021 the FFmpeg developers built with gcc 11.2.0 (GCC) configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/doc/ffmpeg-4.4.1/html --mandir=/usr/man --disable-debug --enable-shared --disable-static --enable-gpl --enable-version3 --enable-avresample --arch=x86_64 --disable-encoder=aac --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gnutls --enable-libbluray --enable-libcaca --enable-libcdio --enable-frei0r --enable-openal --enable-libopus --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libmp3lame --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libpulse --enable-libsmbclient --enable-libxml2 --enable-librsvg --enable-libdrm libavutil 56. 70.100 / 56. 70.100 libavcodec 58.134.100 / 58.134.100 libavformat 58. 76.100 / 58. 76.100 libavdevice 58. 13.100 / 58. 13.100 libavfilter 7.110.100 / 7.110.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 9.100 / 5. 9.100 libswresample 3. 9.100 / 3. 9.100 libpostproc 55. 9.100 / 55. 9.100 Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, alsa, from 'pulse': Duration: N/A, start: 1637371168.782400, bitrate: 1536 kb/s Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s [x11grab @ 0x87db00] Stream #0: not enough frames to estimate rate; consider increasing probesize Input #1, x11grab, from ':0': Duration: N/A, start: 1637371168.825367, bitrate: 839270 kb/s Stream #1:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1366x768, 839270 kb/s, 25 fps, 1000k tbr, 1000k tbn, 1000k tbc Unknown encoder 'libx264'
And ..
bhaskar@Slackware_06:50:02_Sat Nov 20: :~>uname -a Linux Slackware 5.15.1-Slackware #1 SMP Sun Nov 7 10:48:30 IST 2021 x86_64 Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz GenuineIntel GNU/Linux bhaskar@Slackware_06:50:04_Sat Nov 20: :~>cat /etc/os-release ───────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │ File: /etc/os-release ───────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── 1 │ NAME=Slackware 2 │ VERSION="15.0" 3 │ ID=slackware 4 │ VERSION_ID=15.0 5 │ PRETTY_NAME="Slackware 15.0 x86_64" 6 │ ANSI_COLOR="0;34" 7 │ CPE_NAME="cpe:/o:slackware:slackware_linux:15.0" 8 │ HOME_URL="http://slackware.com/" 9 │ SUPPORT_URL="http://www.linuxquestions.org/questions/slackware-14/" 10 │ BUG_REPORT_URL="http://www.linuxquestions.org/questions/slackware-14/" 11 │ VERSION_CODENAME=stable
Wondering .....when try to build it like mentioned in this place :
Am I the only one , who failed to understand ,why the heck is not detecting ??
Also,
root@Slackware_06:52:59_Sat Nov 20:~#ldconfig -p | grep libxh264 root@Slackware_06:53:12_Sat Nov 20:~#ldconfig -p | grep h264 root@Slackware_06:54:18_Sat Nov 20:~#ls /usr/lib64/libxh2* ls: cannot access '/usr/lib64/libxh2*': No such file or directory root@Slackware_06:54:46_Sat Nov 20:~#ls /usr/lib/libx2* ls: cannot access '/usr/lib/libx2*': No such file or directory
Finally....also
bhaskar@Slackware_06:56:58_Sat Nov 20: :~>ffmpeg -encoders | grep h264 ffmpeg version 4.4.1 Copyright (c) 2000-2021 the FFmpeg developers built with gcc 11.2.0 (GCC) configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/doc/ffmpeg-4.4.1/html --mandir=/usr/man --disable-debug --enable-shared --disable-static --enable-gpl --enable-version3 --enable-avresample --arch=x86_64 --disable-encoder=aac --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gnutls --enable-libbluray --enable-libcaca --enable-libcdio --enable-frei0r --enable-openal --enable-libopus --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libmp3lame --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libpulse --enable-libsmbclient --enable-libxml2 --enable-librsvg --enable-libdrm libavutil 56. 70.100 / 56. 70.100 libavcodec 58.134.100 / 58.134.100 libavformat 58. 76.100 / 58. 76.100 libavdevice 58. 13.100 / 58. 13.100 libavfilter 7.110.100 / 7.110.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 9.100 / 5. 9.100 libswresample 3. 9.100 / 3. 9.100 libpostproc 55. 9.100 / 55. 9.100 V..... h264_v4l2m2m V4L2 mem2mem H.264 encoder wrapper (codec h264) V....D h264_vaapi H.264/AVC (VAAPI) (codec h264)
Greatly appreciated if you come close or pinpoint the reason.
Thanks.
-
How to get the bit size of a marcoblock in x264 ?
29 octobre 2021, par Corvo AttanoHow to get the bit size of a marcoblock in x264 after encode ? Does x264 has any API to get the bit size of each marcoblocks after encoding a slice or a frame? If the answer is no, which function should I modify to handle the bit size after encoding marcoblocks ?
-
How to avoid color shift using FFmpeg libx264
7 septembre 2021, par floritI’d like to convert some footage to proxy H.264 using ffmpeg. I got a slight colorshift using the following command:
ffmpeg -i /path/to/045_0054.MXF -map 0 -dn -c:v libx264 -preset slow -profile:v main -level:v 4.1 -coder 1 -pix_fmt yuv420p -crf 25 -vf "scale=1280:720:flags=lanczos" -movflags +faststart -colorspace 1 -color_primaries 1 -color_trc 1 -color_range 1 -brand mp42 -refs 1 -x264-params b-pyramid=0 -bf 2 -g 5 -y /path/to/045_0054.mp4
How can I get rid of the slight magenta shift?
mediainfo
prints the following about the source file:General Complete name : /path/to/045_0054.MXF Format : MXF Format version : 1.3 Format profile : OP-1a Format settings : Closed / Complete File size : 180 MiB Duration : 14 s 720 ms Overall bit rate mode : Variable Overall bit rate : 102 Mb/s Encoded date : 2021-02-19 13:13:15.000 Writing application : Sony Mem 2.00 Video ID : 2 Format : AVC Format/Info : Advanced Video Codec Format profile : High@L5.1 Format settings : CABAC / 2 Ref Frames Format settings, CABAC : Yes Format settings, Reference frames : 2 frames Format settings, GOP : M=3, N=6 Format settings, wrapping mode : Frame Codec ID : 0D01030102106001-0401020201314001 Duration : 14 s 720 ms Bit rate mode : Variable Bit rate : 97.8 Mb/s Maximum bit rate : 100.0 Mb/s Width : 3 840 pixels Height : 2 160 pixels Display aspect ratio : 16:9 Frame rate : 25.000 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.472 Stream size : 172 MiB (95%) Color range : Limited Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709
-
How to enable libx264 for FFmpeg on Elastic Beanstalk
2 août 2021, par user15575918My question is very similar to that of this person, but the suggested answer did not work for me.
Using the following
ffmpeg.config
file in.ebextensions
I am able to install ffmpeg, but without the libx264 codec.packages: yum: autoconf: [] automake: [] cmake: [] freetype-devel: [] gcc: [] gcc-c++: [] git: [] libtool: [] make: [] nasm: [] pkgconfig: [] zlib-devel: [] sources: /usr/local/src: http://ffmpeg.org/releases/ffmpeg-4.4.tar.bz2 commands: ffmpeg_install: cwd: /usr/local/src/ffmpeg-4.4 command: sudo ./configure --prefix="/usr" --enable-gpl && make && make install
And so, to install libx264, I have tried replacing the lines after
commands:
with:01-install_libx264: cwd: /usr/local/src/ command: git clone https://code.videolan.org/videolan/x264.git && cd x264 && ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" && make && make install 02-ffmpeg_install: cwd: /usr/local/src/ffmpeg-4.4 command: sudo ./configure --prefix="/usr" --enable-gpl --enable-libx264 && make && make install
It didn't work, so I tried:
01-install_libx264: cwd: /usr/local/src/ command: curl -L -O https://code.videolan.org/videolan/x264/-/archive/master/x264-master.tar.bz2 && tar xjvf x264-master.tar.bz2 && cd x264-master && ./configure --bindir="$HOME/bin" --disable-shared --enable-nasm && make && make install 02-ffmpeg_install: cwd: /usr/local/src/ffmpeg-4.4 command: sudo ./configure --prefix="/usr" --enable-gpl --enable-libx264 && make && make install
Neither have worked. Any ideas what I'm doing wrong here? Deployment fails, log says "Unsuccessful command execution on instance", but no further detail. Is there any way to debug the command execution better?
-
Error : undefined reference to `x264_encoder_open_155'
27 juillet 2021, par ShankarI had done
sudo apt-get update sudo apt-get upgrade
after that i am getting this error while compiling project:
ffmpeg/libavcodec/libx264.c:948: undefined reference to `x264_encoder_open_155'
Even i tried to build ffmpeg, i still got same error. Is there any solution or suggestions for this error?