Username:
B
I
U
S
"
url
img
#
code
sup
sub
font
size
color
smiley
embarassed
thumbsup
happy
Huh?
Angry
Roll Eyes
Undecided
Lips Sealed
Kiss
Cry
Grin
Wink
Tongue
Shocked
Cheesy
Smiley
Sad
<- 1  -   of 69 ->
--
--
List results:
Search options:
Use \ before commas in usernames
Edit history:
Psonar: 2008-04-12 11:07:03 am
Long live SF64!
HAH! Here's a sample of what I've been able to do by adding some color to anrichan...



First, I'd like to ask for feedback - any ideas about colors?  The default scheme of gray text on black window can be changed as well.  Anri-chan's outputs are streamlined through 3 output functions that I listed code for below, out_cls, out_info, out_error, and out_section.  Each of those is demonstrated in the picture above.

[hr]
Interestingly, I couldn't get ANSI.COM or ANSI.SYS to work on my machine, so I figured if I'm having this much trouble with it it's not going to be worth troubleshooting on other people's systems as well... So anyway, I used another program called CTEXT.EXE which I found here.  Unfortunately, about 100 things carry the name CTEXT, so it's not really a unique enough name...anyway.  This screenshot shows its coloring capabilities.  While ANSI can completely control the display of the entire command window (using control of cursor position), CTEXT simply modifies the color of whatever you put between it's tags.

CTEXT uses a simple tag system to color text, not unlike HTML or YABB tags.  There are plenty of examples below.  These are the modifications I made to anri.bat to allow the display above:

Lines 38-46
Code:
(SET anri_ver=3)
(SET in_anrichan=y)
SET anri_dir=%~dp0
SET anri_path=%~dp0anri.bat
(SET dgmpgdec_dir=dgmpgdec149)
(SET vdub=virtualdub-1.7.6)
(SET CECHO="%anri_dir%\CTEXT.exe")
(SET RESET_COLOR=%CECHO% {07})
COLOR 07

Lines 1383-1414
Code:
:out_cls
CLS
ECHO.
%CECHO% "{81}==============================================================================={\n}"
%CECHO% "{80}                {8F}metroid 2002 speed demos archive anri-chan %anri_ver%{80}                   {\n}"
%CECHO% "{80}       {8B}http://www.metroid2002.com/{80}     {8B}http://speeddemosarchive.com/{80}           {\n}"
%CECHO% "{81}==============================================================================={\n}"
ECHO.
%RESET_COLOR%
Goto :EOF

:out_info
%CECHO% "{0F}%*{\n}"
%RESET_COLOR%
REM ECHO.
GOTO :EOF

:out_error
%CECHO% "{CF}[!]{\n}"
%CECHO% "{CF}[!]{0C} %*{\n}"
%CECHO% "{CF}[!]{\n}"
%RESET_COLOR%
ECHO.
GOTO :EOF

:out_section
TITLE Anri-chan %anri_ver% - %*
%CECHO% "{09}-------------------------{\n}"
%CECHO% "{0E}%*{\n}
%CECHO% "{09}-------------------------{\n}"
%RESET_COLOR%
ECHO.
GOTO :EOF


As you can see, I used an environment variable to store the full path to CTEXT.exe and then called that variable as %CECHO% throughout anri.bat.  I also created the RESET_COLOR variable, which is necessary because CTEXT tends to be "persistent" even though it comes with a {\n} tag that ought to prevent that kind of behavior.  To use adifferent default color scheme (text/background) , the "07" used by RESET_COLOR and the COLOR command on lines 45 and 46 can be changed.  See Help Color for color codes.

What do you think?

EDIT:
Turns out my first post on coloring the command window had a link to a program that was inspired by the program I used above... and they call theirs CECHO.EXE... so I guess that one might be the better alternative.

http://www.codeproject.com/KB/recipes/BatchFileColors.aspx

