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

Video quality is low. #122

Open
MdTalhaZubayer opened this issue Apr 13, 2020 · 6 comments
Open

Video quality is low. #122

MdTalhaZubayer opened this issue Apr 13, 2020 · 6 comments
Assignees

Comments

@MdTalhaZubayer
Copy link

MdTalhaZubayer commented Apr 13, 2020

I think you should use the video quality as 137/136/135 and merge the audio 140 using "+". like this youtube-dl -f 137+140 url . Please try it hope it will work. or use youtube-dl -F url to get list of all available video formats. I have tried it with npm run build by changing the downloadYoutube.js code

[error]: ERROR: Command failed with exit code 1: C:\udacimak-master\node_modules\youtube-dl\bin\youtube-dl.exe --dump-json -f best 137+140 --encoding utf8 http://www.youtube.com/watch?v=hVwUijsLKzw

don't know how to remove this -f "best", have a try and help me to download the videos at 1080p or 720p.

Thanks!

@udacimak udacimak self-assigned this Apr 13, 2020
@udacimak
Copy link
Owner

I tried your approach directly with youtube-dl:

(venv) λ youtube-dl g8b5kgxzUfQ -f 137+140
[youtube] g8b5kgxzUfQ: Downloading webpage
WARNING: You have requested multiple formats but ffmpeg or avconv are not installed. The formats won't be merged.
[download] Resuming download at byte 10077681
[download] Destination: CloudEng Course1 Lesson3 Introduction-g8b5kgxzUfQ.f137.mp4
[download] 100% of 10.48MiB in 00:00
[download] Destination: CloudEng Course1 Lesson3 Introduction-g8b5kgxzUfQ.f140.m4a
[download] 100% of 783.45KiB in 00:01

You can see the WARNING says that in order for youtube-dl to merge video and audio files together, ffmpeg or avconv needs to be installed on the local machine.

I would do it if no extra stuff that is required to be installed, but looks like there are though.

@MdTalhaZubayer
Copy link
Author

MdTalhaZubayer commented Apr 13, 2020 via email

@MdTalhaZubayer
Copy link
Author

MdTalhaZubayer commented Apr 13, 2020

1
2
3

check them!

@MdTalhaZubayer
Copy link
Author

I have an idea but in this method, we have to download audio and video separately and merge them when the download is finished.like this -f 137 in the first round and -f 140 in the second round and safe all the path of the mp4 videos and mp4a audio in a json file and then run the ffmeg to merge the mp4 and mp4a .... with this command ffmpeg -i vidoefilepath.mp4 -i audiofilepath.m4a -c copy videoname.mp4
6
7
8

@abdo2048
Copy link

abdo2048 commented Jul 3, 2020

Is there a way to choose video quality while downloading a nanodegree? I don't want to download them in 720p

@Ahmed-Soudi
Copy link

I tried your approach directly with youtube-dl:

(venv) λ youtube-dl g8b5kgxzUfQ -f 137+140
[youtube] g8b5kgxzUfQ: Downloading webpage
WARNING: You have requested multiple formats but ffmpeg or avconv are not installed. The formats won't be merged.
[download] Resuming download at byte 10077681
[download] Destination: CloudEng Course1 Lesson3 Introduction-g8b5kgxzUfQ.f137.mp4
[download] 100% of 10.48MiB in 00:00
[download] Destination: CloudEng Course1 Lesson3 Introduction-g8b5kgxzUfQ.f140.m4a
[download] 100% of 783.45KiB in 00:01

You can see the WARNING says that in order for youtube-dl to merge video and audio files together, ffmpeg or avconv needs to be installed on the local machine.

I would do it if no extra stuff that is required to be installed, but looks like there are though.

do a version that supports that, please. I'm okay with the extra requirements.

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

No branches or pull requests

4 participants