Log in

View Full Version : DivX 264 Profile


juGGaKNot
1st May 2009, 17:31
Hi people

I'm having a bit of trouble encoding a video, my cfg :

DivX264 -br 3400 -npass 1 -sf stats.dat -aqo 2 -ref 4 -pyramid -bref -bf 3 -threads 2 -i movie.avs -o movie.264
DivX264 -br 3400 -npass 2 -sf stats.dat -aqo 2 -ref 4 -pyramid -bref -bf 3 -threads 2 -i movie.avs -o movie.264

I get this error trying to encode a 1024x576@30 FPS video :

Error: Width, height or frame rate outside profile specification (632x56@24 sar 1)

Is there a profile switch as there is for X264 ?

My imput file is uncompressed, media info says :

Video
Format : RGB
CodecID : RGB
/ : Uncompressed RGB32
Duration/String : 30s 0
BitRate/String : 566
Latime : 1 024pixeli
Inaltime : 576pixeli
Raport imagine : 16/9
Frecventa cadre : 30,000pfs
Rezolutie : 32biti
Bits-(Pixel*Frame) : 32.000
StreamSize/String : 1,98 (100%)

Funny thing is that it did not work before adding

-aqo 2 -ref 4 -pyramid -bref -bf 3

And it worked after adding the cvars but now it does not work

My avysinth ( 2.5.8 )

AVIsource("movie.avi", fps = 30, audio = false)

juGGaKNot
1st May 2009, 18:33
i think i found the answer, removing fps = 30 from the avysinth script will make it encode, right resolution and fps.

Too bad its not like x264, i would love if my resolution and fps would be confirmed.

http://i286.photobucket.com/albums/ll105/juGGaKNot4cs/th_x264divx.jpg (http://s286.photobucket.com/albums/ll105/juGGaKNot4cs/?action=view&current=x264divx.jpg)

BTW : divx264 does not need conversion to yv12 as x264, this will help quality no ?

Comatose
1st May 2009, 18:37
The resolution and FPS DivX reports in the error suggests you got an Avisynth error. Preview it in AvsP, Virtualdub or any player to see what it is.

Dark Shikari
1st May 2009, 18:48
i think i found the answer, removing fps = 30 from the avysinth script will make it encode, right resolution and fps.

Too bad its not like x264, i would love if my resolution and fps would be confirmed.

http://i286.photobucket.com/albums/ll105/juGGaKNot4cs/th_x264divx.jpg (http://s286.photobucket.com/albums/ll105/juGGaKNot4cs/?action=view&current=x264divx.jpg)

BTW : divx264 does not need conversion to yv12 as x264, this will help quality no ?No, DivX only supports YV12.

If it takes input from non-YV12, that just means it's converting internally, with the same result.

juGGaKNot
1st May 2009, 19:01
The resolution and FPS DivX reports in the error suggests you got an Avisynth error. Preview it in AvsP, Virtualdub or any player to see what it is.

There is no error in others, that error apears only when i use the FPS value, with x264 it does not appear.

No, DivX only supports YV12.

If it takes input from non-YV12, that just means it's converting internally, with the same result.

Good ( WELL BAD ), i was just packing my cli, thnx for sharing, i will let avisynth do the conversion.

DigitAl56K
1st May 2009, 19:22
There is a table of accepted rates part-way down this page (http://labs.divx.com/node/6992).

Try forcing the rate unambiguously:
AVIsource("movie.avi", fps = 30, audio = false).AssumeFPS(30,1).ConvertToYV12()

The encoder expects a valid rate/scale.

juGGaKNot
1st May 2009, 19:23
There is a table of accepted rates part-way down this page (http://labs.divx.com/node/6992).

Try forcing the rate unambiguously:

AVIsource("movie.avi", fps = 30, audio = false).AssumeFPS(30,1).ConvertToYV12()

The cli is only for uncompressed avi input, is the script needed ?

DigitAl56K
1st May 2009, 19:30
The command line encoder accepts AVI, but currently it does not use the ICDecompress* calls to unpack frames through VFW decompressors, so only common RAW formats are accepted directly (e.g. 4CC's are one of YV12, IYUV, YUY2, YVYU, UYVY, BGR24, BGR32). If you have one of these formats you can pass the AVI file directly to the encoder but dwRate and dwScale (which define the frame rate in the AVI header) must also have acceptable values.

It's certainly very easy to pass AVI files through AVISynth via AVISource(), which will do any decompression, and then force the correct dwRate/dwScale using AssumeFPS().

Dark Shikari is correct in that the encoder will work with YV12 color internally, so you can either perform any necessary conversion using AVISynth or allow the CLI encoder to handle that for you.

Selur
1st May 2009, 19:39
does the cli encoder support input via pipe (stdin) ?

juGGaKNot
1st May 2009, 19:59
The command line encoder accepts AVI, but currently it does not use the ICDecompress* calls to unpack frames through VFW decompressors, so only common RAW formats are accepted directly (e.g. 4CC's are one of YV12, IYUV, YUY2, YVYU, UYVY, BGR24, BGR32). If you have one of these formats you can pass the AVI file directly to the encoder but dwRate and dwScale (which define the frame rate in the AVI header) must also have acceptable values.

It's certainly very easy to pass AVI files through AVISynth via AVISource(), which will do any decompression, and then force the correct dwRate/dwScale using AssumeFPS().

So all is k framerate wise with my cfg

echo AVIsource("%mypath%\%mymovie%.avi") >> "%mypath%\temp2\%mymovie%.avs"
echo Crop(0,0,-0,-0) >> "%mypath%\temp2\%mymovie%.avs"
echo ConvertToYV12() >> "%mypath%\temp2\%mymovie%.avs"

THNX

DigitAl56K
1st May 2009, 20:41
does the cli encoder support input via pipe (stdin) ?

The current version does not, but the next update will.

@juGGaKNot: I didn't understand your last reply, are you saying "It works now!" or "My framerate looks okay and it still isn't working"?

juGGaKNot
1st May 2009, 22:00
@juGGaKNot: I didn't understand your last reply, are you saying "It works now!" or "My framerate looks okay and it still isn't working"?

It works, AVISource dees the decompression, with no fps in the script all is k.

The current version does not, but the next update will.

What will the next version add/release date ? :)