Convert TS to WebM

Drag and drop files here or click to select.
Max file size 100mb.
Uploading progress:

TS vs WebM Format Comparison

Aspect TS (Source Format) WebM (Target Format)
Format Overview
TS
MPEG Transport Stream

A streaming-oriented container designed for broadcast television and live transmission where data loss is expected. Transport Stream uses fixed-length 188-byte packets with error correction for reliability. TS supports multiplexing multiple programs within a single stream and is the foundation of HLS adaptive bitrate streaming and Blu-ray disc storage.

Standard Lossy
WebM
WebM Video Format

Google's open, royalty-free media container based on the Matroska format, designed specifically for web video delivery. WebM pairs VP8/VP9/AV1 video codecs with Vorbis/Opus audio, ensuring patent-free playback in all major web browsers without plugin requirements. The format is optimized for HTML5 video, WebRTC real-time communication, and adaptive bitrate streaming.

Modern Lossy
Technical Specifications
Container: MPEG-2 Transport Stream (ISO/IEC 13818-1)
Video Codecs: MPEG-2, H.264/AVC, H.265/HEVC
Audio Codecs: MPEG-1 Layer II (MP2), AAC, AC-3, DTS
Max Resolution: Up to 8K (H.265 in ATSC 3.0)
Extensions: .ts, .mts, .m2ts, .tsv
Container: WebM (Matroska subset/profile)
Video Codecs: VP8, VP9, AV1
Audio Codecs: Vorbis, Opus
Max Resolution: Up to 8K (VP9/AV1)
Extensions: .webm
Video Features
  • Subtitles: DVB subtitles, teletext, closed captions
  • Chapters: Not native (segment-based navigation)
  • Multi-Audio: Multiple audio PIDs per program
  • HDR: HDR10, HLG (ATSC 3.0, DVB)
  • EPG: Electronic Program Guide metadata
  • Error Recovery: Forward error correction for broadcast reliability
  • Subtitles: WebVTT (native HTML5 support)
  • Chapters: Matroska chapter support
  • Multi-Audio: Multiple audio tracks possible
  • HDR: HDR10 (VP9 Profile 2, AV1)
  • DRM: Encrypted Media Extensions (EME) in browsers
  • Streaming: WebRTC real-time, DASH adaptive streaming
Processing & Tools

TS encoding and broadcast with FFmpeg:

# Encode to MPEG Transport Stream
ffmpeg -i input.mp4 -c:v libx264 -c:a aac \
  -f mpegts output.ts

# Create HLS segments from TS
ffmpeg -i input.ts -c copy -hls_time 10 \
  -hls_list_size 0 output.m3u8

WebM encoding with VP9 and AV1 using FFmpeg:

# Convert TS to WebM with VP9
ffmpeg -i input.ts -c:v libvpx-vp9 -crf 30 \
  -b:v 0 -c:a libopus -b:a 128k output.webm

# WebM with AV1 (best compression)
ffmpeg -i input.ts -c:v libaom-av1 -crf 30 \
  -c:a libopus -b:a 128k output.webm
Advantages
  • Error-resilient packet structure for broadcast
  • Foundation of HLS adaptive bitrate streaming
  • Multiple program multiplexing in single stream
  • Blu-ray disc storage format (M2TS)
  • Supports modern codecs (H.264, H.265)
  • Industry standard for broadcast and IPTV
  • Royalty-free, open-source format
  • Native browser playback (Chrome, Firefox, Edge, Opera)
  • AV1 codec offers superior compression efficiency
  • WebRTC support for real-time communication
  • DASH adaptive streaming compatible
  • Excellent for HTML5 web video delivery
Disadvantages
  • Packet overhead increases file size (188-byte packets)
  • Not ideal for local file storage (use MP4/MKV)
  • Complex structure for simple file playback
  • Limited desktop player support compared to MP4
  • No native chapter or attachment support
  • VP9/AV1 encoding is significantly slower than H.264
  • Limited hardware decoder support (improving for AV1)
  • Not accepted by most social media platforms
  • Poor support on Apple devices (Safari VP9 limited, AV1 recent)
  • Fewer codecs than full MKV (restricted to VP8/VP9/AV1 + Vorbis/Opus)
  • Not suitable for professional editing workflows
Common Uses
  • Broadcast television (DVB, ATSC, ISDB)
  • HLS streaming segments
  • Blu-ray disc storage (M2TS)
  • IPTV and cable television delivery
  • Digital video recorder (DVR) output
  • Live streaming infrastructure
  • HTML5 web video (YouTube, Wikipedia, web apps)
  • WebRTC video conferencing
  • Open-source video platforms
  • DASH adaptive streaming delivery
  • Animated content replacing GIF
  • Web application embedded video
