Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--write-thumbnail --skip-download dosn't work with --exec? #22464

Closed
gk26 opened this issue Sep 20, 2019 · 2 comments
Closed

--write-thumbnail --skip-download dosn't work with --exec? #22464

gk26 opened this issue Sep 20, 2019 · 2 comments
Labels

Comments

@gk26
Copy link

@gk26 gk26 commented Sep 20, 2019

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

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

@gk26 gk26 added the question label Sep 20, 2019
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 20, 2019

This is expected behavior. There is no file downloaded to run --exec on.

@dstftw dstftw closed this Sep 20, 2019
@gk26
Copy link
Author

@gk26 gk26 commented Sep 20, 2019

Thanks,
but: "youtube-dl_test_video_a-BaW_jenozKc.jpg" was downloadet. Is there a chance to interact with the thumbnail file?

-- Chris

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.