Skip to main content

Converts DVB Transport Stream (.ts) files into Matroska (.mkv)

Project description

About

Ts2mkv is a command line utility to convert DVB MPEG-2 Transport Stream (.ts) files into Matroska (.mkv) which is well supported by all modern media players and devices. The conversion process can also have a separate encoding phase which radically reduces the resulting mkv file size. Ts2mkv comes with some useful presets for encoding video tracks into H.264 and audio tracks into AAC, AC3 or MP3.

Ts2mkv uses avconv, ProjectX and MKVToolNix via their command line interfaces. Tweaked version of ProjectX is bundled with ts2mkv setup.

Ts2mkv comes with pre-defined configurations for Finnish channels’ subtitles. (DVB subtitles work in YLE and AVA channels. Teletext subtitles also work in YLE channels if available.)

Usage

Basic usage is:

ts2mkv my_recording.ts

You can also enable video and audio track encoding by adding some additional parameters:

ts2mkv my_recording.ts --video-preset=h264 --audio-preset=aac

For full syntax type:

ts2mkv --help

Mkvenc

Mkvenc is a supplementary tool bundled with ts2mkv. It can be used to apply the encoding phase afterwards if the original ts->mkv conversion was made without encoding. Basically the tool can be used to encode any Matroska file but it depends on codecs, etc.

In the first phase mkvenc extracts all the tracks out from the existing Matroska file. Then the video and audio tracks are encoded based on presets and configuration. Finally the tracks are merged back together in single Matroska file. Note: Mkvenc tries to preserve language information and possible chapters but some information may be lost during the process.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ts2mkv-2.0.0.tar.gz (1.4 MB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page