#1  
03-10-2011, 07:18 PM
NJRoadfan NJRoadfan is offline
Premium Member
 
Join Date: Sep 2010
Posts: 1,157
Thanked 359 Times in 294 Posts
Mods feel free to move this if this isn't the right location.

One of my other interests has been computer emulation of various sorts. Some recent work has gone into accurately emulating the composite video output of classic computers to look more like the real hardware. This work might be of interest to the video restoration community for simulating video to test various filters... or to take it in the other direction, to add a "patina" to modern video sources for an added retro touch.

Check it out at: http://code.google.com/p/openemulato...VideoEmulation
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
03-11-2011, 10:35 AM
jmac698 jmac698 is offline
Free Member
 
Join Date: Dec 2010
Posts: 387
Thanked 73 Times in 56 Posts
Thanks, I think it's cool There's some details you need to know, for example c64 has odd-only video lines at 60Hz. There are some advanced tweaks to output interlaced video too.
Some links:

http://techmind.org/vd/paldec.html
software PAL/NTSC video decoder (windows), includes the famous "BBC PAL" artefact-free color decoding.

http://sites.google.com/site/h2obses...C128/Interlace
Details of vic-ii video signal and software interlace trick

I see that you captured a raw PAL frame, I was wondering if you could capture a frame from a VCR? I'd really like to investigate jitter, and write a software decoder to remove it.

Too bad I don't have a Mac, but I'd like to see a C version that I could turn into an avisynth plugin, this would send video through an encode-decode loop to create a simulated composite signal.
Reply With Quote
  #3  
03-11-2011, 11:01 AM
NJRoadfan NJRoadfan is offline
Premium Member
 
Join Date: Sep 2010
Posts: 1,157
Thanked 359 Times in 294 Posts
The work shown isn't mine, although I have been investigating adding it to an emulator I have contributed to in the past. The source code is available and has been used in other emulators on various platforms.

Most older computers and game consoles like the C64 output NTSC/PAL video in a tweaked "240/288p" mode, they trick the monitor by eliminating the half scanline at the beginning and end of the field. It causes grief for some capture cards and TBCs, particularly with S-video inputs. The chroma channel will show a checkerboard effect via S-video if the card doesn't properly detect 240p video, composite seems unaffected since the video has to go through a comb filter. A lot of cards won't even lock onto the signal to begin with. This is likely the reason why some capture cards won't show a VCR's onboard menus or blue screen, most are output as 240p to avoid flickering.
Reply With Quote
  #4  
03-11-2011, 11:16 AM
jmac698 jmac698 is offline
Free Member
 
Join Date: Dec 2010
Posts: 387
Thanked 73 Times in 56 Posts
Yes there's source but I don't want to try to dissect GPU code, now straight C I could read. I guess it's OpenGL code.
Reply With Quote
  #5  
03-11-2011, 01:23 PM
admin's Avatar
admin admin is offline
Site Staff | Web Development
 
Join Date: Jul 2003
Posts: 4,310
Thanked 654 Times in 457 Posts
Quote:
Originally Posted by NJRoadfan View Post
a VCR's onboard menus or blue screen, most are output as 240p to avoid flickering.
Interesting!

- Did this site help you? Then upgrade to Premium Member and show your support!
- Also: Like Us on Facebook for special DVD/Blu-ray news and deals!
Reply With Quote
  #6  
03-11-2011, 11:16 PM
gortu gortu is offline
Free Member
 
Join Date: Mar 2011
Posts: 2
Thanked 0 Times in 0 Posts
Hi everybody!

I'm the author of the OpenEmulator NTSC/PAL emulation! I found this post just by chance while googling for my project, and wanted to join the discussion as I find it very interesting :-).

Just a quick intro: it all started with an Apple II emulator. Then I wanted to be able to add devices on the fly. Then I decided to emulate any kind of computer, and in the end I decided to use actual composite signals, so the computer-monitor interface would be as close as possible to the original. In short, I'm in big trouble :-D.

I'm also glad to hear about all this positive feedback here in this forum! So if you can think of any other kind of (d)effect of real NTSC/PAL monitors, please let me know!

Last edited by gortu; 03-11-2011 at 11:26 PM.
Reply With Quote
  #7  
03-11-2011, 11:28 PM
jmac698 jmac698 is offline
Free Member
 
Join Date: Dec 2010
Posts: 387
Thanked 73 Times in 56 Posts
Hi,
I'll think about that. Could you tell me your filter taps and type for separating the chroma and filtering the luma. I think that's all I need to make my composite effect filter.
Thanks
p.s. also could you digitize the full raw frame from a VCR, I'd be very interested! Just record some rec601 colorbars.
Reply With Quote
  #8  
03-12-2011, 07:22 AM
gortu gortu is offline
Free Member
 
Join Date: Mar 2011
Posts: 2
Thanked 0 Times in 0 Posts
Hi there!

Unfortunately I don't have a video digitizer available, and used a PAL video frame I was able to find on the web.

Regarding the filter: It's a simple Lanczos lowpass filter with variable cutoff. I also multiply this filter with a Tchebyshev window, so that the stopband is consistently below a certain level (I use 50 dB, which corresponds to the SNR of a typical eye).

Hope this was useful.

Best wishes,

Marc.-
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert NTSC to PAL and back to NTSC ? admin Capture, Record, Transfer 0 07-24-2010 08:29 PM
PAL to NTSC conversion of audio using Goldwave Knight$peed Encode, Convert for discs 7 04-22-2009 06:08 AM
Redub of a PAL video to NTSC audio markatisu Restore, Filter, Improve Quality 6 06-13-2007 03:34 AM
NTSC and PAL on one DVD region-free ? neiltracy00 Author, Make Menus, Slideshows, Burn 3 04-28-2007 01:20 PM
PAL to NTSC help, cannot play DVD that was bought SavageAmusement Encode, Convert for discs 17 05-21-2006 09:02 PM

Thread Tools



 
All times are GMT -5. The time now is 12:42 PM