• Skip to main content

Uly.me

cloud engineer

  • Home
  • Archives
  • Search

FFMPEG Convert TS to MP4

December 4, 2019 by Ulysses

If you have video files that are formatted in MPEG-2, video files with a .m2ts extension, you can convert them to MP4 using ffmpeg.

ffmpeg -i input.ts -c:v libx264 -c:a aac output.mp4

ffmpeg -i input.ts -c:v libx264 -c:a aac output.mp4

The video is encoded using open format H.264, while audio is encoded using AAC.

Filed Under: Linux, Misc Tagged With: .m2ts, convert, ffmpeg, files, mp4, video

Search The Website

Subscribe Via Email

  • Home
  • About
  • Contact

Copyright © 2022