PDA

View Full Version : A question about x264 encoding


MizuTama
26th March 2009, 10:44
I've got an AVI file and I can encode it with vdm or easyrealP.
But I can't encode it with x264.
It's a 120fps AVI and is auto-vfr.
I use mkvmerge to get it a mkv and extract it with timecode.
Then use AVI-tc-packer to get a cfr avi.
and x264 can't encode it.

GSPot told me that there's an overhead in the AVI file.
I think that's the point because without it my processing is perfect(other AVI file).
I wanna know how to get it out.
Or the problem is not on it?


PS:I've tried to get it out uncompressed from VDM,but x264 can't still encode it.

:thanks::thanks:

nm
26th March 2009, 10:46
How exactly are you trying to encode those files with x264?

MizuTama
26th March 2009, 10:52
I encode it with MeGUI

nm
26th March 2009, 11:23
What error message do you get? Show the encoding logs and post your AviSynth script. A sample clip for reproducing the problem could also help.

MizuTama
26th March 2009, 11:52
It has no error message.
When I put the avs in,MeGui will show up a video preview.But as I try to close it,the Megui will be in no response and I have to close it in taskmanager.
And if I don't close the preview and compress it directly,the encoding processing will stop in last few frame and can't complete.

I've tried to compress it using command line,it can be encode successfully in that way but I can't open the file after encoding.I think that's a broken file 'cause mpc can't decode it.

here my script,it's a simple avs:

Avisource("**.avi")
Assumefps(23.976)
Lanczos4resize(704,396,4,1,0,0)
Textsub("**.ass")

nm
26th March 2009, 11:58
Ok, the remuxed file is probably somehow broken as you suspected. Have you tried encoding the original 120 fps AVI?

MizuTama
26th March 2009, 12:33
I've tried it.
But Megui acts the same

Adub
27th March 2009, 02:22
Do you have any codec packs on your system? Or are you using FFDshow?

LoRd_MuldeR
27th March 2009, 02:29
Do you have any codec packs on your system? Or are you using FFDshow?

Just a note: FFVideoSource() (http://forum.doom9.org/showthread.php?t=127037) could be used instead of AVISource() or DirectShowSource() to preclude such questions from the very beginning ;)

MizuTama
1st April 2009, 14:06
I use K-lite mega
And I think it's ffdshow

roozhou
1st April 2009, 15:04
My x264 build will perfectly handle vfr videos, download from here
http://forum.doom9.org/showthread.php?t=141441

Do not use avisynth, just use command line like:
x264 **.avi --sub **.ass ...(other parameters)
If you need to resize, use ffdshow (yes, it's included in K-lite mega)

P.S. AFAIK 99% of 120fps AVIs come from the Internet (usually animes). I guess you are breaking forum rule 6, are you?