View Full Version : Openning mpeg1 file, best method?
pandv
3rd September 2002, 17:34
I want to open a mpeg1 file in Avisynth to transform a big 3 CD's (1:20 movie length only) mpeg1 encode in a 1 CD XVid encode.
Actually I use Virtualdub, but i want to test convolution 3d and another avisynth filters with a noise encode.
I tried DirectShowSource, but the mpeg has errors, and the DirectShowSource shows this errors (one frame totally degraded and a high volume bizarre sound). Virtualdub skips this frames.
There are a best method to open mpeg1 files? Maybe a plugin?
Thanks.
pandv.
Marc FD
3rd September 2002, 18:07
i would try to use Vdub to frameserve MPEG-1 to Avisynth trough AVisource("xx.vdf")
then you frameserve it back to VDub with the filters.
i don't know if it would work, but i like the way ;)
Koepi
3rd September 2002, 18:15
...or you can use vcdgear to repair your mpegs (use google or try www.vcdgear.com , think that was the site).
regards,
koepi
Nic
3rd September 2002, 18:22
LoL, if you feel really daring try my MPEGDecoder.dll...
try:
MPEGSource("d:\yourmpeg1.mpg", -2)
& if that doesnt work then try
MPEGSource("d:\yourmpeg1.mpg", -2, "raw")
(I really need to detect for SS or ES to save people having to do that)
No guarentee whatsoever that it will work...(i really need to get some free time to work on it)
-Nic
WarpEnterprises
3rd September 2002, 21:08
@pandv: Have you converted the DAT-file to a regular mpg1 ?
pandv
4th September 2002, 17:31
Thanks. I tried to test all the suggestions. This is what I found.
@WarpEnterprises: I think yes. I think there are normal mpeg (not VCD standard, more resolution and bitrate) and i cutted a trailer with tmpgenc (so, it remuxed as system stream).
@Koepi: The homepage for vcdgear is correct. But i found vcdgear to fail (cut good, or maybe visually good, frames) with mpeg not VCD standard. Another programs seems to fix the frame replacing it with the anormal frame showed by DirectoShow. VirtualDub is the more reliable solution for me (but you can get audio asynch if there are errors in video and not in audio).
@Marc FD: It worked. It's slow, of course, because the double frameserving and the color conversions.
@Nic: Sorry, I missed the anouncement about support for Mpeg1 in your filter. But, I have bad news. I can't make it work (with differents mpeg clips, not only with this one).
Tested with avisynth 2.05 and the last snapshop (2-Sep).
One line avs script: MPEGSource("e:\myfile.mpeg",-2)
Also tested: MPEGSource("e:\myfile.mpeg",-2, "raw")
And: MPEGSource("e:\myfile.mpeg", framecount)
Behaviour:
- Windows Media Player 6.4 and 7.0. Opens, loads the avs, and autocloses the program.
- Windows Media Player Classic. Opens, loads, and stops. If you press play you get nothing, the player stops newly.
- Zoom Player. Opens, loads and plays (you can pause and replay) but nothing shows in the screen. Hangs on exit.
- VirtualDub (lastest). Error: access violation writing in Avisynth, when you hit play.
If I add another line to the script:
SimpleResize(300,400)
Windows Media Player shows a error 80004005 playing the file.
Machine: Athlon XP 1600+.
Pandv.
Koepi
4th September 2002, 17:40
Use avisynth 2.0.2, and load the plugin manually via LoadPlugin("mpeg2decoder.dll")
Maybe this helps.
Regards,
Koepi
pandv
5th September 2002, 20:11
@Koepi:
Use avisynth 2.0.2, and load the plugin manually via LoadPlugin("mpeg2decoder.dll")
I asume is a fast typing confusion. I tested with LoadPlugin("MPEGdecoder.dll") and 2.0.2 and the behaviour is the same.
In the mean time I discovered I let enabled the virtualdub filters (temporal and spatial smothing). Disabling this filters the frameserving solution suggested by Marc FD is not bad (23 fps in my Athlon).
So, I used this solution to make the transcode and it looks good.
pandv.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.