Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Display Modes
Old 1st May 2009, 18:31   #1  |  Link
juGGaKNot
Registered User
 
juGGaKNot's Avatar
 
Join Date: Feb 2008
Posts: 659
DivX 264 Profile

Hi people

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

Quote:
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 :

Quote:
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 :

Quote:
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

Quote:
-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 )

Quote:
AVIsource("movie.avi", fps = 30, audio = false)
juGGaKNot is offline   Reply With Quote
Old 1st May 2009, 19:33   #2  |  Link
juGGaKNot
Registered User
 
juGGaKNot's Avatar
 
Join Date: Feb 2008
Posts: 659
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.



BTW : divx264 does not need conversion to yv12 as x264, this will help quality no ?
juGGaKNot is offline   Reply With Quote
Old 1st May 2009, 19:37   #3  |  Link
Comatose
Registered User
 
Join Date: Dec 2007
Posts: 639
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.
Comatose is offline   Reply With Quote
Old 1st May 2009, 19:48   #4  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Location: Claremont, CA
Posts: 7,250
Quote:
Originally Posted by juGGaKNot View Post
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.



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.
Dark Shikari is online now   Reply With Quote
Old 1st May 2009, 20:01   #5  |  Link
juGGaKNot
Registered User
 
juGGaKNot's Avatar
 
Join Date: Feb 2008
Posts: 659
Quote:
Originally Posted by Comatose View Post
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.

Quote:
Originally Posted by Dark Shikari View Post
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.
juGGaKNot is offline   Reply With Quote
Old 1st May 2009, 20:22   #6  |  Link
DigitAl56K
Registered User
 
Join Date: Nov 2002
Location: San Diego, CA
Posts: 914
There is a table of accepted rates part-way down this page.

Try forcing the rate unambiguously:
Code:
AVIsource("movie.avi", fps = 30, audio = false).AssumeFPS(30,1).ConvertToYV12()
The encoder expects a valid rate/scale.
DigitAl56K is offline   Reply With Quote
Old 1st May 2009, 20:23   #7  |  Link
juGGaKNot
Registered User
 
juGGaKNot's Avatar
 
Join Date: Feb 2008
Posts: 659
Quote:
Originally Posted by DigitAl56K View Post
There is a table of accepted rates part-way down this page.

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 ?
juGGaKNot is offline   Reply With Quote
Old 1st May 2009, 20:30   #8  |  Link
DigitAl56K
Registered User
 
Join Date: Nov 2002
Location: San Diego, CA
Posts: 914
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.
DigitAl56K is offline   Reply With Quote
Old 1st May 2009, 20:39   #9  |  Link
Selur
member of flaskmpeg.info
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 1,952
does the cli encoder support input via pipe (stdin) ?
__________________
german MeGui Essentials, sx264
Selur is offline   Reply With Quote
Old 1st May 2009, 20:59   #10  |  Link
juGGaKNot
Registered User
 
juGGaKNot's Avatar
 
Join Date: Feb 2008
Posts: 659
Quote:
Originally Posted by DigitAl56K View Post
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
juGGaKNot is offline   Reply With Quote
Old 1st May 2009, 21:41   #11  |  Link
DigitAl56K
Registered User
 
Join Date: Nov 2002
Location: San Diego, CA
Posts: 914
Quote:
Originally Posted by Selur View Post
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"?
DigitAl56K is offline   Reply With Quote
Old 1st May 2009, 23:00   #12  |  Link
juGGaKNot
Registered User
 
juGGaKNot's Avatar
 
Join Date: Feb 2008
Posts: 659
Quote:
Originally Posted by DigitAl56K View Post
@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.

Quote:
Originally Posted by DigitAl56K View Post
The current version does not, but the next update will.
What will the next version add/release date ?

Last edited by juGGaKNot; 1st May 2009 at 23:08.
juGGaKNot is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 18:59.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.