How to Convert MPEG to TS in Linux

ssb
1 - Convert MPEG to TS in Linux

Open VLC.

Click on File - Open File (advanced)

Open the file in MPEG TS, check the Stream, click Save and click on Settings. Press OK twice and it's finished very quickly!

2 - Demultiplexing with ProjectX

This software will separate the sound from the video and at the same time, the file will be automatically corrected and it's errors recorded. It will also remove the advertisements that are usually present.

Run the demuxer, click Open File> ... framework "Treatment"

Check that Demux is checked and click the green arrow. After a few minutes the files will be created.

3 - Remux the two files

This is done by mplex tool (available for Debian in the package mjpegtools)

Use the following command:

mplex-8-o final.mpg fishing.mp2 fishing.m2v


4 - encoding xvid

4.1 - Encoding with mencoder

Use the following command:

mencoder-oac mp3lame-lameopts aq = 0: cbr = 128-vf scale = 530:400-ovc xvid-xvidencopts bitrate = 1225: trellis: me_quality = 6 = 4 vhq: chroma_opt final.mpg-o fishing_xvid.avi

4.2 - Encoding with avidemux

Avidemux is used only for encoding xvid. Open the movie. Mpg index is created if necessary. Then select the MPEG-4 ASP (Xvid4) instead of copying.

Choose "Two pass - Video size "for the encoding (2 passes lead to higher quality than 1) and leave 700MB for the two files.

In "filters" you can edit the video, avoid changing the format, if you prefer choose the "Transformation" filter "MPlayer resize" and select 16 / 9 in "Source" and 1:1 in "Destination". Input 528 and 400 in width and height.

Run a preview to check that everything goes well at that image size.

For the sound, select MP3 (LAME) instead of copying. AVI format is selected normally, just save the video with the "Save" button and wait a few hours for encoding to finish. Well, you should end up with a highly compressed AVI file.

Published by ssb

View profile

To comment, please sign in to your Yahoo! account, or sign up for a new account.