Skip to content

Convert M4S to MP4

Convert DASH M4S segments into a compatible MP4 file with FFmpeg or desktop tools.

Make MP4 files online

We can't read M4S files yet, so this conversion isn't available. If you can export your work to one of these formats - or others - we'll turn it into MP4:

Want to convert M4S to MP4?

Let us know. We pick the conversions to add next by how many people ask for them.

How to convert m4s to mp4 file

  • Video
  • Rating: 4.5/5

Streaming download tools often save separate .m4s segments, while phones, video editors, and media players usually expect one playable .mp4 file. The conversion therefore requires the original DASH manifest and initialization data when the segments are not self-contained.

What the M4S format is

In video, M4S usually identifies a media segment from an MPEG-DASH stream. It is normally a fragmented ISO Base Media File Format (fMP4) fragment containing part of a video or audio track, not a complete standalone movie. Streaming servers and download or offline-playback tools can save these fragments with names such as 1.m4s, 2.m4s, and 3.m4s.

A typical DASH download contains an .mpd manifest, an initialization segment such as init.mp4, and separate numbered video and audio segments. The manifest specifies their order, timing, codecs, resolution, and relationship. A single numbered segment often lacks the metadata required for independent playback. Some applications use .m4s for a complete fragmented MP4, so inspect the file before joining it.

What the MP4 format is

MP4 is a multimedia container that can hold video, audio, subtitles, timing information, and metadata in one file. H.264/AVC video with AAC audio has broad support across phones, browsers, televisions, editors, and sharing platforms, although MP4 itself does not require those particular codecs.

An MP4 file is easier to copy, edit, and archive than a DASH directory containing a manifest and many fragments. Renaming .m4s to .mp4 does not perform a conversion and cannot supply missing initialization data.

How to convert the files

Use the manifest when it is available. Install FFmpeg, keep the MPD file, initialization files, and segments in their original relative paths, and run:

ffmpeg -i stream.mpd -map 0:v:0 -map 0:a:0 -c copy output.mp4

For a local DASH set, this reads the representations described by the manifest and remuxes the selected video and audio without re-encoding. Run ffmpeg -i stream.mpd first to inspect available streams; use different indexes such as -map 0:v:1 -map 0:a:0 to select another quality. If audio or video is absent, remove its map option.

FFmpeg can also read a remote MPD when its URLs are accessible, but it cannot recover missing segments. Expired URLs, authentication requirements, and DRM encryption can prevent the command from working.

Join a complete local segment set manually. Use the order specified by the MPD, not merely alphabetical filename order. For one video representation with an initialization segment, concatenate the files as binary data:

cat init.mp4 1.m4s 2.m4s 3.m4s > video-fragmented.mp4

In Windows Command Prompt, use:

copy /b init.mp4+1.m4s+2.m4s+3.m4s video-fragmented.mp4

Then remux the resulting fragmented file:

ffmpeg -i video-fragmented.mp4 -c copy video.mp4

Keep audio segments separate. Concatenate the audio initialization segment and audio fragments into a second file, then combine both tracks:

ffmpeg -i video-fragmented.mp4 -i audio-fragmented.mp4 -map 0:v:0 -map 1:a:0 -c copy output.mp4

Do not concatenate video and audio representations into one binary sequence. If an individual M4S file is already a complete fragmented MP4, try:

ffmpeg -i input.m4s -c copy output.mp4

For a graphical workflow, Shutter Encoder uses FFmpeg; choose Rewrap if it recognizes the file, or Re-encode if the source cannot be remuxed. When the source is an accessible streaming URL rather than loose files, yt-dlp can download the available video and audio and ask FFmpeg to merge them:

yt-dlp --merge-output-format mp4 URL

Online services such as CloudConvert or Convertio are suitable only for a complete, non-DRM M4S file that the service explicitly accepts. They generally cannot reconstruct a DASH collection that depends on an MPD and multiple local fragments; uploading also transfers the media to a third party.

Quality and compatibility limits

Using -c copy preserves the source video and audio quality and is fast, but it does not change the codec, resolution, bitrate, frame rate, or audio format. A successful remux can still produce a file that an older device or editor cannot decode.

For broader compatibility, re-encode the completed file:

ffmpeg -i input.mp4 -c:v libx264 -crf 20 -preset medium -c:a aac -b:a 192k output.mp4

Re-encoding takes longer and causes generation loss. Missing fragments, missing initialization data, incorrect segment order, incompatible codecs, and mismatched audio and video representations cannot be fixed by changing the extension. Encrypted DASH content requires authorized playback or export with the required decryption keys; ordinary converters cannot convert protected segments.

Information about file extensions and file types is provided by File-Extensions.org

Convert to mp4 from
other formats

Share on social media:

Already downloaded

This file has already been downloaded. For your privacy it was deleted from our server right after the download, so it cannot be downloaded again. To get it once more, convert the file again.