惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
Apple Machine Learning Research
Apple Machine Learning Research
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 三生石上(FineUI控件)
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
WordPress大学
WordPress大学
Hugging Face - Blog
Hugging Face - Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
M
MIT News - Artificial intelligence
腾讯CDC
B
Blog RSS Feed
H
Help Net Security
J
Java Code Geeks
有赞技术团队
有赞技术团队
Y
Y Combinator Blog
博客园_首页
Last Week in AI
Last Week in AI
博客园 - 【当耐特】
博客园 - Franky
B
Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 叶小钗
Martin Fowler
Martin Fowler

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Why Your Reddit Video Downloads Have No Sound (And How to...
Hitesh Meghw · 2026-05-03 · via DEV Community

If you've ever tried to download a video from Reddit, you've probably ended up with a silent MP4 file. No audio. No error. Just a video that should have sound but doesn't.

This isn't a bug in your downloader. It's how Reddit stores videos.

The Problem

Most video platforms (YouTube, Twitter, etc.) serve videos as a single muxed file — video and audio combined in one stream. Easy to download, plays anywhere.

Reddit doesn't do that. When you upload a video to Reddit, their backend splits it into two separate files stored on v.redd.it:

DASH_720.mp4    ← video only, no audio track
DASH_audio.mp4  ← audio only

Enter fullscreen mode Exit fullscreen mode

When you watch on Reddit, the player loads both files and syncs them client-side. When you download, most tools grab only the video file.

Why It Happens

Reddit uses MPEG-DASH (Dynamic Adaptive Streaming over HTTP). DASH is designed for adaptive streaming where the player picks the best video quality and audio quality independently based on bandwidth.

If you visit a Reddit video URL directly:

https://v.redd.it/abc123/DASH_720.mp4

Enter fullscreen mode Exit fullscreen mode

You'll get a perfectly playable video file — that just happens to have no audio track. The audio lives at:

https://v.redd.it/abc123/DASH_audio.mp4

Enter fullscreen mode Exit fullscreen mode

A naive downloader (curl, wget, basic browser save) only grabs the URL it sees. So you get a silent video.

The Fix

You need to:

  1. Download both the video and audio streams
  2. Merge them into a single MP4 with FFmpeg

Here's the minimal FFmpeg command that does it:

ffmpeg -i DASH_720.mp4 -i DASH_audio.mp4 \
  -c:v copy -c:a aac \
  output.mp4

Enter fullscreen mode Exit fullscreen mode

The flags matter:

  • -c:v copy → don't re-encode video (preserves quality, instant)
  • -c:a aac → encode audio as AAC (Reddit's audio is sometimes raw, AAC ensures compatibility)
  • Two -i flags → input files; FFmpeg matches them by index

If you skip -c:v copy and let FFmpeg re-encode, you'll lose quality and the operation takes 10x longer.

Doing It Programmatically (Python)

If you're building a tool, yt-dlp handles this automatically when configured correctly:

import yt_dlp

ydl_opts = {
    'format': 'bestvideo+bestaudio/best',
    'merge_output_format': 'mp4',
    'postprocessors': [{
        'key': 'FFmpegVideoConvertor',
        'preferedformat': 'mp4',
    }],
}

with yt_dlp.YoutubeDL(ydl_opts) as ydl:
    ydl.download(['https://reddit.com/r/funny/comments/abc123/title/'])

Enter fullscreen mode Exit fullscreen mode

The key is bestvideo+bestaudio — the + syntax tells yt-dlp to download both streams and merge them. Without the +, you get whatever single stream Reddit returns first (usually video-only).

merge_output_format: 'mp4' ensures the final file is a standard MP4 (FFmpeg might default to MKV otherwise).

Edge Cases

A few things that tripped me up:

1. Some Reddit videos genuinely have no audio. GIF posts and silent screen recordings have no DASH_audio.mp4 file at all. Handle this gracefully:

ydl_opts = {
    'format': 'bestvideo+bestaudio/best',  # falls back to "best" if audio missing
    ...
}

Enter fullscreen mode Exit fullscreen mode

2. Cross-posted videos use different paths. A video cross-posted from r/A to r/B has the original v.redd.it URL. Don't try to construct URLs from the post path — extract the actual v.redd.it URL from the post metadata.

3. NSFW posts require an extra header. Reddit serves NSFW posts to logged-in users, but the video CDN itself doesn't care. You can fetch the video files directly without auth as long as you have the v.redd.it URL.

Why Most Tools Don't Bother

Implementing this correctly requires:

  • Detecting that you're on Reddit (URL parsing)
  • Extracting the post metadata to find both stream URLs
  • Downloading both files (extra bandwidth)
  • Running FFmpeg to merge (extra CPU)
  • Handling all the edge cases above

A lot of "free Reddit downloaders" skip the merging step because it requires server-side FFmpeg processing or a Wasm FFmpeg in the browser. Both add complexity.

If you want a working version that handles all this, AllClip's Reddit downloader does the merging server-side — paste any Reddit URL and you get an MP4 with audio.