Thread: DelogoHD
View Single Post
Old 14th July 2019, 04:01   #4  |  Link
MeteorRain
結城有紀
 
Join Date: Dec 2003
Location: NJ; OR; Shanghai
Posts: 894
Quote:
Originally Posted by tebasuna51 View Post
Please, some info about lgd format and how create it.
The original tool was built by MakKi back in 2003.

The tool was originally made for AviUtl, being only used within Japan, and is all in Japanese language. It was used to remove the half-transparent TV station logo from captured analog or digital TV programs. But it should also work with other logos as long as they are static and half-transparent. I've tested against Pilot's Eye Bluray Disc and it worked very well. Some porn video that comes with half-transparent logos from their publisher can also benefit, but I never tried.

I have translated the logo header file so you may check that for detailed structure.
Basically a LGD consists of a magic, a name, meta like w h posx posy etc, and the body which is array of actual logo image.
The image was in 12bit Y/Cb/Cr format, which is sometimes called as AviUtl YC colorspace. Alpha channel is recorded for each channel, so it's actually Y/A/Cb/A/Cr/A format. The YCbCr color space is different than what we use as YUV, and during computing, the original Delogo AVS plugin has to convert pixels to AU-YC, remove the logo, then convert them back to YV12. I have re-written the algorithm and it no longer converts data back and forth.

To create a LGD file, the only possible way is to use AviUtl (in Japanese). A Chinese tutorial about how to use the Japanese plugin is available here. Knowing both Chinese and Japanese is recommended to read the tutorial. I've also built a website for my collections of LGD logos these years so far.
__________________
Projects
x265 - Yuuki-Asuna-mod Download / GitHub
TS - ADTS AAC Splitter | LATM AAC Splitter | BS4K-ASS
Neo AviSynth+ filters - F3KDB | FFT3D | DFTTest | MiniDeen | Temporal Median

Last edited by MeteorRain; 14th July 2019 at 04:16. Reason: typo
MeteorRain is offline   Reply With Quote