November 21, 2009, 04:39:06 *
Speed Demos ArchiveWelcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
Pages: 1 ... 86 87 [88] 89
Reply Send this topic Print
Author Topic: anri-chan  (Read 49993 times)
-
Guest


Email
« Reply #1305 on: September 29, 2009, 20:52:41 »
Reply with quoteQuote Modify messageModify

1 - Manually add keyframes at the beginning/end of the statid to allow for precise splitting. Not sure how audio is affected. Downside, iirc, is that the scene change algorithm either doesn't work properly or is disabled altogether. Possible audio desync because of AAC+AAC+AAC.

Not sure if it's still relevant but x264 has an option just for that: --qpfile

To force frames 75 and 1666 to be keyframes, use --qpfile bah.txt where bah.txt contains:
75 I -1
1666 I -1

I haven't been following SDA's latest developments but from what I see from downloaded videos the options seem to be a little bit obsolete/suboptimal. For example qpmin 17/19 is an old relic that actually hurts quite a bit since AQ was introduced ages ago (it causes smooth dark areas to be rather murky). subme=6 + trellis=2 doesn't make much sense (subme=6 is very low, trellis=2 is overkill in comparison). And then there's the issue with using very old x264 builds...

Recently x264 introduced very sensible default values and a preset system (--preset whatever), you might want to take a look at what options it picks to have a starting point (the only option I'd maybe suggest changing from the default presets would be qcomp, raising it a little if you want more constant quality). Of course feel free to experiment. If you want to check out what the presets do manually, just check out x264.c. And a word of warning: they do set bframes and refs, so if you want these bound you'd have to specify them manually for maximum safety (--preset veryslow -r 3 -b 5 for example).
Report to moderator   Logged
nate
Administrator


PRYING OPEN MY THIRD EYE


View Profile WWW
« Reply #1306 on: October 05, 2009, 19:02:24 »
Reply with quoteQuote

yeah, going with a much newer x264 with anri 4. i already use it so you may have seen it pop up here and there. thanks for the input on the other options. i guess we'll have to overhaul the qualities before the final release of anri 4. it ain't 2006 anymore after all.
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 #1307 on: October 31, 2009, 13:38:24 »
Reply with quoteQuote

So I'm running Windows 7 Pro x64 now, fired up the Anri 3b4 installer and found a bug with NMF and lagarith.ini.

First the code:
Code:
REM Set lagarith to yv12
IF DEFINED LOCALAPPDATA (
  REM Vista
  ECHO [settings] > "%LOCALAPPDATA%\VirtualStore\Windows\lagarith.ini"
  ECHO lossy_option=3 >> "%LOCALAPPDATA%\VirtualStore\Windows\lagarith.ini"
) ELSE (
  ECHO [settings] > %WINDIR%\lagarith.ini
  ECHO lossy_option=3 >> %WINDIR%\lagarith.ini
)

The path is the same as in Vista, however something I didn't catch when I wrote above code is that the windows folder may not exist. I caught it now because I did zero video editing until now, and the windows folder was not created.

Easy fix.. just check if the windows folder exists, if it doesn't, create it.
Report to moderator   Logged
ballofsnow
Moderator


SDA techie


View Profile Email
« Reply #1308 on: October 31, 2009, 19:21:57 »
Reply with quoteQuote

Some widescreen code in Anri3b4. Not sure if it breaks any hardware.

http://speeddemosarchive.com/w/index.php?title=Anri-chan/Source/anri.bat&curid=1498&diff=4156&oldid=4155
Report to moderator   Logged
nate
Administrator


PRYING OPEN MY THIRD EYE


View Profile WWW
« Reply #1309 on: October 31, 2009, 22:57:19 »
Reply with quoteQuote

do you think that's ready for a 3b5 release? if so i say we (you ;-[) do it ...
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 #1310 on: November 01, 2009, 13:42:15 »
Reply with quoteQuote

It'd be nice to add the widescreen/audio commentary features and a couple bug fixes. We'll see..

Any reason to still ask if the user wants to encode xvid? Do people still use it?


edit - How close are you to the first release of Anri 4? I probably won't bother with audio commentary. I mainly want to fix a few bugs and update the x264 args.
« Last Edit: November 01, 2009, 15:24:14 by ballofsnow » Report to moderator   Logged
RadxxRyan


RadicalsXeRyan17
View Profile WWW Email
« Reply #1311 on: November 01, 2009, 19:08:14 »
Reply with quoteQuote

Hello. I'm about 3/4 of the way through my glitched run of Tomb Raider 3. I decided to try out anri-chan and encode the first level of my run. I'm playing on the US Playstation version (NTSC). And using a DVD recorder. I ripped the DVD to anri-chan, created new project, and encoded all qualities (low, normal, high). Then I went to review the qualities in the 'finished' folder and while the picture is clear, it is quite dark. Tomb Raider on the PS is fairly dark as it is, but I always make sure brightness/contrast on my TV is set properly. Should I just use v-dub on the encoded files and simply increase the brightness? That's what I do when I upload to Youtube.
 
Here's a sample of the xvid normal quality:
http://www.yousendit.com/transfer.php?action=download&ufid=YkxKSmJ6aytCTW5IRGc9PQ

EDIT: And I somehow missed the section about video cables and SDA preferring the S-Video cable. I only have the yellow/white/red cable. I don't know if that makes a difference with the darkness.
« Last Edit: November 01, 2009, 19:42:39 by RadxxRyan » Report to moderator   Logged
nate
Administrator


PRYING OPEN MY THIRD EYE


View Profile WWW
« Reply #1312 on: November 02, 2009, 12:02:57 »
Reply with quoteQuote

it may. thing is though anri doesn't do anything to the brightness/cont by default so you'll have to add a filter for that if you want it to do that. to do that, open up c:\program files\anrichan_3b4\nate.avs in notepad, replace this:

Code:
function nate_vhs_head_change_erase(last) {
croppy=10
Crop(0,0,0,last.height-croppy).AddBorders(0,0,0,croppy)
}

with this:

Code:
function nate_vhs_head_change_erase(last) {
tweak(bright=20, cont=1.2)
}

save, close, and make a new project and encode again, this time saying "yes" to the vhs question. instead of processing for vhs it will increase the brightness. you can play with the values - http://avisynth.org/oldwiki/index.php?page=Tweak has a little tutorial. i just put in there what made that chinese picture look good. if you don't want it to do the filter you can just say "no" to the vhs question.

btw we no longer accept divx avi, just fyi.
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 #1313 on: November 02, 2009, 12:06:29 »
Reply with quoteQuote

It'd be nice to add the widescreen/audio commentary features and a couple bug fixes. We'll see..

Any reason to still ask if the user wants to encode xvid? Do people still use it?


edit - How close are you to the first release of Anri 4? I probably won't bother with audio commentary. I mainly want to fix a few bugs and update the x264 args.

the xvid thing has been on my mind for a long time. thing is we can't remove features. we can potentially hide features but anri is just so clunky that it's hard to see how we would do that while making it easy to reenable. the best thing i can think of is the underused config file ... dunno what you think about doing it that way.

i want to get anri 4 alpha 1 out by the end of the month. if this means leaving planned features out then so be it. though now that you've written widescreen code i can just port that to anri 4 and it will be easier than trying to decide for myself how to do it. the core of anri 4 is just your exact same ideas and algos reimplemented in perl so this will be no different (except that i'm approximately 433289328238x better at writing perl now than i was when i was writing anri 4 originally over a year ago).

