digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Converting VCD to KVCD is only half length of original? (http://www.digitalfaq.com/archives/encode/7010-converting-vcd-kvcd.html)

jim620 12-05-2003 01:53 PM

Converting VCD to KVCD is only half length of original?
 
I'm trying to re-encode a VCD movie to KVCD but after TMPGenc is done the KVCD is only about 1/2 the length of the original. I have tried two different scripts but the results are the same. I have also tried it on 2 different movies, same results. The movies are PAL. Here are the scripts:

SCRIPT 1

LoadPlugin("d:\filters\MPEG2Dec3.dll")
LoadPlugin("d:\filters\BlockBuster.dll")
LoadPlugin("d:\filters\atc.dll")
LoadPlugin("d:\filters\dctfilter.dll")
LoadPlugin("d:\filters\deen.dll")
LoadPlugin("d:\filters\undot.dll")
LoadPlugin("d:\filters\asharp.dll")
LoadPlugin("d:\filters\mpegdecoder.dll")

#DirectShowSource("d:\work\movie.mpg")
Mpegsource("d:\work\movie.mpg")
Undot()
ConvertToYV12
deen()
BlindPP()
ATC(2,3,5,0.5,false)
DCTFilter(1,1,1,1,1,1,0.5,0)
Blockbuster(method="noise",detail_min=1,detail_max =100,variance=2,seed=1)
#LanczosResize(352, 238, 0, 5, 352, 278)
Blockbuster
(method="noise",detail_min=1,detail_max=3,variance =0.1,seed=1)
asharp(1,4)
TemporalSoften(2,7,7,3,2)
#AddBorders(0, 1, 0, 1)
Limiter()

SCRIPT 2

LoadPlugin("e:\filters\asharp.dll")
LoadPlugin("e:\filters\atc.dll")
LoadPlugin("e:\filters\blockbuster.dll")
LoadPlugin("e:\filters\convolution3dyv12.dll")
LoadPlugin("e:\filters\dctfilter.dll")
LoadPlugin("e:\filters\deen.dll")
LoadPlugin("e:\filters\gripfit_yv12.dll")
LoadPlugin("e:\filters\mpeg2dec3.dll")
LoadPlugin("e:\filters\mpegdecoder.dll")
LoadPlugin("e:\filters\stmedianfilter.dll")
LoadPlugin("e:\filters\undot.dll")
LoadPlugin("e:\filters\unfilter.dll")

Mpegsource("d:\work\movie.mpg")
BlindPP(cpu=4)
Blockbuster(method="noise",detail_min=1,detail_max =3,variance=0.1,seed=1)
Convolution3D(1, 6, 12, 6, 8, 2.8, 0)
GripCrop(352, 240, source_anamorphic=false)
GripSize(resizer="LanczosResize")
Undot()
TemporalSoften(2,7,7,3,2)
DCTFilter(1,1,1,1,1,1,0.5,0)
#Blockbuster(method="noise",detail_min=1,detail_ma x=10,variance=0.3,seed=5623)
GripBorders()

Boulder 12-05-2003 02:04 PM

MPEGDecoder doesn't always work very well. Try opening the MPG file with DirectShowSource, make sure you use the latest Avisynth version as lots of DirectShowSource issues were fixed.

jim620 12-05-2003 02:13 PM

I tried Directshow but the output movie was very jerky and not smooth.

Dialhot 12-05-2003 06:19 PM

So for that movie your only way is to convert it in huffyuy avi format with tmpgenc, then use this avi as source.

I know, it's boring, but I had to do that again last night.

jim620 12-05-2003 07:48 PM

How would I go about converting it to .avi using TMPGenc? Can I use Virtualdub?

Dialhot 12-06-2003 08:24 AM

Quote:

Originally Posted by jim620
How would I go about converting it to .avi using TMPGenc? Can I use Virtualdub?

You can but vdub give me synch problem half of the time. So I never use it for that.

Whith tmpgenc it's simple : open it, load the mpeg as source, go in file menu and select "output to file" -> avi.
There you select "huffyuy" as video codec and "pcm" as audio codec. And run.

jim620 12-06-2003 05:43 PM

Thanks, I will give that a try. I tried to encode one last time with the script using Directshow and I noticed that the output was not jerky as mentioned before but rather the movie was being slowed down. For example in the original file, if a name in the opening screen appeared at 32 secs using Media Player, in the output movie it appears at 92 secs. Can't seem to understand while it would slow the movie down.

Dialhot 12-06-2003 06:06 PM

One of the problem that have avisynth to handle a mpeg1 is in the determination of the framerate. It's possible that it has detected a framerate too hight and as it encodes it at 23.976 (or 25) im/s, the movie is in slow motion.

Just an idea...

Boulder 12-07-2003 03:50 AM

With DirectShowSource, you can (often must) specify the framerate of the source with the fps= parameter.


All times are GMT -5. The time now is 05:55 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.