Source: https://vokal.co/blog/ts-to-mp4-ffmpeg
Description: With the command line, you can use FFmpeg to convert TS to MP4 in a few steps. Follow my guide and get started so you can easily do it yourself.
Published: 2022-05-24T00:00:00.000Z
Modified: 2022-05-30T14:39:55.465Z

[ffmpeg](https://vokal.co/blog/tags/ffmpeg)

# How to Convert TS to MP4 with FFmpeg

By [Frizky](https://twitter.com/frizurd)

· May 24, 2022 ·

1 min read

![TS to MP4 with FFmpeg](https://vokal.co/images/blog/ts-ffmpeg/audio-240af2cebc6c-1200.webp)

There are a few ways to convert TS to MP4 with FFmpeg. The most popular and simple way is to use the command line. With the command line, you can use FFmpeg to convert TS to MP4 in a few steps.

First, use the following command to download and install FFmpeg:

```text
sudo apt-get install ffmpeg
```

After the installation is complete, use the following command to convert TS to MP4:

```text
ffmpeg -i input.ts -c:v copy -c:a copy output.mp4
```

Replace input.ts with the name of your TS file and output.mp4 with the name of your desired MP4 file.

That's it! You have now successfully converted TS to MP4 using FFmpeg.

## What is a TS file?

A TS Video Transport Stream is a file format used for storing video data on a computer. It is often used for storing video data on DVDs and Blu-ray discs.

## What is the better video format: MP4 or TS?

There are a few things to consider when determining whether MP4 or TS is the better format for you. One key factor is compatibility. MP4 is a more widely compatible format, while TS is more specialized. If you need to play your video on as many devices as possible, MP4 is probably the better option.

Another important consideration is quality. MP4 files can offer better quality than TS files, although the difference is usually not dramatic.

Finally, file size is worth considering. MP4 files are typically smaller than TS files, so they take up less storage space.

Ultimately, the best format for you depends on your specific needs and preferences.

![Picture of Frizky](https://vokal.co/profile.jpg)

Frizky [@frizurd](https://twitter.com/frizurd)

Creator of Vokal. Designer and developer for 15+ years, on a mission to make great design accessible to everyone.

[PreviousHow to add Color Noise to your Video with FFmpeg](https://vokal.co/blog/color-noise-ffmpeg)[NextHow to Promote Your Podcast: 30 Tips to Help You Grow](https://vokal.co/blog/promote-podcast)

## Ready to make  
your first video?

[Get started — it's free](https://app.vokal.co/register)

![Vokal video templates](https://vokal.co/images/examples-min-2f8db0875081-1200.webp)
