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.
Thumbnail is not added to the mp3 #13046
Comments
|
Duplicate of #7238. |
|
Can you please give some help instead of just writing "Duplicate"? |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.05.09. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue
I am using the Youtube_DL module for python embedding so i wouldn't be able to get the CLI output.
Here is my code:
ydl_opts = {'writethumbnail': true,
'outtmpl': '/home/siyavash/'+fileNAME+'.%(ext)s',
'format': 'bestaudio/best',
'postprocessors': [
{'key': 'FFmpegExtractAudio',
'preferredcodec': 'mp3',
'preferredquality': '192'},
{'key': 'EmbedThumbnail',},
Here is Console Output:
WARNING: Parameter outtmpl is bytes, but should be a unicode string. Put from future import unicode_literals at the top of your code file or consider s
witching to Python 3.x.
[youtube] nMB2uCTTvJ0: Downloading webpage
[youtube] nMB2uCTTvJ0: Downloading video info webpage
[youtube] nMB2uCTTvJ0: Extracting video information
WARNING: "id" field is not a string - forcing string conversion
[youtube] nMB2uCTTvJ0: Downloading thumbnail ...
[youtube] nMB2uCTTvJ0: Writing thumbnail to: /home/siyavash/xx_341088146.jpg
[download] Destination: /home/siyavash/xx_341088146.webm
[download] 100% of 2.73MiB in 00:00
[ffmpeg] Destination: /home/siyavash/xx_341088146.mp3
WARNING: Your copy of avconv is outdated, update avconv to version 10-0 or newer if you encounter any errors.
Deleting original file /home/siyavash/xx_341088146.webm (pass -k to keep)
[ffmpeg] Adding thumbnail to "/home/siyavash/xx_341088146.mp3"
WARNING: Your copy of avconv is outdated, update avconv to version 10-0 or newer if you encounter any errors.
ERROR: file:/home/siyavash/xx_341088146.jpg: No such file or directory
ERROR:telegram.ext.dispatcher:An uncaught error was raised while processing the update
Traceback (most recent call last):
File "/home/siyavash/.local/lib/python2.7/site-packages/telegram/ext/dispatcher.py", line 270, in process_update
handler.handle_update(update, self)
File "/home/siyavash/.local/lib/python2.7/site-packages/telegram/ext/messagehandler.py", line 123, in handle_update
return self.callback(dispatcher.bot, update, **optional_args)
File "/home/siyavash/Final3.py", line 367, in echo
path = audioDownloader(chat_id, correctURL)
File "/home/siyavash/Final3.py", line 268, in audioDownloader
ydl.download([correctURL])
File "/home/siyavash/.local/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1896, in download
url, force_generic_extractor=self.params.get('force_generic_extractor', False))
File "/home/siyavash/.local/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 771, in extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/home/siyavash/.local/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 825, in process_ie_result
return self.process_video_result(ie_result, download=download)
File "/home/siyavash/.local/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1539, in process_video_result
self.process_info(new_info)
File "/home/siyavash/.local/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1877, in process_info
self.post_process(filename, info_dict)
File "/home/siyavash/.local/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1944, in post_process
self.report_error(e.msg)
File "/home/siyavash/.local/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 589, in report_error
self.trouble(error_message, tb)
File "/home/siyavash/.local/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 559, in trouble
raise DownloadError(message, exc_info)
DownloadError: ERROR: file:/home/siyavash/xx_341088146.jpg: No such file or directory
Description of your issue, suggested solution and other information
This issue happens whenever I try to download the mp3 and embed the thumbnail. I can see the thumbnail in this directory /home/siyavash/xx_341088146.jpg however it still gives me an error.
Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.