Why Reddit Videos Download Without Sound (and How to Merge the Audio Back with ffmpeg)
If you have ever right-clicked a Reddit video and saved it, you probably got a file with no sound. That is not a bug in your browser. Reddit delivers video and audio as separate streams , and the player only joins them while you watch. This post explains how that works and shows how to rebuild a normal MP4 with sound using ffmpeg , for videos you are allowed to keep (your own uploads, or clips…
Videos uploaded to Reddit exist as separate video and audio files, rather than a single MP4 with both tracks. This can lead to issues where the audio is missing when the video is downloaded. Reddit delivers videos using adaptive streaming technologies like DASH and HLS, which split the video into multiple quality levels and separate audio streams.
To download a Reddit video with sound, you need to locate the stream URLs in the post's JSON data. This can be accessed by appending .json to the Reddit post URL. The JSON response contains several important fields:
- fallback_url: The highest quality video-only MP4 file
- dash_url: The DASH manifest containing all video and audio representations
- hls_url: The HLS playlist with audio and video streams
Key points to note:
1. If has_audio is false in the JSON, the video has no audio track to begin with.
2. If is_gif is true, the video is a GIF-style image post which inherently contains no audio.
3. Some posts simply link to external video hosts like YouTube or Imgur, meaning the video data is not within Reddit itself and requires a different approach.
Once you have identified the correct stream URLs, ffmpeg makes merging the audio and video into a single MP4 straightforward. The simplest method is:
ffmpeg -i "https://v.redd.it/ID/HLSPlaylist.m3u8" -c copy merged.mp4
This reads the HLS playlist directly, selects the best available video and audio streams automatically, and merges them without re-encoding.
If the video and audio files are already downloaded separately, you can merge them explicitly:
ffmpeg -i video.mp4 -i audio.mp4 -map 0:v:0 -map 1:a:0 -c copy merged.mp4
The -c copy flag copies the streams as-is to preserve quality.
You can verify the merged file contains both tracks using ffprobe:
ffprobe -v error -show_entries stream=codec_type,codec_name -of csv=p=0 merged.mp4
This should show h264 for video and aac for audio.
Common issues to watch for:
- If the audio still doesn't play after merging, double-check the JSON data to confirm has_audio or is_gif are set correctly.
- Invalid or missing audio files may have changed names over time, so rely on the manifest or HLS playlist rather than assumption.
- Some Reddit posts only link to external video hosts, in which case you need to download the video directly from the source.
- Private or quarantined posts cannot be downloaded without proper account access.
If you only need this functionality occasionally, there are web-based tools available that perform the same ffmpeg process on the server side. The PullClip tool is one example, allowing you to input a Reddit link and download a merged MP4 or MP3 file.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to