I try to encode a NTSC sequence which is interlace and when i use the option
-I 2, i have this error:

Rate control can't cope with a video buffer smaller 4 frame intervals

I traced a little bit in the code, and find out that the variable
"field_rate" in ontheflyratectl.cc is not yet initialize and so, the formula
"encparams.bit_rate / field_rate" return a wrong value.

here is the command line i'm using right now:

cat stream.yuv | ./mpeg2enc -f 3 -F 4 -b 6000 -a 2 -s -I 2 -z t -V 1000 -c
-R 2  -o ~/test.m2v

* Does anyone has the same problem?

* Is the option -I 2 even supported in the latest code?

To "fix" the initialization problem i added this live of code in the same
file, in the function void OnTheFlyPass1::Init()

field_rate = 2*encparams.decode_frame_rate;


But then, when i run the program, i've got a segmentation fault at the first
frame (still try to investigate this one)

thanks

Thierry
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to