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

Some questions about embedded youtube-dl #13463

Closed
Coco1905 opened this issue Jun 22, 2017 · 2 comments
Closed

Some questions about embedded youtube-dl #13463

Coco1905 opened this issue Jun 22, 2017 · 2 comments

Comments

@Coco1905
Copy link

@Coco1905 Coco1905 commented Jun 22, 2017

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 that [x])
  • Use Preview tab to see how your issue will actually look like

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

  • I've verified and I assure that I'm running youtube-dl 2017.06.18

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • 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)
  • Question
  • Other

#############################################################################

Hello everybody,

Since some days, I am working on a project for my internship which is about extracting audio from a big list (.csv) of Youtube videos. We have chosen to use YouTube-dl library in python, which seems to be powerful .

I have found many explanations about Youtube-dl in command line, but I am interested in a program using this library.

  1. Does a documentation about equivalence between command line and embedded youtube-dl exist ?

  2. We would like to obtain a bunch of audio files with the same features for all of them. I achieved to extract only the audio and to chose the extension (.wav). However, I would like to have all my files with the same sample rate (44.1kHz). I have seen that, in command line, I can use '-f bestaudio[asr=44100]'. But how can I do that in a python program ? Is it possible ?

  3. I didn't see anything about mono or stereo file. I would like to extract my audio files in mono. Do I have to use another tool ? Or is a feature like that existing or will exist ?

Thank you in advance for your help !
Coralie

@Coco1905
Copy link
Author

@Coco1905 Coco1905 commented Jun 22, 2017

  1. I achieved to do something. Here is the line to put in the options : 'format': 'bestaudio[asr=44100]/best'
    But, if the asr wanted is not available, there is no error : it is just not taken into account.
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 22, 2017

  1. https://github.com/rg3/youtube-dl#embedding-youtube-dl
  2. See 1.
  3. You'll need to do conversion yourself.
@dstftw dstftw closed this Jun 22, 2017
@ytdl-org ytdl-org deleted a comment Jan 7, 2019
@ytdl-org ytdl-org locked and limited conversation to collaborators Jan 7, 2019
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.