Giter Site home page Giter Site logo

Comments (11)

xxcodianxx avatar xxcodianxx commented on May 29, 2024 2

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.

DavidBerdik avatar DavidBerdik commented on May 29, 2024 1

@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.

cryptopsy30 avatar cryptopsy30 commented on May 29, 2024 1

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.

DavidBerdik avatar DavidBerdik commented on May 29, 2024 1

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.

xxcodianxx avatar xxcodianxx commented on May 29, 2024 1

It may be because I'm properly setting the content-disposition header now.

This is probably somehow related to d7f76fd

from youtube-dl-web.

xxcodianxx avatar xxcodianxx commented on May 29, 2024

Going to investigate this, thanks for the issue.

from youtube-dl-web.

xxcodianxx avatar xxcodianxx commented on May 29, 2024

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.

DavidBerdik avatar DavidBerdik commented on May 29, 2024

@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.

xxcodianxx avatar xxcodianxx commented on May 29, 2024

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.

DavidBerdik avatar DavidBerdik commented on May 29, 2024

@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.

DavidBerdik avatar DavidBerdik commented on May 29, 2024

@xxcodianxx Got it. Thank you!

from youtube-dl-web.

Related Issues (20)

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.