Skip to content

ERROR: Postprocessing: Conversion failed #1573

Description

@specious-logic

Started getting the following error on on some vids immediately after updating tag from v0.18.3 -> latest to pick up the latest yt-dlp to address 1557

ERROR: Postprocessing: Conversion failed!
[2026-08-29 15:31:46,206] ERROR:huey:360:MainThread:Unhandled exception in task e527d62f-fb23-4989-be33-0814cabff40c.
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/dist-packages/yt_dlp/YoutubeDL.py", line 3666, in process_info
    replace_info_dict(self.post_process(dl_filename, info_dict, files_to_move))
                      ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/dist-packages/yt_dlp/YoutubeDL.py", line 3852, in post_process
    info = self.run_all_pps('post_process', info, additional_pps=info.get('__postprocessors'))
  File "/usr/local/lib/python3.13/dist-packages/yt_dlp/YoutubeDL.py", line 3834, in run_all_pps
    info = self.run_pp(pp, info)
  File "/usr/local/lib/python3.13/dist-packages/yt_dlp/YoutubeDL.py", line 3812, in run_pp
    files_to_delete, infodict = pp.run(infodict)
                                ~~~~~~^^^^^^^^^^
  File "/usr/local/lib/python3.13/dist-packages/yt_dlp/postprocessor/common.py", line 23, in run
    ret = func(self, info, *args, **kwargs)
  File "/usr/local/lib/python3.13/dist-packages/yt_dlp/postprocessor/common.py", line 128, in wrapper
    return func(self, info)
  File "/usr/local/lib/python3.13/dist-packages/yt_dlp/postprocessor/ffmpeg.py", line 841, in run
    self.run_ffmpeg_multiple_files(info['__files_to_merge'], temp_filename, args)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/dist-packages/yt_dlp/postprocessor/ffmpeg.py", line 322, in run_ffmpeg_multiple_files
    return self.real_run_ffmpeg(
           ~~~~~~~~~~~~~~~~~~~~^
        [(path, []) for path in input_paths],
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        [(out_path, opts)], **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/dist-packages/yt_dlp/postprocessor/ffmpeg.py", line 360, in real_run_ffmpeg
    raise FFmpegPostProcessorError(stderr.strip().splitlines()[-1])
yt_dlp.postprocessor.ffmpeg.FFmpegPostProcessorError: Conversion failed!

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/sync/youtube.py", line 431, in download_media
    return y.download([url])
           ~~~~~~~~~~^^^^^^^
  File "/usr/local/lib/python3.13/dist-packages/yt_dlp/YoutubeDL.py", line 3714, in download
    self.__download_wrapper(self.extract_info)(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        url, force_generic_extractor=self.params.get('force_generic_extractor', False))
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/dist-packages/yt_dlp/YoutubeDL.py", line 3687, in wrapper
    res = func(*args, **kwargs)
  File "/usr/local/lib/python3.13/dist-packages/yt_dlp/YoutubeDL.py", line 1720, in extract_info
    return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
           ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/dist-packages/yt_dlp/YoutubeDL.py", line 1731, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.13/dist-packages/yt_dlp/YoutubeDL.py", line 1887, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/dist-packages/yt_dlp/YoutubeDL.py", line 1946, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "/usr/local/lib/python3.13/dist-packages/yt_dlp/YoutubeDL.py", line 3134, in process_video_result
    self.process_info(new_info)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/local/lib/python3.13/dist-packages/yt_dlp/YoutubeDL.py", line 194, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.13/dist-packages/yt_dlp/YoutubeDL.py", line 3668, in process_info
    self.report_error(f'Postprocessing: {err}')
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/dist-packages/yt_dlp/YoutubeDL.py", line 1165, in report_error
    self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/dist-packages/yt_dlp/YoutubeDL.py", line 1103, in trouble
    raise DownloadError(message, exc_info)
yt_dlp.utils.DownloadError: ERROR: Postprocessing: Conversion failed!

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.13/dist-packages/huey/api.py", line 462, in _execute
    task_value = task.execute()
  File "/usr/local/lib/python3.13/dist-packages/huey/api.py", line 997, in execute
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.13/dist-packages/django_huey/__init__.py", line 23, in inner
    return fn(*args, **kwargs)
  File "/app/sync/tasks.py", line 1072, in download_media_file
    format_str, container = media.download_media()
                            ~~~~~~~~~~~~~~~~~~~~^^
  File "/app/sync/models/media.py", line 1052, in download_media
    download_youtube_media(self.url, format_str, self.source.extension,
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                           str(self.filepath), self.source.write_json,
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                           self.source.sponsorblock_categories.expand_choices, self.source.embed_thumbnail,
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                           self.source.embed_metadata, self.source.enable_sponsorblock,
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                          self.source.write_subtitles, self.source.auto_subtitles,self.source.sub_langs )
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/sync/youtube.py", line 439, in download_media
    raise YouTubeError(f'Failed to download for "{url}": {e}') from e
sync.youtube.YouTubeError: Failed to download for "<removed>": ERROR: Postprocessing: Conversion failed!

The errors happen pervasively on vids from some channels and are completely absent from other channels. Unsure why.

Metadata

Metadata

Labels

questionFurther information is requestedwaiting-on-authorMore details or answers are needed from the author of this issue

Projects

  • Status
    Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions