View Full Version : Add Scanlines to a Video
cmw
17th August 2006, 16:11
Hi!
I want to add scanlines to a not interlaced Video Source (like it's done in the FMV of Command & Conquer or Wing Commander (the Video Files on the Disc are not interlaced, but they are played with scanlines which greatly improves the visual experience, how can I permanently add these to a file using Avisynth or VirtualDub?).
Thx in Advance, cmw
Guest
17th August 2006, 16:32
Don't know what you're talking about. Give us a screenshot of the look you are seeking.
cmw
17th August 2006, 16:43
Ok, here is what i mean with scanlines:
http://unet.univie.ac.at/~a0501414/scanlines.jpg
However, the interlacing is NOT encoded into the video.
This is (a XVID encoded version) of the SAME video file directly ripped from cd. As you can see, there are no scanlines here, but I want them, how can I get them into an encode?
http://unet.univie.ac.at/~a0501414/normal.jpg
Guest
17th August 2006, 16:58
avisource(...)
converttoyuy2() # or RGB
vid=separatefields().selecteven()
blank=blankclip(vid)
interleave(vid,blank)
weave()
setarip_old
17th August 2006, 17:00
Hi!
I remember that wonderful effect being available as an option on the old "MAME" videogame emulator ;>}
If the suggestion by "Neuron2" doesn't satify your needs, perhaps some Googlesearching including "scanlines" and "MAME" will yield the information you're seeking...
cmw
17th August 2006, 17:01
Thanks for the AviSynth script!
I knew it would be simple, but searching for "scanlines, interlace" etc just brought up subjects on how to deinterlace stuff and i felt silly^^
Pookie
17th August 2006, 18:14
I recognize that effect. This will do it specifically.
http://www.avisynth.org/warpenterprises/files/scanlines_25_dll_20031103.zip
Prettz
18th August 2006, 20:52
I guess you could call that the "security camera effect", if you wanted to give it a unique name.
LocalH
18th August 2006, 21:12
You should know that encoding a video like that will heavily impact the amount of compression you'll get, meaning that you'll have to make do with a larger filesize in order to get equivalent quality (after all, those scanlines are hell for an encoder).
foxyshadis
19th August 2006, 03:20
Why not just encode normally and add it to the playback filter? Unless you're making a demo and you want to share. Haha, a CS video with old-skool scanlines.
In fact you could probably port shader code from mame over to MPC and do the scanlines right in the gpu.
Soulhunter
19th August 2006, 10:24
You can also use ffdshow! Some months ago Milan added a scanline filter on my request, you can find it under "picture properties" ^^
Bye
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.