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
When using --exec after_video:"notify-send 'Finished downloading'" , notify-send does not receive filepath as an argument. However, when using post_process, it does.
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
[debug] Command-line config: ['-vU', '--exec', "after_video:notify-send 'Finished downloading'", 'https://www.youtube.com/watch?v=7lmCu8wz8ro']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.11.11 [8b64402]
[debug] Python 3.10.8 (CPython x86_64 64bit) - Linux-5.15.82-1-lts-x86_64-with-glibc2.36 (OpenSSL 3.0.7 1 Nov 2022, glibc 2.36)
[debug] exe versions: ffmpeg 5.1.2 (setts), ffprobe 5.1.2
[debug] Optional libraries: certifi-2022.09.24, secretstorage-3.3.3, sqlite3-2.6.0
[debug] Proxy map: {}
[debug] Loaded 1723 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2022.11.11, Current version: 2022.11.11
yt-dlp is up to date (2022.11.11)
[debug] [youtube] Extracting URL: https://www.youtube.com/watch?v=7lmCu8wz8ro
[youtube] 7lmCu8wz8ro: Downloading webpage
[youtube] 7lmCu8wz8ro: Downloading android player API JSON
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] 7lmCu8wz8ro: Downloading 1 format(s): 248+251
[debug] Invoking http downloader on "https://rr3---sn-ugpva5o-3c2s.googlevideo.com/videoplayback?expire=1671633430&ei=tsWiY9P2MIKd8gPzwrigDw&ip=37.57.124.33&id=o-AEXK3c1Ht_i1CfJn1BKhiMjJ2k-XHvkvNNM74TL-FXoT&itag=248&source=youtube&requiressl=yes&mh=pG&mm=31%2C26&mn=sn-ugpva5o-3c2s%2Csn-4g5e6nsr&ms=au%2Conr&mv=m&mvi=3&pl=24&initcwndbps=1406250&spc=zIddbMUPF2PEibpfj3mcP9qeb0wZ5Ak&vprv=1&svpuc=1&mime=video%2Fwebm&gir=yes&clen=251475652&dur=6722.049&lmt=1545189620894973&mt=1671611328&fvip=3&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=5535432&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgLTYkILDOB1Q_wfWGsdnNxGqGVCIRSCIk876Tsgrdo6cCIQDO8Fz55Ddj0GlHpjLrnX4fbGjoxj8LPGyurqa_XROjCw%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgXzD8TvJwTw8PNjah8CjBFvtN5WoYsu3QqW3MsnGK_coCIQDviB8h6eL0ZjtshK7qEk__P3e4JlZ4sxZoSpVgWXDzyA%3D%3D"
[download] Destination: What Does It Take To Be An Expert At Python? [7lmCu8wz8ro].f248.webm
[download] 100% of 239.83MiB in 00:00:25 at 9.42MiB/s
[debug] Invoking http downloader on "https://rr3---sn-ugpva5o-3c2s.googlevideo.com/videoplayback?expire=1671633430&ei=tsWiY9P2MIKd8gPzwrigDw&ip=37.57.124.33&id=o-AEXK3c1Ht_i1CfJn1BKhiMjJ2k-XHvkvNNM74TL-FXoT&itag=251&source=youtube&requiressl=yes&mh=pG&mm=31%2C26&mn=sn-ugpva5o-3c2s%2Csn-4g5e6nsr&ms=au%2Conr&mv=m&mvi=3&pl=24&initcwndbps=1406250&spc=zIddbMUPF2PEibpfj3mcP9qeb0wZ5Ak&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=91203988&dur=6722.081&lmt=1545376716775032&mt=1671611328&fvip=3&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=5511222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgWJXZloUVLWR67W24Gv2psi8u3m8Ao5pmkd_5W3sR9rsCIDVHh3dV6gIqkXLxvlFrpsGODr2FPqu5ikYUvfXmahFt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgXzD8TvJwTw8PNjah8CjBFvtN5WoYsu3QqW3MsnGK_coCIQDviB8h6eL0ZjtshK7qEk__P3e4JlZ4sxZoSpVgWXDzyA%3D%3D"
[download] Destination: What Does It Take To Be An Expert At Python? [7lmCu8wz8ro].f251.webm
[download] 100% of 86.98MiB in 00:00:08 at 10.04MiB/s
[Merger] Merging formats into "What Does It Take To Be An Expert At Python? [7lmCu8wz8ro].webm"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:What Does It Take To Be An Expert At Python? [7lmCu8wz8ro].f248.webm' -i 'file:What Does It Take To Be An Expert At Python? [7lmCu8wz8ro].f251.webm' -c copy -map 0:v:0 -map 1:a:0 -movflags +faststart 'file:What Does It Take To Be An Expert At Python? [7lmCu8wz8ro].temp.webm'
Deleting original file What Does It Take To Be An Expert At Python? [7lmCu8wz8ro].f251.webm (pass -k to keep)
Deleting original file What Does It Take To Be An Expert At Python? [7lmCu8wz8ro].f248.webm (pass -k to keep)
[Exec] Executing command: notify-send 'Finished downloading'
The text was updated successfully, but these errors were encountered:
There is no single filename associated with the after_video stage - so nothing is appended to --exec (as opposed to NA in -o). I will correct the documentation to reflect this.
If you want all the filenames, use %(requested_downloads.:.filepath)#q. But since you are only downloading a single format per video, why not just run at after_move (default)?
My idea was to run a command after yt-dlp is done with everything. And it seems like after_video is the last event that runs.
Maybe, because according to the doc, it runs 'after downloading and processing all formats of a video', it could receive the video name, just like the before_dl does? Since both are dealing with download.
according to the doc, it runs 'after downloading and processing all formats of a video',
it could receive the video name, just like the before_dl does?
I believe you are misunderstanding what "all formats" mean. If you pass say, -f f1,f2, both formats will be downloaded into separate files. This stage runs only after both of them are downloaded and processed. Since the formats have different filenames, no single name can be passed to --exec.
Did you try using the default stage as I suggested?
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Provide a description that is worded well enough to be understood
When using
--exec after_video:"notify-send 'Finished downloading'"
, notify-send does not receive filepath as an argument. However, when usingpost_process
, it does.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: