Giter Site home page Giter Site logo

florianlechat / youtube-downloader Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 5.0 174 KB

๐Ÿ“บ A simple web page to download videos through YouTube-DL.

Home Page: https://www.florian-dev.fr/youtube/

License: MIT License

PHP 89.92% CSS 10.08%
api-wrapper docker php stackless web-native youtube yt-dl yt-dlp

youtube-downloader's People

Contributors

dependabot[bot] avatar florianlechat avatar github-actions[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

youtube-downloader's Issues

I want to offer one more idea.

Can you show the time when converting from video to mp3?
There are those who show it as a percentage. youtube-dl supports this. Just an idea. I'm working on this too.
Screenshot

How to use it? i get this error.

[Fri Jan 05 14:48:21.499678 2024] [php7:warn] [pid 14134] [client 192.168.1.143:59186] PHP Warning: require(/var/www/html/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/index.php on line 4
[Fri Jan 05 14:48:21.508504 2024] [php7:error] [pid 14134] [client 192.168.1.143:59186] PHP Fatal error: require(): Failed opening required '/var/www/html/vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/html/index.php on line 4

Add more options for saving audio

  1. Add an option to select the output codec when downloading audio only.
  2. Add an option to select the bitrate
  3. Add an option to create the file at maximum quality per size. Maybe with presets like 8M for sending in Discord.
  • It is also a good idea to set an upper limit for the bitrate, regardless of the codec, such as 320 kbps, so that if you overestimate the bitrate, the target bitrate will simply be set to this maximum. This is necessary to prevent the bitrate from getting too high when downloading short videos.
  • I also think it's worth adding a second to the length from which the target bitrate for the size is calculated.
  • An upper limit on the input length and target output size is also required.

Quality and maximum file size settings don't work properly

I used this video: https://www.youtube.com/watch?v=5v9KeJJ3ofA
When using the Vorbis or MP3 codec, the quality or max file setting doesn't work at all - I get the same file at each setting. When using AAC, only max file size doesn't work (quality setting works). Selecting AAC instead of M4A (or vice versa) gives the same result.

I did some testing and that's what I got:
Audio only, VF:Best, AF:Vorbis, AQ:9, 100M - got 15.3M ogg audio file (500 kbit/s vbr)
Audio only, VF:Best, AF:Vorbis, AQ:0, 100M - got the same 15.3M ogg audio file

Audio only, VF:Best, AF:Vorbis, AQ:9, 8M - got the same 15.3M ogg audio file
Audio only, VF:Best, AF:Vorbis, AQ:0, 8M - got the same 15.3M ogg audio file

Audio only, VF:Best, AF:AAC, AQ:9, 100M - got 1.8M m4a audio file
Audio only, VF:Best, AF:AAC, AQ:0, 100M - got 15.4M m4a audio file (454 kbit/s constant)

Audio only, VF:Best, AF:AAC, AQ:9, 8M - got the same 1.8M m4a audio file
Audio only, VF:Best, AF:AAC, AQ:0, 8M - got the same 15.4M m4a audio file

Audio only, VF:Best, AF:MP3, AQ:9, 100M - got 9.5M mp3 audio file (280 kbit/s vbr)
Audio only, VF:Best, AF:MP3, AQ:0, 100M - got the same 9.5M mp3 audio file

Audio only, VF:Best, AF:MP3, AQ:9, 8M - got 9.5M mp3 audio file
Audio only, VF:Best, AF:MP3, AQ:0, 8M - got the same 9.5M mp3 audio file

Video+audio, VF:3GP, AF:M4A, AQ:9, 100M - got 1.8M 3gp file with mp42 video and m4a audio (24 kbit/s vbr)
Video+audio, VF:3GP, AF:M4A, AQ:0, 100M - got the same 1.8M 3gp file

Video+audio, VF:3GP, AF:Opus, AQ:0, 100M - got the same 1.8M 3gp file

Video+audio, VF:MKV, AF:M4A, AQ:0, 100M - got error saying: '[youtube] 5v9KeJJ3ofA: Requested format is not available. Use --list-formats for a list of available formats'

  • Same with FLV, WebM, OGG, AVI video. Also same with WebM/MKV+FLAC/Opus/Whatever. But that's strange, WebM+Opus was supposed to work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.