Unfortunately you have to setup a login name there to download the demo, but it was a fairly painless name, email, password thing and they didn't even confirm the email.  If someone can get ANSI, to work, it's much more powerful, but at the same time, these simple solutions are easy to implement and give anri-chan plenty of flare for a console program.
good results, but do we know if they allow it to be redistributed for free?
Edit history:
ballofsnow: 2008-04-12 05:21:06 pm
Cool stuff. imo, the colours need to be more subtle.

I like the white for the explanation, then grey for the question. I don't like the blue/yellow for section titles. The red error messages, maybe have just the text be red, not the [!].


Found another possible issue with Anri-chan: PC game footage at resolution greater than 640x480. Should we force 640x480 for HQ, and have IQ be the original res?
Edit history:
nate: 2008-04-12 06:03:28 pm
you're not going to like what i'm about to say, but i normally have both iq and hq be d1 and then do original res xq. actually usually the xq is small enough to go up as is so i just leave the original avi xq. so it's really a question of: do you want to put xq in anri-chan. if no then iq is native resolution, if yes then iq is downsized to d1. also we need to work on widescreen eventually. for zwei i handled it by checking the aspect ratio by dividing the height by the width (in one of those one ? two : three forms). i guess the only widescreen aspect ratio we need to support is 16:9, but feel free to correct me if i'm wrong. will need to be extremely careful about the calibration of the cutoff ratio. i strongly recommend against asking the user.
Edit history:
ballofsnow: 2008-04-12 10:15:23 pm
How bout original res for IQ if min q is hit for HQ? That's with XQ implemented. And of course, if IQ orig res min q is hit, skip XQ.
sounds like a plan.
Edit history:
ballofsnow: 2008-04-13 01:03:20 am
This plan and the widescreen thing is going to require a major rework of how/when the AviSynth files are written. Also going to have to account for non 4:3 aspect ratios. (1280x1024)


beta2 - Ask user if PC game. (set D1 F1 3D prog)
beta2 - Move encoded videos to finished folder.
beta2 - Add shortcuts to start menu.
why is that? i was thinking the widescreen determination could be done entirely inside each .avs much like ntsc/pal and d1/d4 is done now. it would come before all of them and set a variable widescreen to true or false. then it would factor in every time width/height is talked about as necessary. the xq stuff i can say less about but again i'm not sure why it affects anything. it just seems to me like you would always generate _XQ.avs if the user says yes and then skip encoding it if the results of native iq are good (writing the new d1 _IQ.avs and encoding that if not).
Edit history:
ballofsnow: 2008-04-13 01:56:14 am
What kind of widescreen are we talking about? Input files that have res like 1920x1080, or seemingly 4:3 videos that have a 16x9 flag in them (dvd).

What resolution would we use for widescreen anyways? Do we hardcode the width, and apply the aspect ratio to the height?


edit- There may have to be different resizing code depending on whether it's console vs PC game footage.

edit- Maybe use the new DGMPGDec to get aspect ratio flag? But that's only DVD...

edit- Also worth noting is that you can encode H.264 with an aspect ratio.
i wasn't even thinking about dvd at all. i don't care about it either - you can mess with it if you want, but i think people who are recording widescreen things on dvd are few and far between.

res could be handled same as it is now i guess, just with a different set of values for d1 and d4. 640x360 for d1 and half that for d4 i guess. this makes our xq plan look better too.
Long live SF64!
Just a sidenote - the ability to handle widescreen DVD would allow anrichan to be used on both full and widescreen commercial DVDs.  This is by no means a priority for anrichan, but it's a possible (and powerful) application outside of gaming.

I'm making progress with AutoIt - I can now run anrichan with the command window hidden, using autoIt to read the StdOut of AnriChan and write responses to anrichan's StdIn.

The program I used to color the command window is on a page that the author labeled as freeware, including a "use as is - at your own risk" disclaimer.
sure it's freeware but does it say anything about redistribution?

