Log in

View Full Version : Help converting MPG > AVI with the same quality & aspect ratio


I-IEMA
27th May 2010, 19:18
I have a recorded files from my satellite card with extension : mpg

here is the properties :

http://i46.tinypic.com/2pshb2r.jpg

wanna convert it to AVI ( video : Xvid Audio :AC3 ) with the same quality & aspect ratio .

How to do that ??

The reason to do that is to use MeGUI to convert it to x264 mkv ,
but it doesn't convert the mpg file .

If there is a way to use MeGUI to direct convert to mkv (codec needed ot something ) , it would be great :D .

rkalwaitis
27th May 2010, 20:37
You can get avisynth to read a mpg file.

I think that you would require a plugin like MPEGdecoder.

Script would be something like this. You can do this little test to see if MeGUI will open it up. Then you can go straight to mkv and skip the avi portion you proposed.

LoadPlugin("C:\the folder where i store my avisynth plugins\MPEGdecoder.dll")
mpegsource("C:\the folder where I store my source mpg\filename.mpg")

http://avisynth.org/oldwiki/index.php?page=Section+2%3A+AviSynth+and+frameserving

Inspector.Gadget
27th May 2010, 22:46
Given that the file is in fact MPEG-2 in a program stream accompanied by MP2 audio, DGIndex -> Avisynth -> x264 + your choice of audio encoder -> MKVMerge will work well.

I-IEMA
9th June 2010, 16:36
Thanks you guys ,
I followed "Inspector.Gadget" steps & successfully encoded it :)

but the outcome is a bit pixeled on the edges in movement in the video , can I enhance it with a filter or something ?

Inspector.Gadget
9th June 2010, 18:51
Pixelated on the edge = you mean interlacing on moving parts, or ugly borders around the outside of the video frame? If the former; deinterlace or IVTC; if the latter, crop.

Edit: Also, if you'd like to post a short sample of the source cut with DGSplit or cut and demuxed to an M2V video stream with DGIndex (which enables you to use preview to select the relevant section), we can examine your source and suggest things to try.