Best For
  • Broadcast television and IPTV delivery
  • HLS adaptive bitrate streaming
  • Blu-ray disc authoring (M2TS)
  • Live event streaming with error recovery
  • Multi-program broadcast multiplexing
  • Web-first video delivery without royalty concerns
  • HTML5 video with native browser playback
  • AV1 next-generation compression
  • WebRTC real-time communication
  • Open-source video platforms
Version History
Introduced: 1995 (ISO/IEC 13818-1, MPEG-2 Systems)
Current Version: MPEG-2 Systems Amendment 4 (2018)
Status: Active standard for broadcast, Blu-ray, and HLS
Evolution: MPEG-2 TS (1995) → DVB/ATSC (1998) → Blu-ray/M2TS (2006) → HLS segments (2009) → ATSC 3.0 (2019)
Introduced: 2010 (Google, for HTML5 video)
Current Version: WebM with AV1 support (2018)
Status: Active development, growing AV1 adoption
Evolution: VP8/WebM launch (2010) → VP9 (2013) → AV1/Alliance for Open Media (2018)
Software Support
Media Players: VLC, mpv, PotPlayer, Kodi
Web Browsers: Via HLS.js (as HLS segments)
Video Editors: Adobe Premiere Pro, DaVinci Resolve, Kdenlive
Mobile: Android/iOS (via HLS streaming players)
CLI Tools: FFmpeg, tstools, DVBInspector, MediaInfo
Media Players: VLC, mpv, Chrome, Firefox
Web Browsers: Chrome, Firefox, Edge, Opera (native VP9/AV1)
Video Editors: Kdenlive, Shotcut, Blender, DaVinci Resolve
Mobile: Android (native Chrome/VP9), iOS (limited Safari support)
CLI Tools: FFmpeg, vpxenc/vpxdec, aomenc (AV1), MediaInfo

Why Convert TS to WebM?

Converting TS to WebM transforms broadcast content into a web-native, royalty-free video format. MPEG Transport Stream files are designed for broadcast delivery — not web browsers. WebM, built on the Matroska container with VP9 or AV1 video and Opus audio, plays natively in Chrome, Firefox, Edge, and Opera without any plugins or licensing concerns. This makes TS-to-WebM conversion essential when you want to publish broadcast recordings on websites, open-source platforms, or web applications.

The royalty-free nature of WebM is a significant advantage for organizations concerned about patent licensing. H.264 (used in MP4) requires patent licenses for certain commercial uses through the MPEG-LA patent pool. VP9 and AV1 in WebM are completely royalty-free, making them the preferred choice for open-source projects like Wikipedia, PeerTube, and organizations that want to avoid patent entanglements. Converting broadcast TS content to WebM eliminates all licensing concerns for web distribution.

AV1 encoding in WebM provides the most advanced compression available today — achieving 30-50% better compression than H.264 at equivalent quality. A 4 GB H.264 TS broadcast recording might compress to 1.5-2 GB as AV1 WebM with similar or better visual quality. The trade-off is encoding speed: AV1 encoding is 10-20x slower than H.264, making it best suited for offline conversion of archived content rather than real-time processing.

The main limitations of WebM are ecosystem breadth and encoding speed. While browser support is excellent, native device playback lags behind MP4 — particularly on Apple devices where Safari's VP9/AV1 support has been inconsistent. Social media platforms generally do not accept WebM uploads. For maximum compatibility across all devices, MP4 remains the safer choice. Use WebM when your target audience primarily uses web browsers and you want royalty-free video delivery.

Key Benefits of Converting TS to WebM:

  • Royalty-Free: No patent licensing fees for VP9 or AV1 codecs
  • Browser Native: Plays in Chrome, Firefox, Edge, and Opera without plugins
  • AV1 Compression: 30-50% better compression than H.264
  • HTML5 Ready: Designed specifically for web video delivery
  • WebRTC Compatible: Works with real-time web communication protocols
  • Open Source: Fully open format backed by Alliance for Open Media
  • DASH Streaming: Compatible with adaptive bitrate web streaming

Practical Examples

Example 1: Broadcast Content for Web Portal

Scenario: A public broadcaster wants to publish recorded TV programs on their website using open-source technology, avoiding H.264 patent licensing by using WebM format.

Source: documentary_nature_ep05.ts (5.6 GB, 1920x1080, H.264, AAC)
Conversion: TS → WebM (VP9 for web publishing)
Result: documentary_nature_ep05.webm (2.1 GB, 1920x1080, VP9, Opus)

Web publishing workflow:
1. Decode H.264 from TS container
2. Re-encode to VP9 CRF 30 (quality-targeted)
3. Convert audio to Opus 128 kbps
4. Generate DASH manifest for adaptive streaming
5. Embed on website with HTML5 video tag
✓ 62% smaller than original broadcast TS
✓ No patent licensing fees for web distribution
✓ Native playback in all major browsers
✓ DASH adaptive streaming adjusts to viewer bandwidth

Example 2: Educational Archive with AV1

