You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide a description that is worded well enough to be understood
Building yt-dlp from source using aur package yt-dlp-git, self-test sequence fails at test/test_postprocessors.py::TestConvertThumbnail::test_escaping, preventing correct instalation.
Specifically, the error outputed from the self-test is:
===================================================== 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)
test/test_postprocessors.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
yt_dlp/postprocessor/ffmpeg.py:1093: in convert_thumbnail
self.real_run_ffmpeg(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <yt_dlp.postprocessor.ffmpeg.FFmpegThumbnailsConvertorPP object at 0x7fb03a700250>
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!
yt_dlp/postprocessor/ffmpeg.py:361: FFmpegPostProcessorError
Provide verbose output that clearly demonstrates the problem
Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
Copy the WHOLE output (starting with [debug] Command-line config) and insert it below
Complete Verbose Output
Issue with self-test, preventing further installation of yt-dlp. As such, output of yt-dlp commands will be associated with last version that managed to build, instead of the one creating the issues.
The text was updated successfully, but these errors were encountered:
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Provide a description that is worded well enough to be understood
Building yt-dlp from source using aur package yt-dlp-git, self-test sequence fails at
test/test_postprocessors.py::TestConvertThumbnail::test_escaping
, preventing correct instalation.Specifically, the error outputed from the self-test is:
Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>
)[debug] Command-line config
) and insert it belowComplete Verbose Output
The text was updated successfully, but these errors were encountered: