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

Python 3.6 How to specify the external downloader location, please help. #15337

Closed
G-Beni opened this issue Jan 18, 2018 · 4 comments
Closed

Python 3.6 How to specify the external downloader location, please help. #15337

G-Beni opened this issue Jan 18, 2018 · 4 comments

Comments

@G-Beni
Copy link

@G-Beni G-Beni commented Jan 18, 2018

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.01.18. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • [x ] I've verified and I assure that I'm running youtube-dl 2018.01.18
    (running as python module)

Before submitting an issue make sure you have:

  • [x ] At least skimmed through the README, most notably the FAQ and BUGS sections
  • [x ] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • [x ] Question
  • Other



im using python 3.6 with the youtube_dl module on windows 10

Im trying to download Youtube videos with aria2c (because its very slow otherwise)(any other external downloader that can do this is fine for me) as mp3 only, audio only , best quality possible
These are my option settings:
"""
options = {

                'format':'bestaudio/best',
                'extractaudio':True,
                'audioformat':'mp3',
                'outtmpl': Scraped_Music_Path + r'\%(title)s.%(ext)s',  
                'noplaylist':True,
                'nocheckcertificate':True,
                'postprocessors': [{
                    'key': 'FFmpegExtractAudio',
                    'preferredcodec': 'mp3',
                    'preferredquality': '192',
                }],
                'ffmpeg_location': ffmpeg_path, #direct path to ffmpeg.exe
                'ffprobe_location': ffprobe_path, #direct path to ffprobe.exe
            }

"""
this works but is very slow due to youtube throtteling after 30 % download, taking 60 sec for 3MB...
The path to aria2c is also added in the system Path variables.

but i cant figure out how to use the aria2c.exe in this programm

i tried adding this:
'external_downloader': 'aria2c',
'external_downloader_args': 'j 8 -s 8 -x 8 -k 5M', #not sure about these parameters

or this:
'external_downloader': aria2c_path, #direct path to aria2c.exe
'external_downloader_args': 'j 8 -s 8 -x 8 -k 5M', #not sure about these parameters

it also tried printing the error but it just fails without an error.
also im not realy sure what args to specify.

python console output.
"""
[youtube] jxipIRg-f2Y: Downloading webpage
[youtube] jxipIRg-f2Y: Downloading video info webpage
[youtube] jxipIRg-f2Y: Extracting video information
[download] Destination: C:\Users\Me\my\path\Test.webm
"""
and then nothing just breaks

needless to say after searching trough hundreds of google results, and the documentation and the source code im pretty frustrated.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 18, 2018

'external_downloader': 'aria2c' works just fine.

@dstftw dstftw closed this Jan 18, 2018
@G-Beni
Copy link
Author

@G-Beni G-Beni commented Jan 18, 2018

@dstftw does it also work to write this : 'external_downloader': aria2c_path, #direct path to aria2c.exe ?
and if the aria2c isnt the problem what else could fail in this code ? do i even need ffmpeg/ffprobe if i have aria2c ?

@G-Beni
Copy link
Author

@G-Beni G-Beni commented Jan 18, 2018

@dstftw i just retried in a new environment and it game me the "AssertionError"
Edit: 'external_downloader': aria2c_path, #direct path to aria2c.exe Works
the error in my python code was in the 'external_downloader_args': 'j 8 -s 8 -x 8 -k 5M', after deleting that it worked

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 18, 2018

Path will not work. If you want any help open a new issue providing complete reproducible example source code with complete verbose log of the error.

@ytdl-org ytdl-org locked and limited conversation to collaborators Jan 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.