November 21, 2009, 14:50:09 *
Speed Demos ArchiveWelcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
Pages: 1 ... 55 56 [57] 58 59 ... 89
Reply Send this topic Print
Author Topic: anri-chan  (Read 50047 times)
nate
Administrator


PRYING OPEN MY THIRD EYE


View Profile WWW
« Reply #840 on: June 20, 2008, 12:58:01 »
Reply with quoteQuote

ahh, now i see what happened ... well, doing it this way breaks mvbob without loading all of its support files like that, which is inconvenient for me (and probably only for me) when using anri-chan like a kit i can install on a given machine and immediately start encoding. but this is definitely better overall so i'm not going to change anything or recommend any change at this time. (i'll probably look into setting that variable in the registry that supposedly contains the path to the avisynth plugins directory.)

however things are not looking good on the wine front. while all of the anri-chan components seem to work properly, anri-chan itself does not. first of all as far as i can tell there is no support for | inside batch scripts. for some reason it works fine outside but nothing i do will make it work inside a batch - wine's cmd is treating it like bash would a semicolon. this may be because you're supposed to do like wine someprogram | wine someotherprogram in the unix shell instead (which works; i've already converted one of snow's encoding batches over to bash). possible rationale: batch language is an abomination and this forces people to use unix shell language instead.

i hacked together some replacement code (no |) for setting the desktop variable:

Code:
XCOPY /Y /Q "%anri_dir%anridesktoploc.bat" "%appdata%" > NUL
DEL %anri_tmp% > NUL
REG QUERY "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /V "Desktop" > %anri_tmp%
"%anri_dir%sed" -n s/.\+REG_SZ.\+\\\(.\+\)[^\\]*/\1/gp %anri_tmp% >> "%appdata%\anridesktoploc.bat"
CALL "%appdata%\anridesktoploc.bat" > NUL 2> NUL
DEL "%appdata%\anridesktoploc.bat" %anri_tmp%

but things like tee and
Code:
ECHO %projname%|findStr /c:"%%">nul
are probably totally out.

i've thought about this a bit and i can see two options:

1) tear down anri.bat to work in wine, save as anriwine.bat, check for wine environment on running anri.bat, if yes then switch to anriwine.bat.
pro: don't have to limit anri for windows's functionality due to wine.
con: maintaining two separate scripts is lame and probably not a good use of developer time.
- anriwine.bat will inevitably fall behind anri.bat.
- addresses symptom, not cause (batch language is a dead end).

2) completely reimplement anri-chan in unix shell language (bash).
pro: if all goes as planned (i.e. bash.exe is good), we'll end up with one version of anri-chan for all modern computer operating systems on x86 hardware.
- bash is much easier to maintain and to extend than nt batch.
- unix users don't lose out due to poor implementation of batch in wine.
con: "reimplement" is easier said than done. does anyone actually have time to do this? i'm not so sure even i do ...

thoughts? btw i tested nes mono and it appeared to be working fine ...
Report to moderator   Logged

for help with any terms i may have used in this post please see the glossary.
tycho102


Some people think they can outsmart me.


View Profile Email
« Reply #841 on: June 21, 2008, 11:48:17 »
Reply with quoteQuote

just thought i'd report the good news about anri-chan and friends under unix with wine.

Well, that's interesting. I didn't even try using wine for Vdub and anri-chan.

I used to think avidemux was pretty good, but then I attempted to actually use it for editing and encoding. Having all the codecs hard-coded into the source might seem like a really good idea to someone, somewhere, at some point.

However, I do seem to get excellent performance from mencoders's command-line encoding options. Significantly better than anything else that I have used, including avidemux. I'm not sure if there's just lower overhead for the host program, or if the parallel threading is more intricate.

I might just give wine an attempt or two. Thanks for the notice, Nate!
Report to moderator   Logged
ballofsnow
Moderator


SDA techie


View Profile Email
« Reply #842 on: June 21, 2008, 17:41:46 »
Reply with quoteQuote

Bash.exe.... you have to install cygwin, right?
Report to moderator   Logged
nate
Administrator


PRYING OPEN MY THIRD EYE


View Profile WWW
« Reply #843 on: June 23, 2008, 10:05:19 »
Reply with quoteQuote

Well, that's interesting. I didn't even try using wine for Vdub and anri-chan.
yeah, me neither, for years. was thinking "no way it'll work". turns out that was wrong.

Bash.exe.... you have to install cygwin, right?
nope.
Report to moderator   Logged

