Log in

View Full Version : [Help!]very strange problem when encoding @x264


MeteorRain
26th July 2005, 18:43
i encoded a 24min long video.
the original video is in x264 in avi, and i want to reencoded to x264 in mp4.
i use meGUI as my GUI, set up a CQ task and encode.
when encoding finished, the final work mp4 couldn't play. i can see (and only see) the 1st frame, and seems the length of the video is 0.0x sec.
i have encoded it for 3 times, using different quantizer, but all failed.
here is the avs:
directshowsource("傌偲傌偲偝傫 戞01榖乽偍偼傛乕偝乕傫乿 (D-SUN 640x480 x264 AAC).avi", audio=false)


here is the meGUI log:

Next job job9 is a video job. encoder commandline:
"H:\mp4\x264.exe" --qp 25 --ref 3 --bframes 16 --b-pyramid --weightb --analyse p8x8,b8x8,i4x4,p4x4,i8x8 --ipratio 1.0 --pbratio 1.0 --threads 2 --progress --no-psnr --output "I:\subgroup\petopeto\01.mp4" "I:\subgroup\petopeto\01.avs"
successfully set up video encoder and callbacks for job job9
----------------------------------------------------------------------------------------------------------

Log for job job9

This is a CQ job so there's no desired bitrate. Obtained video bitrate: 56853.3216 kbit/s
----------------------------------------------------------------------------------------------------------

and then i try to trim the video. i put trim(0,1000) in the avs and encode. the final work goes well:

Next job job9 is a video job. encoder commandline:
"H:\mp4\x264.exe" --qp 25 --ref 3 --bframes 16 --b-pyramid --weightb --analyse p8x8,b8x8,i4x4,p4x4,i8x8 --ipratio 1.0 --pbratio 1.0 --threads 2 --progress --no-psnr --output "I:\subgroup\petopeto\01.mp4" "I:\subgroup\petopeto\01.avs"
successfully set up video encoder and callbacks for job job9
----------------------------------------------------------------------------------------------------------

Log for job job9

This is a CQ job so there's no desired bitrate. Obtained video bitrate: 2622.476 kbit/s
----------------------------------------------------------------------------------------------------------

then i try to encoded it into xvid first, and use avisource() to load the video. but after i finished encoding x264, the final work is still stop working.

what can it be?

ChronoCross
26th July 2005, 19:32
do you have a proper mp4 splitter installed?

Doom9
26th July 2005, 19:59
umm.. directshowsource without indicating a framerate? bad idea! And loading an AVI via DirectShowSource: bad idea again. That's what AVISource is for.

MeteorRain
27th July 2005, 02:36
@ChronoCross
trim(0,1000) and encode, the result plays ok, but the whole video encoded, the final work don't go.

@Doom9
don't you see the avi is x264 encoded originally?
could this kind of video (no vfw decoder) be loaded with avisource()??
and do we need to write fps when opening a cbr avi??
>_<

still regards!!
MeteorRain

azsd
27th July 2005, 03:32
yes,it's indeed

same mistake I have made in last week:
http://forum.doom9.org/showthread.php?t=97176

DirectShowSource with out fps args may cause high fps and very short playtime (3~6ms) in x264 encoded mp4.

the shorter clip without fps seems working fine,it confused me too.
speculate like conan sama while encoding without do more test,will cause unplayable mp4.

MeteorRain
27th July 2005, 06:48
then one more question:
i encoded it to XviD in VDM, and got an avi file, which played perfectly.
then i use avisource() to load the avi, and compress it to x264. the problem still exists.
avisource() should be no need to add fps arg =_=??
is it because the avi contains no audio?

regards, and thank you to you all.
MeteorRain

azsd
27th July 2005, 07:47
could you plz upload you avi somewhere (eg:popgo#4 ftp server)?
I guess these broken mp4 may caused by ffdshow as vfw/dshow decoder,or avisynth has report inflate video info to x264 CLI.

MeteorRain
27th July 2005, 08:07
= =
the file is too fat so i have already delete it. :(
btw, how can i upload file to popgo #4 server? i have no account at all :(

MeteorRain
27th July 2005, 13:25
add fps arg, and it works.
thank you all.