updating x264 args is very good. if there are compatibility problems with anri 4 then we want people to be able to update to an anri 3 that is somewhat less archaeological in nature.
Report to moderator   Logged

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


RadicalsXeRyan17
View Profile WWW Email
« Reply #1314 on: November 02, 2009, 15:08:00 »
Reply with quoteQuote

it may. thing is though anri doesn't do anything to the brightness/cont by default so you'll have to add a filter for that if you want it to do that. to do that, open up c:\program files\anrichan_3b4\nate.avs in notepad, replace this:

Code:
function nate_vhs_head_change_erase(last) {
croppy=10
Crop(0,0,0,last.height-croppy).AddBorders(0,0,0,croppy)
}

with this:

Code:
function nate_vhs_head_change_erase(last) {
tweak(bright=20, cont=1.2)
}

save, close, and make a new project and encode again, this time saying "yes" to the vhs question. instead of processing for vhs it will increase the brightness. you can play with the values - http://avisynth.org/oldwiki/index.php?page=Tweak has a little tutorial. i just put in there what made that chinese picture look good. if you don't want it to do the filter you can just say "no" to the vhs question.

btw we no longer accept divx avi, just fyi.

Thanks. Ewil told me about the tweak code. And told me to increase brightness to 4 and I'll see how that looks. I actually did read about no longer accepting divx I just wanted to show a quick sample, should I just encode all other qualities except for divx?
Report to moderator   Logged
nate
Administrator