for help with any terms i may have used in this post please see the glossary.
ballofsnow
Moderator


SDA techie


View Profile Email
« Reply #844 on: June 24, 2008, 10:21:17 »
Reply with quoteQuote

If I extract bash.exe from cygwin it has dll dependencies.. Which are you using?
Report to moderator   Logged
nate
Administrator


PRYING OPEN MY THIRD EYE


View Profile WWW
« Reply #845 on: June 24, 2008, 11:28:17 »
Reply with quoteQuote

can't find the one i was using before - in disarray at the moment as i'm moving house - but you might try these:

http://www.steve.org.uk/Software/bash/
http://win-bash.sourceforge.net/
Report to moderator   Logged

for help with any terms i may have used in this post please see the glossary.
nate
Administrator


PRYING OPEN MY THIRD EYE


View Profile WWW
« Reply #846 on: June 28, 2008, 10:44:42 »
Reply with quoteQuote

updated my blog about wine.
Report to moderator   Logged

for help with any terms i may have used in this post please see the glossary.
ballofsnow
Moderator


SDA techie


View Profile Email
« Reply #847 on: July 04, 2008, 12:20:34 »
Reply with quoteQuote

Slowly continuing work post beta 2. Let's compile a list of things that need to be done. Smiley face indicates change is done.

(list moved here)


Anything else?
« Last Edit: July 04, 2008, 19:52:36 by ballofsnow » Report to moderator   Logged
nate
Administrator


PRYING OPEN MY THIRD EYE


View Profile WWW
« Reply #848 on: July 04, 2008, 14:31:13 »
Reply with quoteQuote

having trouble thinking of anything else right now, lol. i went through the topics recently too. i guess after about a year anrichan is nearly mature. of course hd capture is coming but we can't deal with something we've never seen before so we're set for now i think.

what are your thoughts on 4 being bash?

edit: just saw your edit. ipod compatibility is already there; i haven't tested any of the others, but i seem to remember hearing that they work fine. i mean there was that topic recently about some run not being compatible with some console and it was because it was done with an old version of anrichan (petrie was the runner; can't remember the run).
Report to moderator   Logged

for help with any terms i may have used in this post please see the glossary.
ballofsnow
Moderator


SDA techie


View Profile Email
« Reply #849 on: July 04, 2008, 14:36:20 »
Reply with quoteQuote

what are your thoughts on 4 being bash?
Well, batch can't be long-term since it's so limited, and anri-chan is only improving. I don't have enough experience with bash, but it seems like it can handle the more complex tasks. "Anri-bash" sounds good to me.
Report to moderator   Logged
nate
Administrator


PRYING OPEN MY THIRD EYE


View Profile WWW
« Reply #850 on: July 04, 2008, 14:52:09 »
Reply with quoteQuote

ok ... i may create some routines to automatically convert the code then. not sure when i'll get the time but who knows. i guess when 3 final comes out we can declare a freeze on batch development and try to get 4 out the door asap.

i think when you compare the two side by side you'll quickly overcome any lack of experience you have with bash.
Report to moderator   Logged

for help with any terms i may have used in this post please see the glossary.
AnubisGI


View Profile
« Reply #851 on: July 04, 2008, 18:23:12 »
Reply with quoteQuote

Hey nate, i need anri-chan to output audio in aac-lc(for my mp4 player)

Is there a quick fix for this?

I can do it in meGUI but damn it's a hassle.
Report to moderator   Logged
ballofsnow
Moderator


SDA techie


View Profile Email
« Reply #852 on: July 04, 2008, 18:50:58 »
Reply with quoteQuote

I can do it in meGUI but damn it's a hassle.
Why is it a hassle? It accepts both wav and mp3, among other things I'm sure.

Anri-chan uses Nero Digital AAC, adaptive bitrate, mp4 container.
Report to moderator   Logged
AnubisGI


View Profile
« Reply #853 on: July 04, 2008, 19:03:32 »
Reply with quoteQuote

Well i first need to run anri-chan to get the avs scripts and then in meGui specify output locations for both audio and video(and make sure the correct stuff is being used) and then join the audio and video together. I know anri-chan joins but atleast thats automated.
Report to moderator   Logged
ballofsnow
Moderator


SDA techie


View Profile Email
« Reply #854 on: July 04, 2008, 19:07:31 »
Reply with quoteQuote

Not really sure what your goal is. Anri-chan has always output aac-lc.
Report to moderator   Logged
Pages: 1 ... 55 56 [57] 58 59 ... 89
Reply Send this topic Print
Jump to: