creaothceann
He/Him
Editor
Joined: 4/7/2005
Posts: 1874
Location: Germany
Eye Of The Beholder wrote:
Windows Movie Maker
Here's your problem.
Joined: 5/12/2009
Posts: 748
Location: Brazil
Do you mean, when i joined the videos with Windows Movie Maker it made the quality worse so i have to use another aplication for that, or Bizhawk gave me 15 parts splited because I have Windows Movie Maker installed?
natt wrote:
There are a variety of video dumping options in bizhawk, although I don't know what Windows Movie Maker can open...
So Bizhawk will always give me the video splited?
Editor, Emulator Coder, Site Developer
Joined: 5/11/2011
Posts: 1108
Location: Murka
I should have been more specific: Bizhawk split at 2GB because of the kind of video output you chose. There are many Bizhawk video output options that don't split at 2GB, and even with AVI, you can choose a codec with better compression and get fewer segments. However, I'm not certain what of Bizhawk's video options you could switch to, that would still load correctly in Windows Movie Maker.
Joined: 5/12/2009
Posts: 748
Location: Brazil
Sorry, maybe i'm too noob for this. When you say Bizhawk split at 2GB, do you mean when Bizhawk generates a 2GB movie file, it split it and start generating a new one if there's still something to be recorded? If that's the case, my situation is a bit different, cause it splits the file in small parts of few megabytes.
creaothceann
He/Him
Editor
Joined: 4/7/2005
Posts: 1874
Location: Germany
Eye Of The Beholder wrote:
Do you mean, when i joined the videos with Windows Movie Maker it made the quality worse so i have to use another application for that, or Bizhawk gave me 15 parts splitted because I have Windows Movie Maker installed?
Joining video files won't decrease quality, but WMM re-encodes the joined video when it writes it to disk, which changes the frames. A program like VirtualDub can join files and write the encoded video data without change into a new file. Btw. you can also use Avisynth to join files and edit that video.
Eye Of The Beholder wrote:
So Bizhawk will always give me the video splitted?
Standard AVI files are restricted to slightly less than 2GB, afaik. A special type ("OpenDML") can store larger files. Other containers (e.g. MKV) don't have that restriction.
Editor, Emulator Coder, Site Developer
Joined: 5/11/2011
Posts: 1108
Location: Murka
Eye Of The Beholder wrote:
Sorry, maybe i'm too noob for this. When you say Bizhawk split at 2GB, do you mean when Bizhawk generates a 2GB movie file, it split it and start generating a new one if there's still something to be recorded? If that's the case, my situation is a bit different, cause it splits the file in small parts of few megabytes.
Ahh, you might be splitting on resolution change. What emulation core were you recording? Are the video segments different image size?
Editor, Emulator Coder, Site Developer
Joined: 5/11/2011
Posts: 1108
Location: Murka
For those who don't give two hoots about resizing algorithms, resolution changes, or anything like that, the upcoming release will have an option to force resize all a/v dump video to a chosen size before encoding.
Joined: 5/12/2009
Posts: 748
Location: Brazil
Since i've downloaded bizhawk i only disabled the rewind option, so the emulator core should probably be in the default option. Regarding the segments, as far as i can remember they were in the same sise/resolution and had the same quality. I'll check that out as soon as i get home. Thanks for the help guys!
ventuz
He/Him
Player (125)
Joined: 10/4/2004
Posts: 940
Why no one has started using Reversed Antialiasing filter for video encoding?
Editor, Emulator Coder, Site Developer
Joined: 5/11/2011
Posts: 1108
Location: Murka
Same reason as every other "fart2x of the month": takes many more bits to encode than just encoding at original resolution, and any properly written shader filter can be applied by the user at playback time in the media player.
Player (66)
Joined: 4/21/2011
Posts: 232
Is there any desire to tie all the archive accounts together the way youtube was? api
Editor, Expert player (2330)
Joined: 5/15/2007
Posts: 3933
Location: Germany
Is there a way to make avisynth support transparent overlaying?
Player (66)
Joined: 4/21/2011
Posts: 232
Layer An rgb32 image can have transparency info. ImageSource defaults to rgb24, so add pixel_type = "RGB32" to the command. You can add a transparency mask to an rgb32 frame with Mask. You can also "greenscreen" with ColorKeyMask. Using ColorKeyMask($FFFFFF) on the A in your example would make the white transparent. So Layer(B, A.ColorKeyMask($FFFFFF)) is probably close to what you're looking for. P.S. Overlay is a more for the YUV colorspaces.
Editor, Expert player (2330)
Joined: 5/15/2007
Posts: 3933
Location: Germany
While I'm making a test video I stumbled across a problem. With 'overlay', it didn't matter what resolution the clip had that was overlaid with. With 'layer', it seems both clips have to have the same resolution ... There seem to be differences that I didn't account for.
Editor, Emulator Coder, Site Developer
Joined: 5/11/2011
Posts: 1108
Location: Murka
Resize the overlay clip when Layering
Editor, Expert player (2330)
Joined: 5/15/2007
Posts: 3933
Location: Germany
continued from last post: I wanted to overlap several (moving) backgrounds over one another by using scriptclip. But it seems scriptclip cannot handle layer the way I hoped it to, so instead it will use one clip and overlap it on ... its moving self. Or it will move a background that it is not supposed to move. The way I hoped it was possible, shortly summarized:
base
pic1
pic2
pic3