PRYING OPEN MY THIRD EYE


View Profile WWW
« Reply #1315 on: November 02, 2009, 16:04:15 »
Reply with quoteQuote

correct.
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 #1316 on: November 08, 2009, 14:41:10 »
Reply with quoteQuote

I downloaded a recent version of x264 (core:78 r1318 fe83a90) and came up with some command lines. I took a shortcut and copied the command lines from MeGUI's ipod and ps3/xbox360 profiles, then made some minor changes based on some info I read from the following pages:

http://speeddemosarchive.com/forum/index.php/topic,10512.0.html
http://mewiki.project357.com/wiki/X264_Settings
x264.exe --fullhelp


I tried to leave out arguments that were of default values.

Code:
:2pass
"%anri_dir%x264.exe" --profile high     --level 4.1 --pass 1 --bitrate %3 --stats "%2.stats" --thread-input            --b-adapt 2 --direct auto         --qpmin %5 --vbv-bufsize 24000 --vbv-maxrate 24000 --no-mbtree                                                                   --no-mixed-refs --output blablabla
"%anri_dir%x264.exe" --profile high     --level 4.1 --pass 2 --bitrate %3 --stats "%2.stats" --thread-input            --b-adapt 2 --direct auto         --qpmin %5 --vbv-bufsize 24000 --vbv-maxrate 24000 --no-mbtree --me umh                                              --trellis 2                 --output blablabla

:ipod
"%anri_dir%x264.exe" --profile baseline --level 1.3 --pass 1 --bitrate %3 --stats "%2.stats" --thread-input --no-cabac                                   --qpmin %5 --vbv-bufsize 768   --vbv-maxrate 768   --no-mbtree                                                                   --no-mixed-refs --output blablabla
"%anri_dir%x264.exe" --profile baseline --level 1.3 --pass 2 --bitrate %3 --stats "%2.stats" --thread-input --no-cabac                           --ref 1 --qpmin %5 --vbv-bufsize 768   --vbv-maxrate 768   --no-mbtree --me umh --partitions p8x8,b8x8,i4x4,p4x4 --no-8x8dct --trellis 0 --no-mixed-refs --output blablabla

Going to test this out, see if it breaks anything... edit- seems fine on my ps3.

Nate, any thoughts?



Some widescreen code in Anri3b4. Not sure if it breaks any hardware.
fyi, I tested on my ipod nano 3rd gen; PAR on the container as well as PAR on the video stream both work. Code is currently set for PAR on the container since you wouldn't have to re-encode the whole thing if it needs to be changed.
« Last Edit: November 08, 2009, 18:33:41 by ballofsnow » Report to moderator   Logged
nate
Administrator


PRYING OPEN MY THIRD EYE


View Profile WWW
« Reply #1317 on: November 11, 2009, 21:34:07 »
Reply with quoteQuote

i don't see anything that jumps out at me. a good way to test this would be to post links to a test video encoded in all five qualities using the new settings in the sda forum or gaming or wherever people will see it and ask "can you play this?" if we get any negatives we can back off - otherwise it will be time to integrate into both anris and my encoding system (which is still pre-anri, legacy of your batch files).

that's a great wiki page btw.
Report to moderator   Logged

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


Darklord in Training

Sir+VGHQ
View Profile WWW
« Reply #1318 on: November 11, 2009, 23:33:50 »
Reply with quoteQuote

It'd be nice to add the widescreen/audio commentary features and a couple bug fixes. We'll see..

Any reason to still ask if the user wants to encode xvid? Do people still use it?

On the rare occassion that I need to do subtitles, yes I do.  Given the fact that VirtualDub refuses to open MP4...
Report to moderator   Logged



Or follow on Twitter: http://twitter.com/SirVG
---
I have 6 runs in the Queue that need verifiers.  Please help me join the good fight and verify them!
ballofsnow
Moderator


SDA techie


View Profile Email
« Reply #1319 on: November 13, 2009, 08:30:47 »
Reply with quoteQuote

nate, good idea for x264 test.


Added a note in anri about xvid:

Report to moderator   Logged
Pages: 1 ... 86 87 [88] 89
Reply Send this topic Print
Jump to: