View previous topic :: View next topic |
Author |
Message |
LA GLOBULE n00b
Joined: 14 Mar 2007 Posts: 11
|
Posted: Sun Oct 08, 2023 10:32 pm Post subject: [ffmpeg] Segmentation fault |
|
|
Hello everyone,
I am currently experiencing difficulties with ffmpeg 6.0 which crashes when playing some video files.
- Some files crash all the time
- Some files crash "randomly"
This does not seem related to the latest version of ffmpeg 6.0 because I had the same problem with ffmpeg 4.4.4
Here is an example of debug mode on a file which crashes ffmpeg (file which can be read without problem on another computer)
Code: | For transform of length 1024, forward, mdct_float, flags: [aligned, out_of_place], found 2 matches:
1: mdct_fwd_float_c - type: mdct_float, len: [2, ∞], factors[2]: [2, any], flags: [unaligned, out_of_place, fwd_only], prio: 96
2: mdct_naive_fwd_float_c - type: mdct_float, len: [2, ∞], factors[2]: [2, any], flags: [unaligned, out_of_place, fwd_only], prio: -130976
For transform of length 512, forward, fft_float, flags: [aligned, inplace, preshuf], found 2 matches:
1: fft_pfa_ns_float_c - type: fft_float, len: [6, ∞], factors[2]: [7, 5, 3, 2, any], flags: [unaligned, inplace, out_of_place, preshuf], prio: 112
2: fft512_ns_float_c - type: fft_float, len: 512, factor: 2, flags: [unaligned, inplace, out_of_place, preshuf], prio: 96
Transform tree:
mdct_fwd_float_c - type: mdct_float, len: 1024, factors[2]: [2, any], flags: [unaligned, out_of_place, fwd_only]
fft512_ns_float_c - type: fft_float, len: 512, factor: 2, flags: [unaligned, inplace, out_of_place, preshuf]
[h264 @ 0x55aed55f9640] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x55aed55f9640] Decoding VUI
[h264 @ 0x55aed55f9640] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x55aed55f9640] Decoding VUI
[h264 @ 0x55aed55f9640] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x55aed55f9640] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x55aed55f9640] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x55aed55f9640] Decoding VUI
[h264 @ 0x55aed55f9640] Format yuv420p chosen by get_format().
[h264 @ 0x55aed55f9640] Reinit context to 1280x720, pix_fmt: yuv420p
Segmentation fault |
If anyone has an idea... Thx
Here is my ffmpeg use flag :
Code: | [ebuild R ] media-video/ffmpeg-6.0-r6:0/58.60.60::gentoo USE="X alsa bzip2 dav1d encode gnutls gpl iconv network postproc threads zlib (-amf) -amr -amrenc (-appkit) -bluray -bs2b -cdio -chromaprint -chromium -codec2 -cpudetection (-cuda) -debug* -doc -fdk -flite -fontconfig -frei0r -fribidi -gcrypt -gme -gmp -gsm -hardcoded-tables -iec61883 -ieee1394 -jack -jpeg2k -jpegxl -kvazaar -ladspa -lcms -libaom -libaribb24 -libass -libcaca -libdrm -libilbc -libplacebo -librtmp -libsoxr -libtesseract -libv4l -libxml2 -lv2 -lzma (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -modplug -mp3 -nvenc -openal -opencl -opengl -openh264 -openssl -opus -oss -pic -pulseaudio (-qsv) -rav1e -rubberband -samba -sdl -snappy -sndio -speex -srt -ssh -static-libs -svg -svt-av1 -test -theora -truetype -twolame -v4l -vaapi -vdpau -verify-sig -vidstab (-vmaf) -vorbis -vpx -vulkan -webp -x264 -x265 -xvid -zeromq -zimg -zvbi" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="mmx mmxext sse sse2 -3dnow -3dnowext -aes -avx -avx2 -fma3 -fma4 -sse3 -sse4_1 -sse4_2 -ssse3 -xop" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher" 0 KiB |
And my emerge info :
Code: | Portage 3.0.51 (python 3.11.5-final-0, default/linux/amd64/17.1, gcc-13, glibc-2.37-r7, 6.1.41-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-6.1.41-gentoo-x86_64-x86_64-11th_Gen_Intel-R-_Core-TM-_i7-1185G7_@_3.00GHz-with-glibc2.37
KiB Mem: 32588372 total, 23347316 free
KiB Swap: 1048572 total, 1048572 free
Timestamp of repository gentoo: Sun, 08 Oct 2023 20:30:01 +0000
Head commit of repository gentoo: e9456ef63a3a1e71f7d40f6754e3c2e093b2935e
Timestamp of repository nest: Sun, 08 Oct 2023 16:01:45 +0000
Head commit of repository nest: 1f1b2bbcc10947d58d8ec0dbb33796388a37e59d
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils: 1.3.5::gentoo
app-shells/bash: 5.1_p16-r6::gentoo
dev-lang/perl: 5.38.0-r1::gentoo
dev-lang/python: 3.11.5::gentoo
dev-lang/rust-bin: 1.71.1::gentoo
dev-util/cmake: 3.26.5-r2::gentoo
dev-util/meson: 1.2.1-r1::gentoo
sys-apps/baselayout: 2.14::gentoo
sys-apps/openrc: 0.48::gentoo
sys-apps/sandbox: 2.37::gentoo
sys-devel/autoconf: 2.71-r6::gentoo
sys-devel/automake: 1.16.5-r1::gentoo
sys-devel/binutils: 2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc: 13.2.1_p20230826::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/libtool: 2.4.7-r1::gentoo
sys-devel/llvm: 16.0.6::gentoo
sys-devel/make: 4.4.1-r1::gentoo
sys-kernel/linux-headers: 6.1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.37-r7::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: False
sync-rsync-extra-opts:
sync-rsync-verify-max-age: 24
sync-rsync-verify-metamanifest: no
sync-rsync-verify-jobs: 1
nest
location: /var/db/repos/nest
sync-type: git
sync-uri: https://github.com/gentoo-mirror/nest.git
masters: gentoo
volatile: False
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j9"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="64bit amd64 bzip2 cli gdbm iconv libtirpc minimal multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl test-rust unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS |
|
|
Back to top |
|
|
cirilloblu n00b
Joined: 16 Dec 2006 Posts: 8
|
Posted: Tue Oct 10, 2023 9:20 am Post subject: |
|
|
I think have the same problem.
The difference for me is that I have no log on h264, the segmentation fault is direct:
Code: |
Transform tree:
mdct_fwd_float_c - type: mdct_float, len: 1024, factors[2]: [2, any], flags: [unaligned, out_of_place, fwd_only]
fft512_ns_float_c - type: fft_float, len: 512, factor: 2, flags: [unaligned, inplace, out_of_place, preshuf]
Segmentation fault (core dumped)
|
ffmpeg use flags very similar:
Code: |
[ebuild R ] media-video/ffmpeg-6.0-r6:0/58.60.60::gentoo USE="X alsa bzip2 dav1d encode fdk gnutls gpl iconv jack jpeg2k ladspa lcms libaom libass libdrm libv4l libxml2 mp3 network opengl openssl opus postproc pulseaudio samba sdl speex svg theora threads truetype twolame v4l vorbis vpx vulkan webp x264 x265 xvid zlib (-amf) -amr -amrenc (-appkit) -bluray -bs2b -cdio -chromaprint -chromium -codec2 -cpudetection (-cuda) -debug -doc -flite -fontconfig -frei0r -fribidi -gcrypt -gme -gmp -gsm -hardcoded-tables -iec61883 -ieee1394 -jpegxl -kvazaar -libaribb24 -libcaca -libilbc -libplacebo -librtmp -libsoxr -libtesseract -lv2 -lzma (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -modplug -nvenc -openal -opencl -openh264 -oss -pic (-qsv) -rav1e -rubberband -snappy -sndio -srt -ssh -static-libs -svt-av1 -test -vaapi -vdpau -verify-sig -vidstab (-vmaf) -zeromq -zimg -zvbi" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="mmx mmxext sse sse2 -3dnow -3dnowext -aes -avx -avx2 -fma3 -fma4 -sse3 -sse4_1 -sse4_2 -ssse3 -xop" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher" 0 KiB
|
The dmesg on the seg fault only say (for me):
Code: |
[ 8415.477451] traps: ffmpeg[177273] general protection fault ip:7fe2a9893514 sp:7ffff69a62a0 error:0 in libavcodec.so.60.3.100[7fe2a986c000+cec000]
|
And emerge info:
Code: |
Portage 3.0.51 (python 3.11.5-final-0, default/linux/amd64/17.1/desktop/plasma/systemd/merged-usr, gcc-12, glibc-2.37-r7, 6.1.53-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-6.1.53-gentoo-x86_64-x86_64-11th_Gen_Intel-R-_Core-TM-_i7-11800H_@_2.30GHz-with-glibc2.37
KiB Mem: 16157372 total, 966516 free
KiB Swap: 33554428 total, 33451260 free
Timestamp of repository gentoo: Tue, 10 Oct 2023 08:00:01 +0000
Head commit of repository gentoo: 838150c19310ccb74a1ad38a08bce1be6e9b8f4c
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.39 p6) 2.39.0
app-misc/pax-utils: 1.3.5::gentoo
app-shells/bash: 5.1_p16-r6::gentoo
dev-java/java-config: 2.3.1-r1::gentoo
dev-lang/perl: 5.38.0-r1::gentoo
dev-lang/python: 3.11.5::gentoo
dev-lang/rust-bin: 1.71.1::gentoo
dev-util/cmake: 3.26.5-r2::gentoo
dev-util/meson: 1.2.1-r1::gentoo
sys-apps/baselayout: 2.14::gentoo
sys-apps/sandbox: 2.38::gentoo
sys-apps/systemd: 253.11::gentoo
sys-devel/autoconf: 2.13-r7::gentoo, 2.71-r6::gentoo
sys-devel/automake: 1.16.5-r1::gentoo
sys-devel/binutils: 2.39-r5::gentoo, 2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang: 15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/gcc: 12.3.1_p20230526::gentoo, 13.2.1_p20230826::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/libtool: 2.4.7-r1::gentoo
sys-devel/lld: 15.0.7::gentoo, 16.0.6::gentoo
sys-devel/llvm: 15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/make: 4.4.1-r1::gentoo
sys-kernel/linux-headers: 6.1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.37-r7::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: False
sync-rsync-verify-max-age: 24
sync-rsync-extra-opts:
sync-rsync-verify-jobs: 1
sync-rsync-verify-metamanifest: yes
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE JSON RAR unRAR MPEG-4"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O0 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O0 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -O0 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O0 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="7zip X a52 aac acl acpi activities alsa amd64 bittorrent bluetooth branding bzip2 cairo cdda cdr cli connection-sharing crypt cryptsetup cups curl custom-modes cvs dav1d dbus declarative designer device-mapper dhcpcd display-manager djvu dmx dolphin dri dts dvb dvd dvdr encode epub exif fdk ffmpeg fftw flac fontforge fortran gd gdbm geos gif git gles gles2 gnuplot gpg gphoto2 gpm grub gstreamer gui hdf5 hwaccel iconv icu id3tag imagemagick imlib iptables ipv6 ithreads jack java jpeg jpeg2k json kde kdesu kwallet ladspa lastfm lcms ldap libaom libass libdrm libkms libmpv libnotify libtirpc libv4l libxml2 lm-sensors lrz lvm lzo mad mailutils markdown matroska mdnsresponder-compat mjpeg mng mobi mp3 mp3rtp mp4 mpeg mpris mtp multilib musicbrainz mysql native-headset ncurses networkmanager nfs nls nptl nss ntlm office ofono-headset ogg opengl openldap openmp openssl optimisememory opus pam pango pcre pdf perl phonon pipewire pkcs11 plasma png policykit postproc ppds pulseaudio qml qrcode qt5 rar rdp readline realtime resolvconf rtsp ruby samba scanner screencast sddm sdl seccomp semantic-desktop sound sox speech speex spell sqlite ssl sslv3 startup-notification subversion svg systemd test-rust theora threads tiff tls-heartbeat touchpad truetype twolame udev udisks unicode upower usb v4l vlc vorbis vpx vulkan wayland webp widgets wxwidgets x264 x265 xattr xcb xft xml xv xvid zeroconf zip zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="synaptics wacom libinput" KERNEL="linux" L10N="it" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby31" VIDEO_CARDS="intel nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
|
|
|
Back to top |
|
|
LA GLOBULE n00b
Joined: 14 Mar 2007 Posts: 11
|
Posted: Tue Oct 10, 2023 8:37 pm Post subject: |
|
|
I found a solution : rebuild the ffmpeg package with the following CFLAGS
Code: | -march=native -Os -pipe |
|
|
Back to top |
|
|
cirilloblu n00b
Joined: 16 Dec 2006 Posts: 8
|
Posted: Tue Oct 10, 2023 9:00 pm Post subject: |
|
|
LA GLOBULE wrote: | I found a solution : rebuild the ffmpeg package with the following CFLAGS
Code: | -march=native -Os -pipe |
|
Not valid for me, already have that cflags. But maybe the problem Is different, because my ffmpeg stop working before log any h264 action. |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1972
|
|
Back to top |
|
|
LA GLOBULE n00b
Joined: 14 Mar 2007 Posts: 11
|
Posted: Thu Oct 12, 2023 9:33 am Post subject: |
|
|
Hope this helps
Code: | 11:31:17 [lando] globule ~ $ gdb --args ffmpeg -i a.mkv
GNU gdb (Gentoo 13.2 vanilla) 13.2
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ffmpeg...
Reading symbols from /usr/lib/debug//usr/bin/ffmpeg.debug...
(gdb) run
Starting program: /usr/bin/ffmpeg -i a.mkv
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 13 (Gentoo 13.2.1_p20230826 p7)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-6.0-r6/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --nm=x86_64-pc-linux-gnu-nm --strip=x86_64-pc-linux-gnu-strip --ranlib=x86_64-pc-linux-gnu-ranlib --pkg-config=x86_64-pc-linux-gnu-pkg-config --optflags='-march=native -O2 -pipe -ggdb3' --disable-static --enable-avfilter --disable-stripping --disable-optimizations --disable-libcelt --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack --disable-indev=sndio --disable-outdev=oss --disable-outdev=sndio --enable-bzlib --disable-runtime-cpudetect --enable-debug --disable-gcrypt --enable-gnutls --disable-gmp --enable-gpl --disable-hardcoded-tables --enable-iconv --disable-libxml2 --disable-lzma --enable-network --disable-opencl --disable-openssl --enable-postproc --disable-libsmbclient --disable-ffplay --disable-sdl2 --disable-vaapi --disable-vdpau --disable-vulkan --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --disable-libdrm --disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2 --enable-libdav1d --disable-libfdk-aac --disable-libopenjpeg --disable-libjxl --disable-libbluray --disable-libgme --disable-libgsm --disable-libaribb24 --disable-mmal --disable-libmodplug --disable-libopus --disable-libvpl --disable-libilbc --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt --disable-librsvg --disable-ffnvcodec --disable-libvorbis --disable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint --disable-cuda-llvm --disable-libflite --disable-frei0r --disable-libvmaf --disable-libfribidi --disable-fontconfig --disable-ladspa --disable-lcms2 --disable-libass --disable-libplacebo --disable-libtesseract --disable-lv2 --disable-libfreetype --disable-libvidstab --disable-librubberband --disable-libzmq --disable-libzimg --disable-libsoxr --enable-pthreads --disable-amf --disable-libvo-amrwbenc --disable-libkvazaar --disable-libaom --disable-libmp3lame --disable-libopenh264 --disable-librav1e --disable-libsnappy --disable-libsvtav1 --disable-libtheora --disable-libtwolame --disable-libwebp --disable-libx264 --disable-libx265 --disable-libxvid --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-vsx --disable-power8 --disable-amd3dnow --disable-amd3dnowext --disable-aesni --disable-avx --disable-avx2 --disable-fma3 --disable-fma4 --disable-sse3 --disable-ssse3 --disable-sse4 --disable-sse42 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
Program received signal SIGSEGV, Segmentation fault.
decode_cpe (ac=ac@entry=0x5555555e1890, gb=gb@entry=0x7fffffffd020, cpe=cpe@entry=0x7ffff586f010)
at src/libavcodec/aacdec_template.c:2227
2227 src/libavcodec/aacdec_template.c: No such file or directory.
(gdb) bt
#0 decode_cpe (ac=ac@entry=0x5555555e1890, gb=gb@entry=0x7fffffffd020, cpe=cpe@entry=0x7ffff586f010)
at src/libavcodec/aacdec_template.c:2227
#1 0x00007ffff64c8866 in aac_decode_frame_int (avctx=avctx@entry=0x5555555c0880,
frame=frame@entry=0x5555555e1630, got_frame_ptr=got_frame_ptr@entry=0x7fffffffd0cc,
gb=gb@entry=0x7fffffffd020, avpkt=<optimized out>) at src/libavcodec/aacdec_template.c:3215
#2 0x00007ffff64ca5cf in aac_decode_frame (avctx=0x5555555c0880, frame=0x5555555e1630,
got_frame_ptr=0x7fffffffd0cc, avpkt=0x5555555e3640) at src/libavcodec/aacdec_template.c:3396
#3 0x00007ffff65d5782 in decode_simple_internal (discarded_samples=<synthetic pointer>,
frame=<optimized out>, avctx=0x5555555c0880) at src/libavcodec/decode.c:285
#4 decode_simple_receive_frame (frame=<optimized out>, avctx=<optimized out>)
at src/libavcodec/decode.c:532
#5 decode_receive_frame_internal (avctx=avctx@entry=0x5555555c0880, frame=0x5555555e1630)
at src/libavcodec/decode.c:551
#6 0x00007ffff65d6440 in avcodec_send_packet (avctx=avctx@entry=0x5555555c0880,
avpkt=avpkt@entry=0x5555555c1b68) at src/libavcodec/decode.c:626
#7 0x00007ffff767c91b in try_decode_frame (s=s@entry=0x5555555bb290, st=st@entry=0x5555555bf9e0,
pkt=pkt@entry=0x5555555c1b68, options=<optimized out>) at src/libavformat/demux.c:2054
#8 0x00007ffff76817c7 in avformat_find_stream_info (ic=0x5555555bb290, options=0x5555555a5050)
at src/libavformat/demux.c:2748
#9 0x00005555555656cf in ifile_open (o=o@entry=0x7fffffffd4f0, filename=<optimized out>)
at src/fftools/ffmpeg_demux.c:985
#10 0x000055555557610c in open_files (l=0x5555555bb218, inout=inout@entry=0x55555558f3cd "input",
open_file=0x555555564af0 <ifile_open>) at src/fftools/ffmpeg_opt.c:1244
#11 0x0000555555578c2b in ffmpeg_parse_options (argc=argc@entry=3, argv=argv@entry=0x7fffffffdd48)
at src/fftools/ffmpeg_opt.c:1283
#12 0x000055555556088a in main (argc=3, argv=0x7fffffffdd48) at src/fftools/ffmpeg.c:4160
(gdb) |
|
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1972
|
Posted: Thu Oct 12, 2023 9:53 am Post subject: |
|
|
LA GLOBULE wrote: | Hope this helps
Code: | 11:31:17 [lando] globule ~ $ gdb --args ffmpeg -i a.mkv
GNU gdb (Gentoo 13.2 vanilla) 13.2
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ffmpeg...
Reading symbols from /usr/lib/debug//usr/bin/ffmpeg.debug...
(gdb) run
Starting program: /usr/bin/ffmpeg -i a.mkv
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 13 (Gentoo 13.2.1_p20230826 p7)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-6.0-r6/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --nm=x86_64-pc-linux-gnu-nm --strip=x86_64-pc-linux-gnu-strip --ranlib=x86_64-pc-linux-gnu-ranlib --pkg-config=x86_64-pc-linux-gnu-pkg-config --optflags='-march=native -O2 -pipe -ggdb3' --disable-static --enable-avfilter --disable-stripping --disable-optimizations --disable-libcelt --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack --disable-indev=sndio --disable-outdev=oss --disable-outdev=sndio --enable-bzlib --disable-runtime-cpudetect --enable-debug --disable-gcrypt --enable-gnutls --disable-gmp --enable-gpl --disable-hardcoded-tables --enable-iconv --disable-libxml2 --disable-lzma --enable-network --disable-opencl --disable-openssl --enable-postproc --disable-libsmbclient --disable-ffplay --disable-sdl2 --disable-vaapi --disable-vdpau --disable-vulkan --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --disable-libdrm --disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2 --enable-libdav1d --disable-libfdk-aac --disable-libopenjpeg --disable-libjxl --disable-libbluray --disable-libgme --disable-libgsm --disable-libaribb24 --disable-mmal --disable-libmodplug --disable-libopus --disable-libvpl --disable-libilbc --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt --disable-librsvg --disable-ffnvcodec --disable-libvorbis --disable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint --disable-cuda-llvm --disable-libflite --disable-frei0r --disable-libvmaf --disable-libfribidi --disable-fontconfig --disable-ladspa --disable-lcms2 --disable-libass --disable-libplacebo --disable-libtesseract --disable-lv2 --disable-libfreetype --disable-libvidstab --disable-librubberband --disable-libzmq --disable-libzimg --disable-libsoxr --enable-pthreads --disable-amf --disable-libvo-amrwbenc --disable-libkvazaar --disable-libaom --disable-libmp3lame --disable-libopenh264 --disable-librav1e --disable-libsnappy --disable-libsvtav1 --disable-libtheora --disable-libtwolame --disable-libwebp --disable-libx264 --disable-libx265 --disable-libxvid --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-vsx --disable-power8 --disable-amd3dnow --disable-amd3dnowext --disable-aesni --disable-avx --disable-avx2 --disable-fma3 --disable-fma4 --disable-sse3 --disable-ssse3 --disable-sse4 --disable-sse42 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
Program received signal SIGSEGV, Segmentation fault.
decode_cpe (ac=ac@entry=0x5555555e1890, gb=gb@entry=0x7fffffffd020, cpe=cpe@entry=0x7ffff586f010)
at src/libavcodec/aacdec_template.c:2227
2227 src/libavcodec/aacdec_template.c: No such file or directory.
(gdb) bt
#0 decode_cpe (ac=ac@entry=0x5555555e1890, gb=gb@entry=0x7fffffffd020, cpe=cpe@entry=0x7ffff586f010)
at src/libavcodec/aacdec_template.c:2227
#1 0x00007ffff64c8866 in aac_decode_frame_int (avctx=avctx@entry=0x5555555c0880,
frame=frame@entry=0x5555555e1630, got_frame_ptr=got_frame_ptr@entry=0x7fffffffd0cc,
gb=gb@entry=0x7fffffffd020, avpkt=<optimized out>) at src/libavcodec/aacdec_template.c:3215
#2 0x00007ffff64ca5cf in aac_decode_frame (avctx=0x5555555c0880, frame=0x5555555e1630,
got_frame_ptr=0x7fffffffd0cc, avpkt=0x5555555e3640) at src/libavcodec/aacdec_template.c:3396
#3 0x00007ffff65d5782 in decode_simple_internal (discarded_samples=<synthetic pointer>,
frame=<optimized out>, avctx=0x5555555c0880) at src/libavcodec/decode.c:285
#4 decode_simple_receive_frame (frame=<optimized out>, avctx=<optimized out>)
at src/libavcodec/decode.c:532
#5 decode_receive_frame_internal (avctx=avctx@entry=0x5555555c0880, frame=0x5555555e1630)
at src/libavcodec/decode.c:551
#6 0x00007ffff65d6440 in avcodec_send_packet (avctx=avctx@entry=0x5555555c0880,
avpkt=avpkt@entry=0x5555555c1b68) at src/libavcodec/decode.c:626
#7 0x00007ffff767c91b in try_decode_frame (s=s@entry=0x5555555bb290, st=st@entry=0x5555555bf9e0,
pkt=pkt@entry=0x5555555c1b68, options=<optimized out>) at src/libavformat/demux.c:2054
#8 0x00007ffff76817c7 in avformat_find_stream_info (ic=0x5555555bb290, options=0x5555555a5050)
at src/libavformat/demux.c:2748
#9 0x00005555555656cf in ifile_open (o=o@entry=0x7fffffffd4f0, filename=<optimized out>)
at src/fftools/ffmpeg_demux.c:985
#10 0x000055555557610c in open_files (l=0x5555555bb218, inout=inout@entry=0x55555558f3cd "input",
open_file=0x555555564af0 <ifile_open>) at src/fftools/ffmpeg_opt.c:1244
#11 0x0000555555578c2b in ffmpeg_parse_options (argc=argc@entry=3, argv=argv@entry=0x7fffffffdd48)
at src/fftools/ffmpeg_opt.c:1283
#12 0x000055555556088a in main (argc=3, argv=0x7fffffffdd48) at src/fftools/ffmpeg.c:4160
(gdb) |
|
It does help - thank you! Your issue is bug 915384. See the workaround I posted over there. |
|
Back to top |
|
|
LA GLOBULE n00b
Joined: 14 Mar 2007 Posts: 11
|
Posted: Fri Oct 13, 2023 8:04 am Post subject: |
|
|
Thx sam_ !
I confirm that the workaround works perfectly.
For information, I will repeat here the workaround, it may help for others :
- emerge app-portage/cpuid2cpuflags
- launch cpuid2cpuflags
- create a var CPU_FLAGS_X86 containing the output of this command in your /etc/portage/make.conf
- re emerge media-video/ffmpeg
- enjoy |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|