Skip to content

Video and audio combined download#545

Open
ac615223s5 wants to merge 4 commits into
redlib-org:mainfrom
ac615223s5:video-and-audio-combined-download
Open

Video and audio combined download#545
ac615223s5 wants to merge 4 commits into
redlib-org:mainfrom
ac615223s5:video-and-audio-combined-download

Conversation

@ac615223s5
Copy link
Copy Markdown
Contributor

fix #105
requires #506
uses the library https://github.com/ffmpegwasm/ffmpeg.wasm
if there is another preferred way to include this library (such as npm), feel free to fork my fork.

mtsz-pl and others added 4 commits November 19, 2025 22:14
Reddit has transitioned from DASH to CMAF video format. This change adds
support for both formats to maintain compatibility.

Changes:
- Update REGEX_URL_VIDEOS to match both DASH and CMAF formats
- Add format capture group to preserve DASH/CMAF in URL path
- Add separate proxy endpoints for /vid/:id/dash/:size and /vid/:id/cmaf/:size
- Update format_url to handle 3-segment video URLs (id/format/size)
- Update tests to reflect new URL format with format segment

Video URLs now follow pattern: /vid/{id}/{format}/{size}.mp4
Example: /vid/abc123/cmaf/720.mp4
fix(video): add support for CMAF video format alongside DASH
@rslay
Copy link
Copy Markdown

rslay commented May 17, 2026

Wow, I just thought of this idea and it looks like you already came up with the solid solution of using ffmpeg directly in the browser to combine audio and video!

Sadly it doesn't work for me, also, you can't realistically expect the maintainers to approve a PR failing all tests and using a random opaque WASM binary tbh

@ac615223s5
Copy link
Copy Markdown
Contributor Author

ac615223s5 commented May 17, 2026

The upstream already fails the tests. I can't help you with your instance given the limited information, but it usually takes a few seconds to process for me. I am running https://github.com/ac615223s5/redlib/tree/main. The maintainers should source the library files themselves or use something like npm or jsdelivr. It's not really my decision

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

Successfully merging this pull request may close these issues.

💡 Feature request: Ability to download HLS videos with sound

3 participants