scriptclip(base, """layer(pic1, x=current_frame*-5, ColorKeyMask($FFFFFF))""")
scriptclip(last, """layer(pic2, x=current_frame*-10, ColorKeyMask($FFFFFF))""")
scriptclip(last, """layer(pic3, x=current_frame*-22, ColorKeyMask($FFFFFF))""")
Here are my files. I would be glad if someone could take a look at it. http://www.file-upload.net/download-6939432/test.zip.html street.png is the base. I wanted to overlap bg3 (slow moving) on bg4 (slowest moving). Then I wanted to overlap bg2 (medium moving) on that^. Then I wanted to overlap bg1 (fast moving) on that^. Then I wanted to overlap that^ on the base (not moving). Then I wanted to overlap marioside.png (moving, variable) on that^. Then I wanted to overlap bg0 (fastest moving) on that^. Is this possible or not?
creaothceann
He/Him
Editor
Joined: 4/7/2005
Posts: 1874
Location: Germany
Language: AviSynth

Street = Open("Street").x(2) # street BG0 = Open("BG0" ).x(2) # foreground BG1 = Open("BG1" ).x(2) # close background BG2 = Open("BG2" ).x(2) # background BG3 = Open("BG3" ).x(2) # distant background Sky = Open("Sky" ).x(2) # sky Mario = Open("Mario" ) Sky \.ScriptClip("""Layer(BG3 , x=current_frame * -5 )""") \.ScriptClip("""Layer(BG2 , x=current_frame * -10 )""") \.ScriptClip("""Layer(BG1 , x=current_frame * -20 )""") \.ScriptClip("""Layer(BG0 , x=current_frame * -40 )""") \.ScriptClip("""Layer(Street, x=current_frame * -80 )""") \.ScriptClip("""Layer(Mario , x=current_frame * 8, y=329)""") function Open(string FileName) { ImageSource(FileName + ".png", pixel_type="RGB32") ColorKeyMask($FFFFFF) } function x(clip c, int i) { (i > 1) ? StackHorizontal(c, c.x(i - 1)) \ : c }
The layering could probably be put into a function, too.
Editor, Expert player (2330)
Joined: 5/15/2007
Posts: 3933
Location: Germany
I had an error message telling me it couldn't open the file, maybe there was a disagreement with the file names we both decided to use... But I got it to work, I'm really happy how it turned out. Thanks! E/ Can someone explain what the \. before scriptclip does? E/ Video of the finished thing is here.
creaothceann
He/Him
Editor
Joined: 4/7/2005
Posts: 1874
Location: Germany
Yeah, I used slightly different file names. \ causes the adjacent linebreak to be ignored (i.e. the previous command is continued).
Editor, Expert player (2330)
Joined: 5/15/2007
Posts: 3933
Location: Germany
Although I do not expect a reply this time, I might as well still try asking. When I overlap several layers over one another as in the previous example, how can I use temporalsoften() on a distant background and a foreground while leaving the 'middle' ground alone? I'm using temporalsoften for its blur effects but if I were to use it before laying, then I'm sure I'd mix it with the white color and can't use ColorKeyMask($FFFFFF) anymore.
creaothceann
He/Him
Editor
Joined: 4/7/2005
Posts: 1874
Location: Germany
You could try asking here.
Publisher
Joined: 4/23/2009
Posts: 1283
I'd gather something like save the mask to a clip just for the mask, and then apply the filter to the area you want.
Editor, Expert player (2330)
Joined: 5/15/2007
Posts: 3933
Location: Germany
I have seen that the TASvideos encoding script can make stroked text. I can't figure out how to extract that portion of code to make use of it though. It asks what mt_circle means and I don't know if that's even what I want. Does someone know and be so kind and post the code here for use?
Player (66)
Joined: 4/21/2011
Posts: 232
This is what I've been using. http://pastebin.com/j29A92vf
I can't figure out how to extract that portion of code to make use of it though.
What are you trying to do? The basic idea is to use subtitle to make the base letters. text_mask Then use mt_expand + mt_circle to make a larger copy. halo_mask The masks are combined with a lookup table. alpha_mask Then overlayed on the movie. The math gets a little ugly because avisynth treats the 32 bit numbers as signed. It would also be possible to use bit shift, but that was only available in the "experimental" builds.
Editor, Expert player (2330)
Joined: 5/15/2007
Posts: 3933
Location: Germany
nanogyth wrote:
I can't figure out how to extract that portion of code to make use of it though.
What are you trying to do?
A while ago I used the TASvideos script in order to avoid the memory leak and to get the correct colors. The script I used is here: http://pastebin.com/X1E6wEjy But most of the time when I'm making modifications to that script or trying to extract something from it, I don't know what I'm doing. I was trying to extract "function ng_bighalo" but when I did that, virtualdub would tell me "there's no function called mt_circle" or something. And now you cave me another function but I don't know how I'm supposed to call it. I would appreciate it if you give me an example how I can call the function (or an example script that I can load in vdub without editing).