joncampbell123 / composite-video-simulator

Code to process video to simulate analog composite video.
130 stars 17 forks source link

SECAM #11

Open chezsick opened 5 years ago

chezsick commented 5 years ago

You Can Add Secam in The Software? In The Option -tvstd Please The Documentation At ::::: http://www.radios-tv.co.uk/Pembers/World-TV-Standards/Colour-Standards.html#SECAM

Thank Sick!

chezsick commented 4 years ago

Why you do not want add secam? i waiting for 6 mounth :/

joncampbell123 commented 4 years ago

@chezsick I'm not interested in doing so, however you or anyone else is free to do so, especially someone who is experienced with the look and feel of SECAM. Unfortunately as an American I have never seen a SECAM signal.

joncampbell123 commented 4 years ago

@chezsick If you want a good example how to emulate SECAM, look at ffmpeg_ntsc.cpp which contains color subcarrier modulation and demodulation, and RGB to YIQ conversion.

Then, modify the code to convert RGB to SECAM's colorspace and back again, and modify based on what you know about SECAM.

chezsick commented 4 years ago

https://github.com/svofski/CRT/tree/master/SECAM this is secam write in python

i hope you read the python?

joncampbell123 commented 4 years ago

@chezsick I believe ffmpeg_ntsc.cpp can be easily modified to incorporate SECAM emulation from the python script. Would you like to give it a go?

chezsick commented 4 years ago

I try this script in python, is work. and i not a greate coder i can't to help, i no code in c++

joncampbell123 commented 4 years ago

Copy ffmpeg_ntsc.cpp to ffmpeg_secam.cpp

Then edit Makefile.am.

Locate bin_PROGRAMS = and add to the list: ffmpeg_secam

Then down below you'll find pairs of Makefile vars for ffmpeg_ntsc. Copy them, and change in the copy ffmpegntsc to ffmpegsecam

Good luck! C++ pointers and inline functions are used in this code. The video processing is done at a stage where the frame is 32-bit XRGB (RGB colorspace), 4 bytes per pixel.

realfinder commented 3 years ago

I think secam is not same as ntsc since it should not has Rainbow and Dot Crawl and when bad recorded in VHS it will give bad color over saturated

see https://www.youtube.com/watch?v=L6-eT66pr-E or worst https://www.youtube.com/watch?v=uqfZuP4Og5U and here PAL vs SECAM https://www.youtube.com/watch?v=tZKBIM6cFNw (not damaged)

I used to record it in Modified SECAM in JVC (SECAM in PAL encoding) to not make it worst