Comments (11)
bestaudio+bestvideo
also seems to work with this change, make sure to urlescape +
properly as %2B
Committed some extra stuff, but 75e0b3d should fix it. Let me know how it goes.
from youtube-dl-web.
@xxcodianxx I am encountering the same issue on my stripped-down fork of this project. If time permits and I find a solution before you get to it, I will let you know.
from youtube-dl-web.
Thanks @xxcodianxx the patch fixed it for me. The video I was testing with was D5vqvPaMCLg.
It is now downloading the file in .webm. Would it be possible to add the option to download in more format such as .mp3 when selecting audio only?
Thank you for your effort. I love this project.
from youtube-dl-web.
bestaudio+bestvideo
also seems to work with this change, make sure to urlescape+
properly as%2B
Committed some extra stuff, but 75e0b3d should fix it. Let me know how it goes.
@xxcodianxx Ah yes! That was it! I can't believe I forgot about that. I should know better. Anyway, it seems to be working for me as well.
from youtube-dl-web.
It may be because I'm properly setting the content-disposition header now.
This is probably somehow related to d7f76fd
from youtube-dl-web.
Going to investigate this, thanks for the issue.
from youtube-dl-web.
I can't seem to reproduce this bug locally on the provided Docker containers, everything downloads fine, but I can obviously see this is a real issue...
@cryptopsy30 Can you provide a link to an example video that doesn't download properly? The problem may be localized to only some videos/edge cases.
@DavidBerdik Thanks for your help!
from youtube-dl-web.
@xxcodianxx You're welcome! The issue seems to be caused by yt-dlp version 2022.08.19. I've been able to get the dl
endpoint working for best
, bestaudio
, and bestvideo
, but it's still broken for bestvideo+bestaudio
.
The changes I made to get it working are in my repo here. I should note that the ffmpeg
flag change was not something I tested. I did it before realizing that it was not yt-dlp
.
from youtube-dl-web.
Glad that it works! As for reformatting into mp3, well it's complicated.
Right now I'm returning the exact thing youtube sends over, in the container that requires least transcoding.
If you hover over the different audio options, you'll notice some are mp4a. These download as mp4 files, but I may be able to make them into mp3's without sacrificing speed.
Marking this issue as closed, thanks everyone!
from youtube-dl-web.
@xxcodianxx Even though it's working for me, I do have a question: I noticed that after the changes you made, hitting the dl
endpoint with a browser no longer results in in-browser playback. Instead, the stream starts downloading. What is the reason for this change?
from youtube-dl-web.
@xxcodianxx Got it. Thank you!
from youtube-dl-web.
Related Issues (20)
- Docker issue HOT 3
- Support for Live Videos HOT 4
- Hey is there a way to install this on docker windows? HOT 3
- build error while the container tries to install brotli (required by yt-dlp) HOT 1
- How can I change the result format from webm to mp4 or mp3? HOT 3
- Endpoint used for downloading fails for video with ID awjBLm41xJI when using bestvideo+bestaudio. HOT 3
- Failure in downloading particular video HOT 1
- Add to Reddit list of GUIs HOT 1
- Slow download speeds when using pick your audio + video
- irst_chunk = await stream.__anext__() # peek first chunk HOT 1
- Self hosting - building docker error HOT 1
- Docker images ? HOT 1
- How to host web without nginx docker container? HOT 1
- Save theme state
- [Feature Request] Download audio only
- Can't download youtube short
- Set base url HOT 2
- I should probably rewrite this HOT 1
- Sponsorblock integration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from youtube-dl-web.