Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
--write-thumbnail --skip-download dosn't work with --exec? #22464
Comments
|
This is expected behavior. There is no file downloaded to run |
|
Thanks, -- Chris |
Checklist
Question
I just want to download the thumbnail of a video and then process it. But it seems that the --exec function does not work if you use the --skip-download option. Is that correct?
christoph@srv:~$ youtube-dl --verbose --write-thumbnail --restrict-filenames https://www.youtube.com/watch?v=BaW_jenozKc --exec 'ls -lh {}'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'--write-thumbnail', u'--restrict-filenames', u'https://www.youtube.com/watch?v=BaW_jenozKc', u'--exec', u'ls -lh {}']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.09.12.1
[debug] Python version 2.7.15+ (CPython) - Linux-4.15.0-62-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: ffmpeg 3.4.6, ffprobe 3.4.6
[debug] Proxy map: {}
[youtube] BaW_jenozKc: Downloading webpage
[youtube] BaW_jenozKc: Downloading video info webpage
[debug] Default format spec: bestvideo+bestaudio/best
[youtube] BaW_jenozKc: Downloading thumbnail ...
[youtube] BaW_jenozKc: Writing thumbnail to: youtube-dl_test_video_a-BaW_jenozKc.jpg
[download] youtube-dl_test_video_a-BaW_jenozKc.mp4 has already been downloaded and merged
[exec] Executing command: ls -lh youtube-dl_test_video_a-BaW_jenozKc.mp4
-rw-rw-r-- 1 christoph christoph 2,3M Dez 25 2013 youtube-dl_test_video_a-BaW_jenozKc.mp4
christoph@srv:~$ youtube-dl --verbose --write-thumbnail --skip-download --restrict-filenames https://www.youtube.com/watch?v=BaW_jenozKc --exec 'ls -lh {}'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'--write-thumbnail', u'--skip-download', u'--restrict-filenames', u'https://www.youtube.com/watch?v=BaW_jenozKc', u'--exec', u'ls -lh {}']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.09.12.1
[debug] Python version 2.7.15+ (CPython) - Linux-4.15.0-62-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: ffmpeg 3.4.6, ffprobe 3.4.6
[debug] Proxy map: {}
[youtube] BaW_jenozKc: Downloading webpage
[youtube] BaW_jenozKc: Downloading video info webpage
[debug] Default format spec: bestvideo+bestaudio/best
[youtube] BaW_jenozKc: Downloading thumbnail ...
[youtube] BaW_jenozKc: Writing thumbnail to: youtube-dl_test_video_a-BaW_jenozKc.jpg