Scenario: A university digitizes recorded lectures from IPTV broadcasts (TS format) for their open courseware platform, using AV1 for maximum compression and quality.

Source: lecture_physics_2026_complete.ts (8.2 GB, 1280x720, MPEG-2, MP2)
Conversion: TS → WebM (AV1 for long-term archive)
Result: lecture_physics_2026.webm (1.2 GB, 1280x720, AV1, Opus)

Open courseware pipeline:
1. Decode MPEG-2 broadcast recording
2. Encode AV1 at CRF 32 (excellent for lecture content)
3. Audio to Opus 64 kbps (sufficient for speech)
4. Generate WebVTT subtitles from transcript
5. Publish on university open courseware platform
✓ 85% file size reduction from MPEG-2 source
✓ AV1 excels at static lecture content (slides, text)
✓ WebVTT subtitles enable accessible learning
✓ Completely open format aligns with OER principles

Example 3: Wikipedia Video Contribution

Scenario: A citizen journalist captured a public event broadcast as a TS recording and wants to upload a clip to Wikimedia Commons, which requires WebM or OGG format for royalty-free content.

Source: public_event_broadcast.ts (2.4 GB, 1920x1080, H.264, AAC)
Conversion: TS → WebM (for Wikimedia Commons)
Result: public_event_clip.webm (180 MB, 1280x720, VP9, Opus)

Wikimedia workflow:
1. Extract 5-minute highlight from TS broadcast
2. Downscale to 720p for web viewing
3. Encode VP9 at CRF 28 (good quality)
4. Audio to Opus 96 kbps
5. Upload to Wikimedia Commons with CC license
✓ Meets Wikimedia's format requirements (WebM)
✓ Royalty-free format compatible with free content license
✓ 720p appropriate for encyclopedia embedding
✓ Small file size for global CDN distribution

Frequently Asked Questions (FAQ)

Q: Should I use VP9 or AV1 for the WebM output?

A: VP9 offers a good balance of encoding speed and compression — it encodes 5-10x faster than AV1 and has wider hardware decoder support. AV1 provides 20-30% better compression than VP9 but encoding is very slow. Use VP9 for quick conversions and AV1 for archival or when file size is critical. Both play natively in modern browsers.

Q: Will WebM play on iPhones and iPads?

A: Safari on iOS has limited VP9 support (introduced in iOS 14 for WebRTC) and growing AV1 support in newer versions. However, VP9 WebM does not play reliably in Safari for all use cases. For maximum Apple device compatibility, provide an MP4 fallback alongside WebM using the HTML5 source element with multiple formats.

Q: Why is WebM encoding so much slower than MP4?

A: VP9 and especially AV1 use more sophisticated compression algorithms that require significantly more CPU time. AV1 encoding can be 10-20x slower than H.264 for equivalent output. Use multi-threaded encoding (-row-mt 1 for VP9, -cpu-used 4 for AV1) to speed up the process. For batch conversions, consider running encoding overnight.

Q: Can I preserve multiple audio tracks from the TS broadcast?

A: WebM (as a Matroska subset) supports multiple audio tracks. Use ffmpeg -i input.ts -map 0:v:0 -map 0:a:0 -map 0:a:1 -c:v libvpx-vp9 -c:a libopus output.webm to include multiple audio streams. However, browser support for multi-track WebM audio selection varies — most browsers play only the default track.

Q: How does WebM file size compare to MP4?

A: VP9 WebM files are typically 20-30% smaller than H.264 MP4 at equivalent quality. AV1 WebM files are 30-50% smaller than H.264 MP4. However, this comes at the cost of much longer encoding times. At the same bitrate, VP9 and AV1 generally produce better visual quality than H.264, especially at lower bitrates.

Q: Can I use two-pass encoding for better quality?

A: Yes, two-pass encoding improves quality at a target bitrate. First pass: ffmpeg -i input.ts -c:v libvpx-vp9 -b:v 2M -pass 1 -an -f null /dev/null. Second pass: ffmpeg -i input.ts -c:v libvpx-vp9 -b:v 2M -pass 2 -c:a libopus output.webm. Two-pass is recommended for target-bitrate encoding but unnecessary for CRF mode.

Q: What happens to broadcast subtitles?

A: DVB subtitles from the TS source must be converted to WebVTT for WebM. Extract subtitles from the TS file using CCExtractor or FFmpeg, convert to WebVTT format, and either embed in the WebM file or serve as a separate .vtt file referenced by the HTML5 track element. WebVTT is the standard subtitle format for HTML5 video.

Q: Is WebM better than MP4 for web video?

A: It depends on priorities. WebM with VP9/AV1 offers better compression efficiency and zero patent licensing fees. MP4 with H.264 offers universal device compatibility including Apple devices, social media, and hardware accelerated decoding everywhere. Many websites serve both formats — WebM as the primary source and MP4 as fallback — to get the best of both worlds.