Convert WebM to MP4 Without Losing Subtitles
Converting a WebM file to MP4 is usually straightforward, but subtitle tracks are where simple workflows can go wrong. A renamed file may appear to work while captions disappear, shift out of sync, lose their language label, or display as unreadable characters. The safest approach is to identify how the subtitles are stored before choosing a converter.
To convert WebM to MP4 with subtitles preserved, decide whether you want selectable text tracks or subtitles burned into the picture. Check whether the captions are already embedded in the WebM, supplied as a separate SRT, VTT, or ASS file, or visible in the video frames. Your starting material will usually fall into one of these groups:
| Source setup | Best route | Outcome | Main caution |
|---|---|---|---|
| Subtitles burned into the video | Re-encode the video | Captions remain visible | They cannot be edited or removed cleanly |
| Subtitles embedded in the WebM | Map the subtitle stream during conversion | Selectable MP4 subtitle track | Complex styling may be simplified |
| Separate SRT or VTT file | Import the subtitle file | Selectable or burned-in captions | Timing must match the video |
| Separate ASS file | Burn in or convert to SRT | Styled or portable captions | MP4 may not retain every ASS effect |
Know What Must Survive the Conversion
WebM uses the Matroska container and may contain video, audio, and subtitle streams together. A visible caption is not always a real subtitle track: it might already be part of the picture, which means no conversion setting will “preserve” it because there is nothing separate to preserve. Renaming the file from .webm to .mp4 changes nothing about its internal streams and can produce a file that some players refuse to open.
Use a media-information utility such as FFprobe, MediaInfo, or VLC’s codec panel to check the source. FFprobe can display every stream with ffprobe -hide_banner "input.webm". Look for an audio stream and one or more subtitle streams, and note each subtitle’s language, format, and default status. If no subtitle stream appears, the captions are probably burned in or supplied separately.
Preservation should include the text, cue timing, language, and any styling that matters to the viewer. Selectable text tracks give users access to captions, translations, and audio descriptions, while burned-in subtitles remain visible on every screen. Decide which result you need before exporting, and avoid editing the subtitle wording unless the project specifically calls for Australian English corrections.
Choose the Right Route for Your Files
HandBrake is a practical choice for most Windows and macOS users who want a guided workflow. FFmpeg provides finer control over streams, metadata, frame rate, and subtitle handling. VLC is useful for inspection or quick conversions, while Shotcut can suit people already editing footage in a visual timeline. Mobile applications can be convenient, but some recompress the video or place subtitle tracks in locations that other players may not detect.
Australian workflows often combine a Windows or Mac computer with Android phones or iPhones. A creator working between studios in Sydney and Melbourne may offload camera footage to a laptop by USB-C or an SD card, then send short clips through a cloud folder for review rather than storing large project files on a phone. Keeping the original WebM, separate captions, and finished MP4 together makes that hand-off less confusing.
For a travel-food video, location research such as this São Paulo vegan guide can inform the edit, while the media files still follow the same subtitle-preservation steps. Captions should be prepared alongside the footage rather than added after the final export, when timing corrections become more involved.
Convert with FFmpeg and Keep Subtitle Tracks
FFmpeg provides the most control. Download it from the official project or a reputable package repository, then inspect the source streams before running an export. For a WebM accompanied by a separate captions.srt, treat the video and audio as the first input and the subtitles as the second:
ffmpeg -i "input.webm" -i "captions.srt" -map 0:v:0 -map 0:a? -map 1:0 -c:v libx264 -crf 20 -preset medium -pix_fmt yuv420p -c:a aac -b:a 160k -c:s mov_text -metadata:s:s:0 language=eng -metadata:s:s:0 title="English" "output.mp4"
The optional audio mapping preserves sound when it exists. H.264 video and AAC audio create a broadly compatible MP4, while mov_text converts the SRT cues into an MP4 timed-text track. The metadata flags label the track as English, which is helpful when a player offers several caption choices. Paths containing spaces are safe because the examples place filenames in quotation marks.
If the WebM already contains subtitle tracks, map them directly during the same operation:
ffmpeg -i "input.webm" -map 0:v:0 -map 0:a? -map 0:s? -c:v libx264 -crf 20 -preset medium -pix_fmt yuv420p -c:a aac -b:a 160k -c:s mov_text "output.mp4"
This command includes every subtitle stream found in the source. To retain only one, replace 0:s? with a specific index such as 0:s:0. Additional external subtitle files can be added with further input and mapping options. Check the output with FFprobe to confirm that the expected subtitle and audio streams are present.
ASS files require an extra decision. Converting one to SRT preserves its words and timing but can lose advanced positioning, animation, and font effects. Use ffmpeg -i "captions.ass" "captions.srt" for a portable text track, or burn the ASS into the picture when its visual styling is essential. Test a styled export because filters and filter ordering can affect subtitle placement.
Use HandBrake for a Guided Desktop Workflow
Open HandBrake, import the WebM, and select an output preset that closely matches the source resolution and frame rate. In the Subtitles tab, add the SRT or VTT file if the captions are external. Choose “Embed” for a selectable text track, or “Burn In” when captions must appear in exported footage. Under the Summary tab, confirm H.264 video, AAC audio, and the original dimensions before starting.
If an embedded WebM subtitle track does not appear in HandBrake, extract it first and import the resulting file as an external track:
ffmpeg -i "input.webm" -map 0:s:0 "extracted-subtitles.srt"
This approach also gives you a copy of the original cues for checking. It is useful when the subtitle language needs to be renamed or when a particular player displays the MP4 track incorrectly. Keep the extracted SRT beside the original WebM so future exports can repeat the same process.
VLC can also reveal and extract subtitle streams, although its conversion interface is less precise for complex track arrangements. Shotcut is another useful option for timeline editing and subtitle attachment. Browser-based converters should be approached carefully because uploading a video can disclose unfinished or private material. For work on an Android phone or tablet, local conversion is preferable when a reliable desktop is available, since app restrictions and automatic compression can alter the result.
Test Quality, Timing and Playback
A smaller MP4 is not automatically a better conversion. The medium preset and CRF value of 20 in the examples provide a practical balance for sharing and online playback. Keep the source resolution and frame rate unless the destination requires otherwise. The yuv420p pixel format improves compatibility with phones, smart TVs, and common web players, while AAC audio at 160 kbps is suitable for speech and general video.
Play the completed file from beginning to end, not merely the opening scene. Check the first, middle, and final cues for drift, then compare a dialogue-heavy passage with an action sequence. Confirm that the audio remains synchronised, every subtitle appears when intended, and characters render correctly. Test the file in VLC as well as the player used by the intended audience, since MP4 subtitle support varies between applications.
Australian material may contain Australian English, regional spellings, abbreviations, and SDH cues that describe sounds as well as dialogue. Those details should remain unchanged unless an editor has been commissioned to standardise them. For material prepared for Australian television, 25 fps is a common delivery target, although online projects may use 24, 25, 30, or another frame rate. Match the project specification instead of converting everything to one rate automatically.
Commercial tools sold in Australia generally show GST-inclusive pricing, and the Australian Consumer Law provides guarantees concerning the quality of goods and services. Licence terms and the Copyright Act 1968 still apply to conversion. Personal use of media you own may be permissible, but removing digital-rights protection, converting streamed downloads, or distributing copied films without permission can breach legislation or the relevant licence. Use official software builds, observe each application’s activation terms, and keep authorised copies of the content you process.
Start With a Small, Reversible Test
Begin by copying the source WebM and its subtitle file into a working folder. Export a short section containing both dialogue and a visible caption, then verify the subtitle track, timing, language label, audio, and appearance on the devices you expect to use. If the source contains multiple subtitle streams, test the intended track first and record its index so the final command remains consistent.
Once the sample passes, run the selected FFmpeg command or HandBrake preset on the complete file and compare its duration with the original. Preserve the untouched WebM, the external captions, and a short test export until delivery is confirmed. When obtaining a converter, use the developer’s official download or a reputable software listing, verify any licence information, and avoid unofficial “cracked” builds that may contain malware.
Start with the test section now, confirm that the captions survive exactly as intended, and then process the full collection with a repeatable, reversible workflow.