i'm ambivalent about the widescreen dvd thing because i don't watch very many movies and rip none.
Edit history:
Psonar: 2008-04-15 06:47:42 am
Long live SF64!
I've left a message on the project forum at CodeProject regarding distribution of cecho.exe.  From the looks of it, the author intends for his name and email address to be mentioned wherever the software is used...he includes it in all demo outputs - in comments at the top of the demo.bat, and at the top of the "cecho.exe /?" help dialog.  That help dialog is:

Code:
C:\Program Files\anrichan3_beta1>cecho /?
Enhanced echo command with colors support
by thomas_polaert@yahoo.fr

cecho message

        {{              = Escape character
        {\n\t}          = New line - tab
        {0x07}          = Hex ASCII code
        {0A}            = Hex color code
        {red on black}  = Color information

Available colors:
        0 = black       8 = gray
        1 = navy        9 = blue
        2 = green       A = lime
        3 = teal        B = aqua
        4 = maroon      C = red
        5 = purple      D = fuchisa
        6 = olive       E = yellow
        7 = silver      F = white


Here's my latest attempt at coloring anrichan's output:



Here I've used black on gray as the default and black as the background for the header.  I'm still not sure this is a winner, but I wanted to push in a different direction to get more feedback.

Snow, if you'd rather play with the colors, the color tags aren't difficult.  With cecho plain text is supported so the code is much more understandable.  Here's the out functions:

Code:
:out_cls
CLS
%CECHO% "{gray on black}                                                                               {\n}"
%CECHO% "{blue on black}==============================================================================={\n}"
%CECHO% "{white on black}                metroid 2002 speed demos archive anri-chan %anri_ver%                   {\n}"
%CECHO% "{aqua on black}       http://www.metroid2002.com/     http://speeddemosarchive.com/           {\n}"
%CECHO% "{blue on black}==============================================================================={\n}"
ECHO.
%RESET_COLOR%
Goto :EOF

:out_info
%CECHO% "{white on gray}%*{\n}"
%RESET_COLOR%
REM ECHO.
GOTO :EOF

:out_error
%CECHO% "{maroon on gray}[!]{\n}"
%CECHO% "{maroon on gray}[!] {maroon on silver}%*{\n}"
%CECHO% "{maroon on gray}[!]{\n}"
%RESET_COLOR%
ECHO.
GOTO :EOF

:out_section
TITLE Anri-chan %anri_ver% - %*
%CECHO% "{teal on gray}-------------------------{\n}"
%CECHO% "{navy on gray}%*{\n}
%CECHO% "{teal on gray}-------------------------{\n}"
%RESET_COLOR%
ECHO.
GOTO :EOF


And I think all my quotes are superfluous (old habits).  Any thoughts on the colors? Is that any better snow?  Feel free to draft up what the output would look like using a word processor or something and I can implement it in the code.  Or I was even thinking about making a color preferences file and then a simple colorConfig GUI allowing users to customize their anri-chan... just because... what other console program has color options?  That and if it were a GUI that would be downright hilarious in my opinion - but that's my sense of humor for ya.
hahaha. yeah, i agree. would be awesome.
Edit history:
ballofsnow: 2008-04-15 05:38:36 pm
Quote:
Is that any better snow?

i LIKE THE NEW *capslock* color scheme. It's a big improvement from the last. Easy on the eyes too.
- XQ implemented.
- Correct avi resizing in case of non 4:3 videos.
- "Is this a PC game?" asked after avi input. Skip DFnD questions, use D1 F1 3D.

Psonar, do you plan on updating the KB with your colour code? I'd like to put it in for the next beta.
Edit history:
Psonar: 2008-04-21 07:26:31 am
Long live SF64!
I'd be glad to add in the colors... I guess I need to get access to the kb and whatnot then...I'll pm nate like you said...

The Cecho.exe software that makes it possible is confirmed to be open source in every meaning of the term.... here's the response from the author:

http://i92.photobucket.com/albums/l35/flutefreak7/freetodistribute-1.png

...so there you go.  Any further tweaks to the colors, or do they look good just like they are?
Edit history:
ballofsnow: 2008-04-20 04:59:06 am
Up to you on tweaking the colours. I like 'em so far.

Can you upload cecho or provide a link so that I have the same exact one as you?
Edit history:
Psonar: 2008-04-21 11:51:25 pm
Long live SF64!
Ok, I've uploaded the Cecho.exe file...

http://speeddemosarchive.com/kb/index.php/Image:Cecho.zip

I guess I did it properly...

I've also edited anri.bat on the wiki to include the color code... affected areas are the credits, where I added my name, the initialization area where I add "Color Initialization" which has a lot of comments and a few variables are set, and then the output section where I've inserted my versions of all the "out" functions.  I've commented everything, so you should be able to find my changes by simply searching for psonar or "Brett Ables."

Hopefully that takes care of it - let me know if I messed anything up!

edit: Comparison of my changes to prev. version
Edit history:
ballofsnow: 2008-04-23 12:03:06 am
Awesome.

Hope to get beta 2 out within a week or two.
Edit history:
ballofsnow: 2008-05-05 02:53:15 am
Was going to get beta 2 out.. but then decided to work on:

- Rip specific title numbers. (must be in advanced mode (ini.bat))

Works pretty seamlessly since it only needs to edit pgclist.txt.


Beta 2 by next week perhaps..
Edit history:
nate: 2008-05-05 03:26:31 am
sweet. what are yalls thoughts on this?
Edit history:
TheThrillness: 2008-05-05 07:21:50 pm
thethrillness.blogspot.com
Sorry for my absence. Well anyway i'm now on anri 3 and thank god that 4 window choice in virtualdub and stuff is out.

I do however have a problem if you could help with. I have a video i made and when i encode i get the following error.

error: 2pass failed to converge
target: 2040, expected 1404.55

Is there a way i can get the 2 pass encode to work for better quality?

I looked in the folder with anri-chan and got this text file labelled,

x264pass2_stdout

If that helps i can post what that conatins (60kb)

Here's a snip it of the first line.

avis [info]: 640x480 @ 29.97 fps (6806 frames)
x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2 SSE3 SSSE3 Cache64
x264 [warning]: Error: 2pass curve failed to converge
x264 [warning]: target: 2048.00 kbit/s, expected: 1404.55 kbit/s, avg QP: 19.0001
x264 [warning]: try reducing target bitrate or reducing qp_min (currently 19)
mp4 [info]: initial delay 100 (scale 2997)
encoded frames: 7/6806 (0.1%), 148.94 fps, eta 0:00:45 
encoded frames: 14/6806 (0.2%), 148.94 fps, eta 0:00:45 
encoded frames: 21/6806 (0.3%), 168.00 fps, eta 0:00:40 
encoded frames: 28/6806 (0.4%), 74.67 fps, eta 0:01:30 
encoded frames: 35/6806 (0.5%), 44.76 fps, eta 0:02:31 
encoded frames: 41/6806 (0.6%), 38.00 fps, eta 0:02:58 
encoded frames: 48/6806 (0.7%), 34.12 fps, eta 0:03:18 
encoded frames: 55/6806 (0.8%), 28.62 fps, eta 0:03:55 
encoded frames: 62/6806 (0.9%), 24.64 fps, eta 0:04:33 
encoded frames: 69/6806 (1.0%), 21.23 fps, eta 0:05:17 
encoded frames: 75/6806 (1.1%), 19.75 fps, eta 0:05:40
Edit history:
ballofsnow: 2008-05-05 10:11:07 pm
It's normal. Your video hit the SDA quality limit and some bitrate was saved for less file size.

The message is actually a warning, not an error that causes the encode to fail.
Edit history:
TheThrillness: 2008-05-05 11:53:28 pm
thethrillness.blogspot.com
Quote:
It's normal. Your video hit the SDA quality limit and some bitrate was saved for less file size.

The message is actually a warning, not an error that causes the encode to fail.


Ah right. Thanks for clearing that up.

Would i have any success with Insane quality or can i modify the scripts or something?

It's just i want more quality as it's actually for a music video i spent hours on.

Virtualdub maybe for compressing mp4?