View Full Version : Add another Target Size to Bitrate Calc?
FreQi
27th September 2006, 01:36
Does anyone know how I can add another Target Size to the Bitrate Calculator that's part of the XviD codec configuration? It has 665600 (650mb), 716800 (700mb), 1331200 (1.3gb) and 1433600 (1.4gb) in there now, but I want to add 179200 (175mb), 238592 (233) and 358400 (350mb).
Is there a way?
BigDid
27th September 2006, 02:48
Does anyone know how I can add another Target Size to the Bitrate Calculator that's part of the XviD codec configuration? It has 665600 ...but I want to add 179200 (175mb), 238592 (233) and 358400 (350mb).
Hi,
If the question is how to retain other sizes, I guess you will have to ask to devs that makes xvid builds like Koepi or celtic_Druid cause it seems hardcoded.
If instead the question is how can I use the calculator with sizes different from these included? just type in the target size box the requested size (in Kb).
Did
celtic_druid
27th September 2006, 04:25
add:
SendDlgItemMessage(hDlg, IDC_BITRATE_TSIZE, CB_ADDSTRING, 0, (LPARAM)"179200");
SendDlgItemMessage(hDlg, IDC_BITRATE_TSIZE, CB_ADDSTRING, 0, (LPARAM)"238592");
SendDlgItemMessage(hDlg, IDC_BITRATE_TSIZE, CB_ADDSTRING, 0, (LPARAM)"358400");
to vfw/src/config.c
FreQi
27th September 2006, 04:46
@BigDid, I was asking the first of your questions, and based on celtic_druid's reply, I'm afraid the solution falls out of range of my abilities.
I therefore defer to Koepi, or anyone else that can have celtic_druid's code added ;]
celtic_druid
27th September 2006, 07:03
Try: http://celticdruid.no-ip.com/test/xvidvfw.7z
FreQi
27th September 2006, 18:35
Awes. I replaced the dll in Windows\System32\ with the one you posted and poof, I have three more options in my Target Size DDL. Thank you much.
Now I just have to hope the UI for the Encoder doesn't change in future versions, or that it gets into the official source ;]
Prettz
27th September 2006, 20:00
add:
SendDlgItemMessage(hDlg, IDC_BITRATE_TSIZE, CB_ADDSTRING, 0, (LPARAM)"179200");
SendDlgItemMessage(hDlg, IDC_BITRATE_TSIZE, CB_ADDSTRING, 0, (LPARAM)"238592");
SendDlgItemMessage(hDlg, IDC_BITRATE_TSIZE, CB_ADDSTRING, 0, (LPARAM)"358400");
to vfw/src/config.c
Wow. Nice answer.
With that amount of effort you could have just pasted that code in there for him and been done with it ;)
BigDid
27th September 2006, 20:05
Awes. I replaced the dll in Windows\System32\ with the one you posted and poof, I have three more options in my Target Size DDL. Thank you much.
I would like to associate with FreQi and extend my thanks to Celtic_Druid.
For the (quite) short time being on this board and as far as I recall, each time somebody or myself have asked Celtic something he could do or answer, he freely gave time and/or efforts to find or give solutions.
Again thank you very very much. Cheers.
Didier
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.