Skip to content

[Error] "Unsafe Conversion" when enabling the cropping of preview images since new yt_dlp update #1907

Description

@Slitter-the-Dubstep

URL

https://music.youtube.com/playlist?list=OLAK5uy_mV9Mqpx7xNnu3OOmOsfeNa9rzCU0_Zwqs&si=GZmXP4aqd0vmxAd_

Download Log

[debug] Command-line config: ['https://www.youtube.com/watch?v=-olH7Au9YGA', '--ignore-config', '--verbose', '--no-warnings', '--progress', '--newline', '--progress-template', '[Parabolic] Progress;%(progress.status)s;%(progress.downloaded_bytes)s;%(progress.total_bytes)s;%(progress.total_bytes_estimate)s;%(progress.speed)s;%(progress.eta)s', '--progress-delta', '.75', '-t', 'sleep', '--no-mtime', '--no-embed-info-json', '--ffmpeg-location', 'C:\\Program Files\\Nickvision Parabolic\\Release\\ffmpeg.exe', '--js-runtimes', 'deno:C:\\Users\\Slitter\\AppData\\Local\\deno.exe', '--paths', 'D:\\Slitter\\5 Komischer kram\\Album - Amaeru - EP', '--paths', 'temp:D:\\Slitter\\5 Komischer kram\\Album - Amaeru - EP', '--output', 'Karma (Anime).%(ext)s', '--output', 'chapter:%(section_number)03d - Karma (Anime).%(ext)s', '--print', 'after_move:filepath', '--plugin-dir', 'C:\\Program Files\\Nickvision Parabolic\\Release\\plugins', '--force-overwrites', '--windows-filenames', '--format-sort', '+vcodec:av01,res,+acodec:opus,quality', '--cookies-from-browser', 'firefox', '--embed-metadata', '--postprocessor-args', 'Metadata+ffmpeg:-metadata track=7', '--embed-thumbnail', '--convert-thumbnails', 'jpg', '--exec', 'before_dl:"C:\\Program Files\\Nickvision Parabolic\\Release\\ffmpeg.exe" -i %(thumbnails.-1.filepath)q -vf crop="\'if(gt(ih,iw),iw,ih)\':\'if(gt(iw,ih),ih,iw)\'" "%(thumbnails.-1.filepath)s.tmp.jpg"', '--exec', 'before_dl:del %(thumbnails.-1.filepath)q', '--exec', 'before_dl:move "%(thumbnails.-1.filepath)s.tmp.jpg" %(thumbnails.-1.filepath)q', '--embed-chapters', '--extract-audio', '--audio-quality', '0', '--audio-format', 'opus', '--format', 'bestaudio', '--postprocessor-args', 'ffmpeg:-threads 20']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out cp1252 (No ANSI), error cp1252 (No ANSI), screen cp1252 (No ANSI)
[debug] yt-dlp version nightly@2026.06.09.230517 from yt-dlp/yt-dlp-nightly-builds [821bef0f0] (win_exe)
[debug] Python 3.10.11 (CPython AMD64 64bit) - Windows-10-10.0.26200-SP0 (OpenSSL 1.1.1t  7 Feb 2023)
[debug] exe versions: ffmpeg n8.1.1-8-gb21e00eda5-20260524 (setts), ffprobe n8.1.1-8-gb21e00eda5-20260524
[debug] Optional libraries: Cryptodome-3.23.0, brotli-1.2.0, certifi-2026.05.20, curl_cffi-0.15.0, mutagen-1.47.0, requests-2.34.2, sqlite3-3.40.1, urllib3-2.7.0, websockets-16.0, yt_dlp_ejs-0.8.0
[debug] JS runtimes: deno-2.8.2
[debug] Proxy map: {}
Extracting cookies from firefox
[debug] Extracting cookies from: "C:\Users\Slitter\AppData\Roaming\Mozilla\Firefox\Profiles\1sua1afe.default-release\cookies.sqlite"
[debug] Firefox cookies database version: 17
Extracted 2706 cookies from firefox
[debug] Request Handlers: urllib, requests, websockets, curl_cffi
[debug] Post-Processor Plugins: srt_fixPP
[debug] Plugin directories: C:\Program Files\Nickvision Parabolic\Release\plugins\srt_fix\yt_dlp_plugins
[debug] Loaded 1739 extractors
ERROR: Unsafe conversion(s) in exec command: '"C:\\Program Files\\Nickvision Parabolic\\Release\\ffmpeg.exe" -i %(thumbnails.-1.filepath)q -vf crop="\'if(gt(ih,iw),iw,ih)\':\'if(gt(iw,ih),ih,iw)\'" "%(thumbnails.-1.filepath)s.tmp.jpg"'
Conversions such as %()s are too dangerous to be used in --exec command templates; use %()q instead. See  https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-69qj-pvh9-c5wg  for details
Traceback (most recent call last):
  File "yt_dlp\YoutubeDL.py", line 833, in __init__
  File "yt_dlp\postprocessor\exec.py", line 10, in __init__
  File "yt_dlp\postprocessor\common.py", line 58, in __init__
  File "yt_dlp\postprocessor\exec.py", line 18, in set_downloader
  File "yt_dlp\YoutubeDL.py", line 1514, in prepare_outtmpl
  File "yt_dlp\YoutubeDL.py", line 1444, in create_key
