View Full Version : Problem encoding to x264
chandragupta
12th August 2007, 16:56
hi!
i'm tring to convert a video clip taken using a mobile phone to x264
my avisynth script is
--------------------------------------------------------------------------------
directshowsource("C:\Documents and settings\Administrator\Desktop\07082007016.mp4",fps=14.57,convertfps=true,seek = true)
delayaudio (0.1)
convertfps(25)
turnright()
convolution3d("movielq")
deblock()
--------------------------------------------------------------------------------
i'm using VirtualDubMod 1.5.10.2 b2542 for encoding to x264
and the x264 build is (x.264 core 56 build 18 jul 2007).
here's the problem..
the first pass goes fine but i get the following error at the start of the second pass..
"2nd pass has more frames than 1st pass (22915 vs 22909)"
virtualdub shows the no of frames as 22915.
i am not sure whether this is a problem with my avs script or with x264 or with virtualdubmod....so please forgive me if i'm posting this in a wrong section.
please help!!
mitsubishi
12th August 2007, 17:12
It's a problem with Directshow, it's not always frame accurate.
You could
1) Use crf (or another 1-pass mode)
2) Decode to a lossless avi, then use this to encode off.
Both might be missing a few frames though.
Or you could extract the raw video from the mp4 using Yamb. Do you know what video format your phone uses? It's probably AVC, but might be ASP. I'm not sure if DGAVCindex can index AVC's from phones, but don't see why not, so give that a go, or mux into an AVI and use AVIsource().
foxyshadis
12th August 2007, 17:27
The only time I've seen this error is in the VFW version of x264, none of the other guis suffer from it even when you use Directshowsource. Try MeGUI, or avidemux, or one of the others in the GUI forum.
delacroixp
12th August 2007, 21:29
Perhaps I can recommend AutoMKV (http://forum.doom9.org/showthread.php?t=113811) into the mix...
:):D:eek:
Pascal
chandragupta
13th August 2007, 13:42
It's a problem with Directshow, it's not always frame accurate.
You could
1) Use crf (or another 1-pass mode)
2) Decode to a lossless avi, then use this to encode off.
Both might be missing a few frames though.
Or you could extract the raw video from the mp4 using Yamb. Do you know what video format your phone uses? It's probably AVC, but might be ASP. I'm not sure if DGAVCindex can index AVC's from phones, but don't see why not, so give that a go, or mux into an AVI and use AVIsource().
Many thanks for your prompt reply mitsubishi.
i extracted the raw video using Yamb. the phone records video in ASP so couldn't use DGAVCindex. and audio is recorded in AAC-LC.(Nokia N70).
then i used Yamb and extracted the video to avi and audio to aac. and then decompressed the aac to wav using quicktime.
but then the video & audio went out of sync. so i decompressed the aac to wav using nero ...but same results.
so i directly used aac in the avisynth script using directshowsource() but then the avs won't run .... the media player would hang and so does virtualdubmod....can't find what the problem is??
i don't understand what crf is... i searched but couldn't find anything useful...
thanks for help !
chandragupta
13th August 2007, 13:51
The only time I've seen this error is in the VFW version of x264, none of the other guis suffer from it even when you use Directshowsource. Try MeGUI, or avidemux, or one of the others in the GUI forum.
Thanks for that foxyshadis!
it worked..
i used megui and the same avs script...it went smoothly..!!
thanks.!
delacroixp
13th August 2007, 15:10
Thanks for that foxyshadis!
it worked..
i used megui and the same avs script...it went smoothly..!!
thanks.!
Don't forget about AutoMKV...
:):D:eek:
Pascal
chandragupta
14th August 2007, 12:08
Don't forget about AutoMKV...
:):D:eek:
Pascal
Hey thanks!
just downloaded AutoMKV and did an encode using it...it'g good. thanks!:thanks:
delacroixp
16th August 2007, 01:02
Awesome...
We aim to please...
:):D:eek:
Pascal
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.