PDA

View Full Version : avi from mpeg2


adiharan
23rd February 2003, 21:29
My tuner captures in mpeg2 format, and i want to recompress it in divx. I think it may be possible by converting my mpeg2 video to a mpeg1 one, and after that it's simple. But i don't know how to make this conversion (mpeg2 to mpeg1).
Or do you know a software that can encode mpeg2 directly to divx?

bb
24th February 2003, 08:32
You could use VirtualDub_MPEG-2_AC3 by fccHandler. And use PVAstrumento to clean your MPEG-2 stream.

As this is not related to DV, I move it to the "Capturing Video" forum.

bb

DDogg
24th February 2003, 08:55
Edit: bb's post and mine crossed while this was still in the DV forum. His suggestion is probably the way to go. I have never used the variant of VDub he mentions and my answer assumes you have a normal mpeg2. Here is a link for the program he mentions:
http://forum.doom9.org/showthread.php?s=&threadid=46606

adiharan, you can convert your mpg2 directly into an avi.
Due to two new plugins for Avisynth this has become real simple (Might be sync issues, but I think that was fixed).

1> Simple Demux your MPG with TMPG Tools or other.
2> Create the following script (mympg.avs) for Avisynth 2.5 (you will need to install)

#Begin script
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEGDecoder.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mpasource.dll")
Video=mpegsource("Path:\my_mpg.m2v")
Audio=mpasource("("Path:\my_mpg.mp2")
audiodub(Video,Audio)
#end script

3> Simply load the mympg.avs file in VirtualDub and do the avi thing of your choice. The two plugins do a lot of the work for you that would have needed DVD2AVI plus several other utilities. If memory serves me, you might be able to find one of the DVD2AVI variants and do this without avisynth (why?).

regards,

DD

BaronVlad
24th February 2003, 10:07
Hi,

IMO you should use Jorys (jcsston) program MPEG2toVirtualDub. It is written exactly for this procedure. You can load one or more mpeg2 files, crop and resize (using diferent resize filters as lanczos, bicubline, bicubic... also deinterlacing if you have to), then it demuxes with pvastrumento, writes an avisynth script and opens it with VirtualDub, sound is included using mpasource by Warpenterprises.

You can get it here: http://webjory.tripod.com/vb/

History of this program is here: http://virtualdub.everwicked.com/index.php?act=ST&f=16&t=1018&st=0

Happy encoding

adiharan
24th February 2003, 12:26
thanks a lot, i'll try them.

Swan
24th February 2003, 12:51
My tuner captures in mpeg2 format, and i want to recompress it in divx. I think it may be possible by converting my mpeg2 video to a mpeg1 one,
Am I missing something? Why not use GordianKnot?
You can treat an Mpeg-2 file just like you would vob-files with GordianKnot.

/Maria

BaronVlad
24th February 2003, 15:02
Hi Swan,

you didnt miss anything. Sure you can use GKnot, but this is the hard way, cause you have to demux using pvastrumento or dsjar to fix the mpeg errors, then process with dvd2avi, load the d2v file into GKnot, crop, resize, everything manually, after that add the sound in the script...thats possible ( http://doom9.de/extern_guides/digiCaptureGuide/Inhalt.html sorry German link) but its the hard way...why not let a program work for you ?

Swan
24th February 2003, 16:47
why not let a program work for you ?
I was just wondering why no one suggested GordianKnot, that's all.
way, cause you have to demux using pvastrumento or dsjar to fix the mpeg errors, then process with dv
Who says there are always errors in the Mpeg-2 files? :)
But yes, many the on-the-fly Mpeg-2 encoding programs create bad Mpeg-2 files. But not all of them.

adiharan
24th February 2003, 17:32
Well, I tried a few solutions from you, it worked, but now I'm facing another problem. I am loosing a lot of quality with this conversions. I know there is a virtual dub which can handle directly mpeg2's, but I can't download it. Can you give me a link, if you have?
The old link was: http://webs.ono.com/usr016/de_xt/VirtualDub-1.4.13-MPEG2-AC3.zip

bb
24th February 2003, 19:11
Look at this thread:
http://forum.doom9.org/showthread.php?s=&threadid=46606

And this:
http://forum.doom9.org/showthread.php?s=&threadid=42808

And get familiar with the "search" button ;)

bb

Koke
25th February 2003, 21:26
Much easier, with respectable quality, would be to use
Vidomi encoder. You could also use Flask or Xmpeg but I still
prefer Vidomi due to its stability and quality.
It is at www.vidomi.com and you can find over dozen
guides for all kind of conversions there.
It is very fast too and it supports fast YV12 conversion.
You can try my guide and I`ll help if help is needed :)
Koke`s Vidomi Guide (and others) (http://www.vidomi.com/links.php?op=viewlink&cid=10&min=10&orderby=titleA&show=10)