yt_dlp.utils.UnsafeExecExpansionError: Unsafe conversion(s) in exec command: '"C:\\Program Files\\Nickvision Parabolic\\Release\\ffmpeg.exe" -i %(thumbnails.-1.filepath)q -vf crop="\'if(gt(ih,iw),iw,ih)\':\'if(gt(iw,ih),ih,iw)\'" "%(thumbnails.-1.filepath)s.tmp.jpg"'
Conversions such as %()s are too dangerous to be used in --exec command templates; use %()q instead. See  https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-69qj-pvh9-c5wg  for details

Download Options

OPUS
BEST QUALITY
audio only

Debugging Information

App: Nickvision Parabolic
Version: 2026.5.0

Operating System: Microsoft Windows 10.0.26200
Deployment Mode: Local
Locale: de-DE
Running From: C:\Program Files\Nickvision Parabolic\Release
NativeAOT: True

Database encrypted: True
Log path: C:\Users\Slitter\AppData\Local\Nickvision Parabolic\app.log

yt-dlp: 2026.6.9.230517
deno: 2.8.2
ffmpeg: n8.1.1-8-gb21e00eda5-20260524 
aria2: 1.37.0

AllowPreviewUpdates = True
AriaMaxConnectionsPerServer = 16
AriaMinSplitSize = 20
AudioBitrate = 1,7976931348623157E+308
AudioFormatIds = {
  "Video": "BEST_AUDIO",
  "MP4": "BEST_AUDIO",
  "MKV": "BEST_AUDIO",
  "WEBM": "BEST_AUDIO",
  "MOV": "BEST_AUDIO",
  "AVI": "BEST_AUDIO",
  "Audio": "BEST_AUDIO",
  "MP3": "BEST_AUDIO",
  "M4A": "BEST_AUDIO",
  "OPUS": "BEST_AUDIO",
  "FLAC": "BEST_AUDIO",
  "WAV": "BEST_AUDIO",
  "OGG": "BEST_AUDIO"
}
AudioOnlyFileType = 9
CookiesBrowser = 5
CookiesPath = ""
CropAudioThumbnails = True
DownloadImmediatelyAsAudio = True
DownloadImmediatelyAsVideo = False
EmbedChapters = True
EmbedMetadata = True
EmbedSubtitles = True
EmbedThumbnails = True
ExportDescription = False
ExportM3U = False
FullFileType = 9
HistoryLength = -1
IncludeAutoGeneratedSubtitles = True
IncludeMediaIdInTitle = False
IncludeSuperResolutions = True
installed_deno_appversion = {
  "BaseVersion": "2.8.2",
  "PreviewLabel": ""
}
installed_yt-dlp_appversion = {
  "BaseVersion": "2026.6.9.230517",
  "PreviewLabel": ""
}
MaxNumberOfActiveDownloads = 10
NumberTitles = False
OverwriteExistingFiles = True
PostprocessingThreads = 20
PostProcessorArgumentName = ""
PreferredAudioCodec = 3
PreferredFrameRate = 0
PreferredSubtitleFormat = 0
PreferredVideoCodec = 2
PreventSuspend = False
ProxyUrl = ""
RemoveSourceData = False
ReverseDownloadOrder = False
SaveFolder = D:\Slitter\5 Komischer kram
ShowDisclaimerOnStartup = False
SpeedLimit = ""
SplitChapters = False
SubtitleLanguages = []
Theme = 2
TranslateMetadataAndChapters = False
TranslationLanguage = ""
UseAria = False
UsePartFiles = True
VideoFormatIds = {
  "Video": "BEST_VIDEO",
  "MP4": "BEST_VIDEO",
  "MKV": "BEST_VIDEO",
  "WEBM": "BEST_VIDEO",
  "MOV": "BEST_VIDEO",
  "AVI": "BEST_VIDEO",
  "Audio": "NONE_VIDEO",
  "MP3": "NONE_VIDEO",
  "M4A": "NONE_VIDEO",
  "OPUS": "NONE_VIDEO",
  "FLAC": "NONE_VIDEO",
  "WAV": "NONE_VIDEO",
  "OGG": "NONE_VIDEO"
}
VideoResolution = {
  "Width": 2147483647,
  "Height": 2147483647
}
WindowGeometry = {
  "Height": 700,
  "IsMaximized": false,
  "Width": 1169,
  "X": -1170,
  "Y": 8
}
YouTubeSponsorBlock = False
YtdlpDiscoveryArgs = ""
YtdlpDownloadArgs = ""

Additional context

basically, i want to have albumcovers embedded in my music downloads from youtube.
i want the albumcovers to be in 1:1 aspect ratio and the setting in parabolic to automatically crop it has stopped working since the latest yt_dlp update and it says that its because of an unsafe conversion prompt that got patched out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions