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

--embed-thumbnail fails "OSError: [Errno 2] No such file or directory" #16393

Closed
section83 opened this issue May 7, 2018 · 0 comments
Closed

--embed-thumbnail fails "OSError: [Errno 2] No such file or directory" #16393

section83 opened this issue May 7, 2018 · 0 comments

Comments

@section83
Copy link

@section83 section83 commented May 7, 2018

  • I've verified and I assure that I'm running youtube-dl 2018.05.01 [see verbose log below]

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)

iMac:~ home$ youtube-dl  --extract-audio --audio-format m4a --audio-quality 0 -k  -v --embed-thumbnail  https://www.youtube.com/watch?v=W5oSFKWOLaQ&list=PLH-Z9W9MZCGG5sZ0A1rUBZagBv1uIXZ8Y
[1] 1967
iMac:~ home$ [debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--extract-audio', u'--audio-format', u'm4a', u'--audio-quality', u'0', u'-k', u'-v', u'--embed-thumbnail', u'https://www.youtube.com/watch?v=W5oSFKWOLaQ']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.05.01
[debug] Python version 2.7.10 (CPython) - Darwin-17.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.0-tessus, ffprobe 4.0-tessus, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] W5oSFKWOLaQ: Downloading webpage
[youtube] W5oSFKWOLaQ: Downloading video info webpage
[youtube] W5oSFKWOLaQ: Extracting video information
[youtube] {43} signature length 45.42, html5 player vflfv8a8v
[youtube] {18} signature length 45.42, html5 player vflfv8a8v
[youtube] {36} signature length 45.42, html5 player vflfv8a8v
[youtube] {17} signature length 45.42, html5 player vflfv8a8v
[youtube] {135} signature length 45.42, html5 player vflfv8a8v
[youtube] {134} signature length 45.42, html5 player vflfv8a8v
[youtube] {133} signature length 45.42, html5 player vflfv8a8v
[youtube] {160} signature length 45.42, html5 player vflfv8a8v
[youtube] {140} signature length 45.42, html5 player vflfv8a8v
[youtube] {171} signature length 45.42, html5 player vflfv8a8v
[debug] Default format spec: bestvideo+bestaudio/best
[youtube] W5oSFKWOLaQ: Downloading thumbnail ...
[youtube] W5oSFKWOLaQ: Writing thumbnail to: Illusion - Isadora-W5oSFKWOLaQ.jpg
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[debug] Invoking downloader on u'https://r2---sn-fpqxc5oq-hxae.googlevideo.com/videoplayback?ei=YJ7vWtiTGpesgAOilIzYCg&ms=au%2Crdu&mt=1525652977&mv=m&pl=24&clen=12092629&key=yt6&mm=31%2C29&mn=sn-fpqxc5oq-hxae%2Csn-ntqe7n7z&id=o-ACP8zQlAmQtKkIUVZFVrM-YTp-62eal5CtRzj24TopLa&fexp=23724337&dur=418.968&source=youtube&pcm2cms=yes&keepalive=yes&ip=121.200.17.121&requiressl=yes&itag=135&lmt=1391928478899937&ipbits=0&initcwndbps=1646250&expire=1525674688&mime=video%2Fmp4&fvip=2&aitags=133%2C134%2C135%2C160&gir=yes&c=WEB&beids=%5B9466594%5D&sparams=aitags%2Cclen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Crequiressl%2Csource%2Cexpire&signature=A0BB8851155E1BB8C6B8DFE43B1905C443630E1D.874D7C0B36EBFB11CEB2E856717677DA97112F4D&ratebypass=yes'
[download] Destination: Illusion - Isadora-W5oSFKWOLaQ.f135.mp4
[download] 100% of 11.53MiB in 00:02
[debug] Invoking downloader on u'https://r2---sn-fpqxc5oq-hxae.googlevideo.com/videoplayback?ei=YJ7vWtiTGpesgAOilIzYCg&ms=au%2Crdu&mt=1525652977&mv=m&pl=24&clen=6487252&key=yt6&mm=31%2C29&mn=sn-fpqxc5oq-hxae%2Csn-ntqe7n7z&id=o-ACP8zQlAmQtKkIUVZFVrM-YTp-62eal5CtRzj24TopLa&fexp=23724337&dur=419.055&source=youtube&pcm2cms=yes&keepalive=yes&ip=121.200.17.121&requiressl=yes&itag=171&lmt=1404577626287911&ipbits=0&initcwndbps=1646250&expire=1525674688&mime=audio%2Fwebm&fvip=2&gir=yes&c=WEB&beids=%5B9466594%5D&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Crequiressl%2Csource%2Cexpire&signature=AEBE915658CAAE5B52D8FB4513D095B79743A230.AFF5F5B89EBF92D5C10046DA2B8F81396643EFBB&ratebypass=yes'
[download] Destination: Illusion - Isadora-W5oSFKWOLaQ.f171.webm
[download] 100% of 6.19MiB in 00:01
[ffmpeg] Merging formats into "Illusion - Isadora-W5oSFKWOLaQ.mkv"
[debug] ffmpeg command line: ffmpeg -y -i 'file:Illusion - Isadora-W5oSFKWOLaQ.f135.mp4' -i 'file:Illusion - Isadora-W5oSFKWOLaQ.f171.webm' -c copy -map '0:v:0' -map '1:a:0' 'file:Illusion - Isadora-W5oSFKWOLaQ.temp.mkv'
[debug] ffmpeg command line: ffprobe -show_streams 'file:Illusion - Isadora-W5oSFKWOLaQ.mkv'
[ffmpeg] Destination: Illusion - Isadora-W5oSFKWOLaQ.m4a
[debug] ffmpeg command line: ffmpeg -y -i 'file:Illusion - Isadora-W5oSFKWOLaQ.mkv' -vn -acodec aac '-q:a' 0 '-bsf:a' aac_adtstoasc 'file:Illusion - Isadora-W5oSFKWOLaQ.m4a'
[atomicparsley] Adding thumbnail to "Illusion - Isadora-W5oSFKWOLaQ.m4a"
[debug] AtomicParsley command line: AtomicParsley 'Illusion - Isadora-W5oSFKWOLaQ.m4a' --artwork 'Illusion - Isadora-W5oSFKWOLaQ.jpg' -o 'Illusion - Isadora-W5oSFKWOLaQ.temp.m4a'
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module>
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 471, in main
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 461, in _real_main
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1993, in download
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 800, in extract_info
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 854, in process_ie_result
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1627, in process_video_result
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1974, in process_info
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2039, in post_process
  File "/usr/local/bin/youtube-dl/youtube_dl/postprocessor/embedthumbnail.py", line 89, in run
OSError: [Errno 2] No such file or directory```

---

### Description of your *issue*, suggested solution and other information

Am trying to embed thumbnails in an audio file downloaded from Youtube.  Can't embed in webm format file and so must convert after download.  AtomicParsley then seems to encounter an error.  It then deletes the downloaded audio and thumbnail files.

I am running macOS 10.13.4 with macOS versions of youtube-dl (20180501), FFmpeg (3.4) and AtomicParsley (0.9.0).  AtomicParsley is very old but I can't find a more recent version.  Does this mean that for macOS, users need to compile their own ?


Problem found: There is a more recent version of AtomicParsley for macOS (v0.9.6).  It's not available on GitHub which threw me but kind people have made macOS binaries available elsewhere.

This issue can be closed.
@section83 section83 closed this May 7, 2018
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
1 participant
You can’t perform that action at this time.