Created attachment 823853 [details] yt-dlp-2022.10.4:20221013-082412.log.gz I've checked that it works with ffmpeg-4.4.3. Anyway this is the output: ============================================================ FAILURES ============================================================= _______________________________________________ TestConvertThumbnail.test_escaping ________________________________________________ self = <test.test_postprocessors.TestConvertThumbnail testMethod=test_escaping> def test_escaping(self): pp = FFmpegThumbnailsConvertorPP() if not pp.available: print('Skipping: ffmpeg not found') return file = 'test/testdata/thumbnails/foo %d bar/foo_%d.{}' tests = (('webp', 'png'), ('png', 'jpg')) for inp, out in tests: out_file = file.format(out) if os.path.exists(out_file): os.remove(out_file) > pp.convert_thumbnail(file.format(inp), out) file = 'test/testdata/thumbnails/foo %d bar/foo_%d.{}' inp = 'webp' out = 'png' out_file = 'test/testdata/thumbnails/foo %d bar/foo_%d.png' pp = <yt_dlp.postprocessor.ffmpeg.FFmpegThumbnailsConvertorPP object at 0x7fe34d7a17e0> self = <test.test_postprocessors.TestConvertThumbnail testMethod=test_escaping> tests = (('webp', 'png'), ('png', 'jpg')) test/test_postprocessors.py:56: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ yt_dlp/postprocessor/ffmpeg.py:1093: in convert_thumbnail self.real_run_ffmpeg( _ = 'test/testdata/thumbnails/foo %d bar/foo_%d' self = <yt_dlp.postprocessor.ffmpeg.FFmpegThumbnailsConvertorPP object at 0x7fe34d7a17e0> source_ext = '.webp' target_ext = 'png' thumbnail_conv_filename = 'test/testdata/thumbnails/foo %d bar/foo_%d.png' thumbnail_filename = 'test/testdata/thumbnails/foo %d bar/foo_%d.webp' _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <yt_dlp.postprocessor.ffmpeg.FFmpegThumbnailsConvertorPP object at 0x7fe34d7a17e0> input_path_opts = [('test/testdata/thumbnails/foo %d bar/foo_%d.webp', ['-f', 'image2', '-pattern_type', 'none'])] output_path_opts = [('test/testdata/thumbnails/foo %%d bar/foo_%%d.png', [])] def real_run_ffmpeg(self, input_path_opts, output_path_opts, *, expected_retcodes=(0,)): self.check_version() oldest_mtime = min( os.stat(encodeFilename(path)).st_mtime for path, _ in input_path_opts if path) cmd = [encodeFilename(self.executable, True), encodeArgument('-y')] # avconv does not have repeat option if self.basename == 'ffmpeg': cmd += [encodeArgument('-loglevel'), encodeArgument('repeat+info')] def make_args(file, args, name, number): keys = ['_%s%d' % (name, number), '_%s' % name] if name == 'o': args += ['-movflags', '+faststart'] if number == 1: keys.append('') args += self._configuration_args(self.basename, keys) if name == 'i': args.append('-i') return ( [encodeArgument(arg) for arg in args] + [encodeFilename(self._ffmpeg_filename_argument(file), True)]) for arg_type, path_opts in (('i', input_path_opts), ('o', output_path_opts)): cmd += itertools.chain.from_iterable( make_args(path, list(opts), arg_type, i + 1) for i, (path, opts) in enumerate(path_opts) if path) self.write_debug('ffmpeg command line: %s' % shell_quote(cmd)) _, stderr, returncode = Popen.run( cmd, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE) if returncode not in variadic(expected_retcodes): self.write_debug(stderr) > raise FFmpegPostProcessorError(stderr.strip().splitlines()[-1]) E yt_dlp.postprocessor.ffmpeg.FFmpegPostProcessorError: Conversion failed! _ = '' arg_type = 'o' cmd = ['ffmpeg', '-y', '-loglevel', 'repeat+info', '-f', 'image2', '-pattern_type', 'none', '-i', 'file:test/testdata/thumbnails/foo %d bar/foo_%d.webp', '-movflags', '+faststart', 'file:test/testdata/thumbnails/foo %%d bar/foo_%%d.png'] expected_retcodes = (0,) input_path_opts = [('test/testdata/thumbnails/foo %d bar/foo_%d.webp', ['-f', 'image2', '-pattern_type', 'none'])] make_args = <function FFmpegPostProcessor.real_run_ffmpeg.<locals>.make_args at 0x7fe34d6f4280> oldest_mtime = 1664859046.0 output_path_opts = [('test/testdata/thumbnails/foo %%d bar/foo_%%d.png', [])] path_opts = [('test/testdata/thumbnails/foo %%d bar/foo_%%d.png', [])] returncode = 1 self = <yt_dlp.postprocessor.ffmpeg.FFmpegThumbnailsConvertorPP object at 0x7fe34d7a17e0> stderr = ('ffmpeg version 5.1.2 Copyright (c) 2000-2022 the FFmpeg developers\n' ' built with gcc 12.2.0 (Gentoo 12.2.0 p1)\n' ' configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 ' '--docdir=/usr/share/doc/ffmpeg-5.1.2/html --mandir=/usr/share/man ' '--enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ ' '--ar=/usr/bin/gcc-ar --nm=/usr/bin/gcc-nm --strip=x86_64-pc-linux-gnu-strip ' '--ranlib=/usr/bin/gcc-ranlib --pkg-config=x86_64-pc-linux-gnu-pkg-config ' "--optflags='-O2 -pipe -frecord-gcc-switches -march=skylake -mabm " "-ftree-vectorize' --disable-static --enable-avfilter --disable-stripping " '--disable-optimizations --disable-libcelt --enable-nonfree --enable-version3 ' '--disable-indev=oss --disable-indev=jack --disable-indev=sndio ' '--disable-outdev=oss --disable-outdev=sndio --enable-version3 ' '--enable-version3 --enable-nonfree --enable-bzlib ' '--disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls ' '--enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv ' '--enable-libxml2 --enable-lzma --enable-network --enable-opencl ' '--enable-openssl --enable-postproc --enable-libsmbclient --enable-ffplay ' '--enable-sdl2 --enable-vaapi --disable-vdpau --enable-vulkan --enable-xlib ' '--enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib ' '--enable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca ' '--enable-openal --enable-opengl --disable-libv4l2 --enable-libpulse ' '--enable-libdrm --disable-libjack --enable-libopencore-amrwb ' '--enable-libopencore-amrnb --disable-libcodec2 --enable-libdav1d ' '--enable-libfdk-aac --enable-libopenjpeg --disable-libjxl ' '--disable-libbluray --disable-libgme --disable-libgsm --disable-libaribb24 ' '--disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc ' '--disable-librtmp --enable-libssh --enable-libspeex --disable-libsrt ' '--enable-librsvg --disable-ffnvcodec --enable-libvorbis --enable-libvpx ' '--disable-libzvbi --disable-appkit --enable-libbs2b --disable-chromaprint ' '--disable-cuda-llvm --disable-libflite --enable-frei0r --disable-libvmaf ' '--enable-libfribidi --enable-fontconfig --disable-ladspa --enable-lcms2 ' '--enable-libass --enable-libplacebo --disable-libtesseract --disable-lv2 ' '--enable-libfreetype --disable-libvidstab --disable-librubberband ' '--disable-libzmq --disable-libzimg --enable-libsoxr --enable-pthreads ' '--disable-amf --disable-libvo-amrwbenc --enable-libkvazaar --disable-libaom ' '--enable-libmp3lame --disable-libopenh264 --disable-librav1e ' '--disable-libsnappy --enable-libsvtav1 --enable-libtheora ' '--disable-libtwolame --enable-libwebp --enable-libx264 --enable-libx265 ' '--enable-libxvid --disable-gnutls --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-fma4 --disable-xop --cpu=skylake ' '--enable-lto --enable-doc --enable-htmlpages --enable-manpages\n' ' libavutil 57. 28.100 / 57. 28.100\n' ' libavcodec 59. 37.100 / 59. 37.100\n' ' libavformat 59. 27.100 / 59. 27.100\n' ' libavdevice 59. 7.100 / 59. 7.100\n' ' libavfilter 8. 44.100 / 8. 44.100\n' ' libswscale 6. 7.100 / 6. 7.100\n' ' libswresample 4. 7.100 / 4. 7.100\n' ' libpostproc 56. 6.100 / 56. 6.100\n' "Input #0, image2, from 'file:test/testdata/thumbnails/foo %d " "bar/foo_%d.webp':\n" ' Duration: 00:00:00.04, start: 0.000000, bitrate: N/A\n' ' Stream #0:0: Video: webp, yuv420p(tv, bt470bg/unknown/unknown), 479x309, ' '25 fps, 25 tbr, 25 tbn\n' 'Stream mapping:\n' ' Stream #0:0 -> #0:0 (webp (native) -> png (native))\n' 'Press [q] to stop, [?] for help\n' "Output #0, image2, to 'file:test/testdata/thumbnails/foo %%d " "bar/foo_%%d.png':\n" ' Metadata:\n' ' encoder : Lavf59.27.100\n' ' Stream #0:0: Video: png, rgb24(pc, gbr/unknown/unknown, progressive), ' '479x309, q=2-31, 200 kb/s, 25 fps, 25 tbn\n' ' Metadata:\n' ' encoder : Lavc59.37.100 png\n' 'frame= 1 fps=0.0 q=0.0 size=N/A time=00:00:00.00 bitrate=N/A speed= ' '0x \n' '[image2 @ 0x564768cf5640] The specified filename ' "'file:test/testdata/thumbnails/foo %%d bar/foo_%%d.png' does not contain an " 'image sequence pattern or a pattern is invalid.\n' '[image2 @ 0x564768cf5640] Use a pattern such as %03d for an image sequence ' 'or use the -update option (with -frames:v 1 if needed) to write a single ' 'image.\n' '[image2 @ 0x564768cf5640] Could not open file : ' 'file:test/testdata/thumbnails/foo %%d bar/foo_%%d.png\n' 'av_interleaved_write_frame(): Input/output error\n' 'frame= 1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A ' 'speed=1.48x \n' 'video:30kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB ' 'muxing overhead: unknown\n' 'Conversion failed!\n') yt_dlp/postprocessor/ffmpeg.py:361: FFmpegPostProcessorError ===================================================== short test summary info ===================================================== FAILED test/test_postprocessors.py::TestConvertThumbnail::test_escaping - yt_dlp.postprocessor.ffmpeg.FFmpegPostProcessorError: ... ========================================= 1 failed, 299 passed, 4851 deselected in 47.07s ========================================= pytest-xprocess reminder::Be sure to terminate the started process by running 'pytest --xkill' if you have not explicitly done so in your fixture with 'xprocess.getinfo(<process_name>).terminate()'. * ERROR: net-misc/yt-dlp-2022.10.4::gentoo failed (test phase): * pytest failed with python3.10
# emerge --info =net-misc/yt-dlp-2022.10.4 Portage 3.0.38.1 (python 3.10.8-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-12.2.0, glibc-2.35-r8, 5.15.72-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.15.72-gentoo-x86_64-Intel-R-_Core-TM-_i5-8400_CPU_@_2.80GHz-with-glibc2.35 KiB Mem: 16147760 total, 330088 free KiB Swap: 16777212 total, 16619772 free Timestamp of repository gentoo: Thu, 13 Oct 2022 06:15:01 +0000 Head commit of repository gentoo: f662764632252c3be3349582d91f8da060eefbce sh dash 0.5.11.5 ld GNU ld (Gentoo 2.39 p5) 2.39.0 distcc 3.4 x86_64-pc-linux-gnu [disabled] ccache version 4.5.1 [disabled] app-misc/pax-utils: 1.3.5::gentoo app-shells/bash: 5.1_p16-r1::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.1-r3::gentoo dev-lang/python: 3.10.8::gentoo dev-lang/rust: 1.64.0-r1::gentoo dev-util/ccache: 4.5.1::gentoo dev-util/cmake: 3.23.3::gentoo dev-util/meson: 0.62.2::gentoo sys-apps/baselayout: 2.8::gentoo sys-apps/sandbox: 2.29::gentoo sys-apps/systemd: 251.4::gentoo sys-devel/autoconf: 2.71-r1::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.39-r3::gentoo sys-devel/binutils-config: 5.4.1::gentoo sys-devel/clang: 14.0.6-r1::gentoo sys-devel/gcc: 12.2.0::gentoo sys-devel/gcc-config: 2.5-r1::gentoo sys-devel/libtool: 2.4.7::gentoo sys-devel/lld: 14.0.6::gentoo sys-devel/llvm: 14.0.6-r2::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.15-r3::gentoo (virtual/os-headers) sys-libs/glibc: 2.35-r8::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 sync-rsync-verify-jobs: 1 x-portage location: /usr/local/portage masters: gentoo priority: 0 kde location: /var/lib/layman/kde sync-type: laymansync sync-uri: https://anongit.gentoo.org/git/proj/kde.git masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" AR="/usr/bin/gcc-ar" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -frecord-gcc-switches -march=skylake -mabm -ftree-vectorize -flto=6" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt" 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/terminfo" CXXFLAGS="-O2 -pipe -frecord-gcc-switches -march=skylake -mabm -ftree-vectorize -flto=6" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--keep-going y --with-bdeps y" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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="-O2 -pipe -frecord-gcc-switches -march=skylake -mabm -ftree-vectorize -flto=6" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live cgroup compress-build-logs config-protect-if-modified distlocks ebuild-locks ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign split-elog split-log strict strict-keepdir test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -frecord-gcc-switches -march=skylake -mabm -ftree-vectorize -flto=6" GENTOO_MIRRORS="http://ftp.belnet.be/pub/rsync.gentoo.org/gentoo/ http://ftp.fau.de/gentoo https://ftp.fau.de/gentoo https://ftp.belnet.be/pub/rsync.gentoo.org/gentoo/" LANG="it_IT.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common -ftree-vectorize -flto=6" LINGUAS="it it_IT" MAKEOPTS="-j7 -l6" NM="/usr/bin/gcc-nm" 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" RANLIB="/usr/bin/gcc-ranlib" SHELL="/bin/bash" USE="X a52 aac aalib acl acpi activities adns alsa amd64 ao audiofile bash-completion bluetooth branding brotli bzip2 cairo caps cdda cddb cdparanoia cdr cli crypt css cups curl dbus declarative dga djvu dri dts dvd dvdr encode exif expat fbcon ffmpeg fftw flac fontconfig foomaticdb fortran ftp gd gdbm geoip gif gimp gmp gnutls gphoto2 gpm graphviz gstreamer gtk gui guile handbook iconv icu idn imagemagick imlib introspection ipv6 java javascript jbig jemalloc jpeg jpeg2k kde kwallet lame lcms libass libglvnd libnotify libsamplerate libtirpc lm-sensors lua lz4 lzma lzo mad magic mmap mng mp3 mp4 mpeg multilib musicbrainz ncurses nls nptl offensive ogg openal opengl openmp opus pam pango pcre pdf plasma png policykit postscript ppds pulseaudio qml qt5 rdesktop readline recode samba sctp sdl seccomp sndfile sockets speex spell split-usr sqlite ssl startup-notification svg symlink syslog systemd sysvipc taglib telemetry test test-rust theora threads tidy tiff truetype udev udisks unicode upower usb v4l vaapi vala verify-sig vim-syntax vnc vorbis wavpack wayland webp widgets win32codecs wmf wxwidgets x264 xattr xcb xinerama xml xpm xscreensaver xv xvid yahoo zip zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2020" ALSA_CARDS="hda-intel virmidi" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="gnutls" 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" L10N="it en" 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="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="intel i965 iris" 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, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS # emerge -1pqv =net-misc/yt-dlp-2022.10.4 [ebuild U ] net-misc/yt-dlp-2022.10.4 [2022.9.1] USE="test" PYTHON_TARGETS="python3_10 -python3_8 -python3_9 (-python3_11)"
Impact seems(?) minor, so maybe will just skip the test later (after trying ffmpeg-5.1.x use a bit) until fixed upstream.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=494838193359f73be1b018ecf2b064cd7980b2ae commit 494838193359f73be1b018ecf2b064cd7980b2ae Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2022-11-11 11:22:07 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2022-11-11 11:39:14 +0000 net-misc/yt-dlp: add 2022.11.11 test fixed upstream wrt bug #876963 Closes: https://bugs.gentoo.org/876963 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> net-misc/yt-dlp/Manifest | 1 + net-misc/yt-dlp/yt-dlp-2022.11.11.ebuild | 64 ++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+)