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. |
|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#42 | Link | |
Software Developer
![]() Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,245
|
Quote:
![]()
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ |
|
![]() |
![]() |
![]() |
#46 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,688
|
Update:
WhisX now quotes filenames (hopefully) as necessary; and a few cosmetics (command line copyable; pyramide checkbox with optical feedback to B-reference checkbox). No version tracking. Just download (again). Last edited by LigH; 28th August 2008 at 08:10. |
![]() |
![]() |
![]() |
#47 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,688
|
Update:
Settings management via INI files; an INI file with the same name as the application (e.g. "WhisX.ini") in the application folder is used as default settings during startup. |
![]() |
![]() |
![]() |
#48 | Link |
Software Developer
![]() Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,245
|
Why you don't run the encoder directly and redirect the console output to the GUI application? Is that planned?
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ |
![]() |
![]() |
![]() |
#49 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,688
|
I create the batch file on purpose: On one hand, both CLI and GUI are expected to be buggy; on the other, it is not yet worth the efforts, the next encoder may have a remarkably different set of options; and finally, you don't really need a GUI, do you?
![]() Also it is not easy anymore to find out how to redirect console outputs to Delphi... most Delphi websites are already dead... |
![]() |
![]() |
![]() |
#50 | Link | |
Software Developer
![]() Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,245
|
Quote:
![]() Basically I ported the code from this article to Delphi and added a few things I needed for LameXP: http://support.microsoft.com/kb/190351/de
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ |
|
![]() |
![]() |
![]() |
#51 | Link |
Software Developer
![]() Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,245
|
LigH, here is a simple Demo application I just hacked together:
http://www.mediafire.com/?mamwiyubawt (Sources included, the EXE was compiled with Delphi 7.0 Professional) EDIT: Re-uploaded an improved version. Link has been updated! EDIT2: Re-uploaded an improved version - again. Link has been updated!
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ Last edited by LoRd_MuldeR; 28th August 2008 at 17:17. |
![]() |
![]() |
![]() |
#53 | Link |
HDConvertToX author
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
|
btw i added support in AutoMKV, i just wait approval from DivX!
BHH
__________________
HDConvertToX: your tool for BD backup MultiX264: The quick gui for x264 AutoMen: The Mencoder GUI AutoWebM: supporting WebM/VP8 |
![]() |
![]() |
![]() |
#54 | Link | |
Software Developer
![]() Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,245
|
Quote:
cmd.exe /c "C:\Program Files (x86)\DivX\DivX H.264 Codec CLI\bin\WhisX.bat" (But the log filter would need some adjustment for divx264.exe -- done, see post above) @ DivX developers: It seems the DivX CLI encoder is missing to call fflush() after writing the progress line to STDOUT/STDERR. This will cause a nasty delay when redirecting the console output... x264 does do it the following way: Code:
if( i_frame_total ) { int eta = i_elapsed * (i_frame_total - i_frame) / ((int64_t)i_frame * 1000000); i_progress = i_frame * 1000 / i_frame_total; fprintf( stderr, "encoded frames: %d/%d (%.1f%%), %.2f fps, eta %d:%02d:%02d \r", i_frame, i_frame_total, (float)i_progress / 10, fps, eta/3600, (eta/60)%60, eta%60 ); } else fprintf( stderr, "encoded frames: %d, %.2f fps \r", i_frame, fps ); fflush( stderr ); // needed in windows
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ Last edited by LoRd_MuldeR; 28th August 2008 at 20:25. |
|
![]() |
![]() |
![]() |
#55 | Link |
Registered User
Join Date: Nov 2002
Location: San Diego, CA
Posts: 936
|
LoRd_MuldeR & LigH: Wow, you guys are on fire today!
LoRd_MuldeR: I'll log the fflush() issue. Side: I already have an issue logged where some of the -help is written to stderr instead of stdout. LigH: I have a suggestion for your app! You could support a wider range of inputs by doing this:
After writing these intermediary files you can open them with the windows AVIFile APIs and check the rate/scale of the video stream to make sure it's valid and if not automatically apply something like ConvertFPS with the nearest allowed rate/scale. You could also check the width and height and apply AddBorders and/or a resize if necessary, then finally pass this AVS file to the encoder. If you want to get really fancy you could add ConvertToYV12 to the AVS script and get the picture in a known format through the AVIFile interfaces, then apply a routine to determine a crop window to remove borders, checking various frames throughout the file. I think you can also get PCM samples easily this way so you could write a WAV file then pass it through an audio encoder and hook up mkvmerge to bring everything together. buzzqw: I sent you an e-mail, I'd love to see AutoMKV support this! LoRd_MuldeR & Dark Shikari: Thanks for the comparison vid, and for keeping the conversation on track! I haven't had time to thoroughly investigate it yet but x264's new psy does seem impressive ![]() ![]()
__________________
DivX Plus Web Player 2.0 (MKV & AVI) (Embed generator) DivX H.264 Decoder with DXVA support Developer portal Last edited by DigitAl56K; 28th August 2008 at 20:31. |
![]() |
![]() |
![]() |
#56 | Link |
<The VFW Sheep of Death>
Join Date: Dec 2004
Location: Deathly pasture of VFW
Posts: 1,149
|
I'm disappointed that there is no constant quality mode, which is a necessity for my purposes. Did I just miss a commandline option or something?
__________________
Recommended all-in-one stop for x264/GCC needs on Windows: Komisar x264 builds! |
![]() |
![]() |
![]() |
#57 | Link |
Registered User
Join Date: Nov 2002
Location: San Diego, CA
Posts: 936
|
DeathTheSheep:
Constant quality is not available because it doesn't allow management of rate spikes. Keep in mind that the encoder is designed to create CE-friendly streams. 1-Pass target-quality on the other hand is one of the most requested features at present. |
![]() |
![]() |
![]() |
#58 | Link | |
Software Developer
![]() Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,245
|
Quote:
Obviously 1-Pass makes it hard to implement VBV restrictions, but it should be possible to run a simple 1-Pass CQ encode without any VBV restrictions at least...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ |
|
![]() |
![]() |
![]() |
#59 | Link | |
Registered User
Join Date: Nov 2002
Location: San Diego, CA
Posts: 936
|
Quote:
![]() However, we are taking feedback about all requested future options. How important to you is constant quality mode and what are the situation under which you'd want to use it? |
|
![]() |
![]() |
![]() |
#60 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,802
|
Latest StaxRip beta has DivX H.264 support. Compressibility check is missing because there is no constant quality mode. I use crf 22 so not having a constant quality mode is a show stopper for me. Since the encoder is privat + alpha it will only show up if the encoder is installed. GUI looks as follows:
![]() For those who wonder why I often use the TreeView instead of real controls, reasons are: Every option requires a single line code only so it helps to fight bloat, it's quick and easy to code, easy to maintain, easy to change, easy to extend and automatically clean and polished.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists Last edited by stax76; 28th August 2008 at 22:28. |
![]() |
![]() |
![]() |
Tags |
cli, divx, encoder, h.264, tutorial |
Thread Tools | Search this Thread |
Display Modes | |
|
|