View Full Version : Re-encode a video to change video colouring.
xbox360
2nd January 2007, 00:54
Hello to Everyone, I want to re-encode a video to change it's colour's from PAL to NTSC/US not NTSC/J. What I know is in digital there is only 1 PAL & 1 NTSC, but what I want is to change it's colour from something (original colour) to NTSC/US (Something that look's like that). Please Help.
spiderman
2nd January 2007, 21:26
Hi Guys
just to let you know i took out my cpu and cleaned it off completly, spread a little compound on it..re-inserted it and looks like my problems have disapeared.
must have been overheating..so thanks very much for your help in resolving this problem.
Cheers.
Hyper_Thread
7th January 2007, 00:47
In Digital Video, only frame rate change from PAL to NTSC (PAL= 25 fps, NTSC= 29.97 fps) but color don't change.
There are also some # in DVD Standards like Picture size, GOP size ...
You may tweak your video's color to produce what you want ;)
xbox360
7th January 2007, 13:39
How do I tweak the video's color ? HexEdit ? Please teach in detail please.
Hyper_Thread
8th January 2007, 21:27
To get a Colors tweaked NTSC Video, you must convert your Clip from PAL to NTSC, tweak what you want, then re-encode !
Most video editors & encoders have Color Control Filtre(s) if you would use one of them, but I'm using the following method :
You need this "must have" tools :
AviSynth 2.56 : http://www.doom9.org/Soft21/SupportUtils/Avisynth_256.exe
QuEnc : http://www.doom9.org/Soft21/Encoders/MPEG2/QuEnc071.exe
VirtualDubMOD : http://sourceforge.net/project/showfiles.php?group_id=65889&release_id=201544
ImagoMPEG-Muxer : http://www.videohelp.com/tools?tool=ImagoMPEG-Muxer
BeLight : http://belight.corecodec.org/
I suppose you have a PAL MPEG-2 Stream, located in "C:\Movies\" & named "My Clip.mpg"
Here we go :
1- Open your clip with VirtualDubMOD, go to Streams -> Stream List, then Demux the audio stream to a given folder. There are many other Demuxers but i love VDubMOD :rolleyes:
2- Create an AVS script (open the notepad & paste this lines), don't forget to replace the file path with your own !!
DirectshowSource("C:\Movies\My Clip.mpg", fps=25, audio=false).ConvertToYV12
Bob(height=480)
BicubicResize(720,480,0,0.5)
ChangeFPS(60000, 1001)
SeparateFields.SelectEvery(4,0,3)
Weave
Tweak(0.0, 1.8, 0.0, 1.2)
Green Lines are used to convert your video frame rate from PAL to NTSC.
Red Line : Here i've increased "Saturation" by 0.8 & "Contrast" by 0.2 . You can fin more infos about the "Tweak" command in AviSynth Documentation when you install it, & learn
who to use its values ;)
3- Save this text file as My_Clip.avs
4- Open the new .avs file with QuEnc & encode it to an NTSC Stream. This guide will help you : http://www.doom9.org/index.html?/mpg/quenc.htm
5- Open your previously demuxed audio stream with Belight, Choose a target format (MP2 or AC3), go to "Advanced Settings" & check "Convert frame rate from 25000 to 29970 fps", Re-encode now.
6- Mux the resulting video & audio streams with AmagoMPEG Muxer. Done !
Note : you must have a MPEG-2 decoder installed on your system ! :D
Hope this little guide help you.
xbox360
9th January 2007, 01:47
Thank you
Mug Funky
9th January 2007, 04:26
hang on... before you re-encode the lot, let us know what's happening.
i gather you want to change the stream so that the decoder returns colours in the desired format. ie you don't want to change the frame rate or height.
if this is the case, take a look at ReStream, as that might be able to change "colour primaries" or some such thing.
because the colours in MPEG-2 are stored in exactly the same way for PAL and NTSC.
[edit]
@ Hyper_thread:
there's far far better ways to convert PAL to NTSC and vice versa. video encoded with the method above will be blurry, jerky and jumpy.
xbox360
9th January 2007, 06:37
Ok please, tell me in more detail how to doit the 100% Perfect way,Thank You. This stuff will really help not just me but all of Doom9 Member's Alot !
Also how to use ReStream to Change Colour, I dont see any relevence in the software with what I want to achive.
Just for abit more detail, I want to re-encode to get the NTSC/US Colour Transmision, NOT PAL to NTSC patching so certain DVD player's will play in colour.
Hyper_Thread
9th January 2007, 19:35
As i'v said, there is no way to convert colour from PAL to NTSC, coz there is no difference.
The Colour Matrix can only vary from MPEG-2 to MPEG-4 (Rec.709 to Rec.601)
If you have enough time, try the way i'v posted & judge by your self.
If you like Sharp videos, add this line to the avs script :
Sharpen(0.25)
@ Mug Funky
We are waiting for one of the better ways.
Mug Funky
10th January 2007, 01:03
@ Hyper_Thread: :search:
use a motion-adaptive deinterlacer (not just internal bob command) so you don't lose all that sharpness on static areas, and use either changefps for interlaced but slightly jerky output, or convertfps (or blendfps by clouded which is a little faster and yv12), or some form of motion-compensated framerate conversion, such as mvtools, motion.dll, or a mixture of all the above methods.
check the avisynth usage forum - there's a ton of threads about this.
NTSC to PAL (or vice versa) can be a big problem though - i've spend the last 2 years trying to perfect my NTSC to PAL conversion method, and let me tell you it's a tad more complex than bob+changefps :)
xbox360
10th January 2007, 05:04
It seems YUY2 look's like the perfect NTSC:
DirectshowSource("D:\Movies\test.avi", fps=25, audio=false).ConvertToYUY2
Bob(height=480)
BicubicResize(720,480,0,0.5)
ChangeFPS(60000, 1001)
SeparateFields.SelectEvery(4,0,3)
Weave
Tweak(0.0, 1.8, 0.0, 1.2)
Sharpen(0.25)
Can you please tell me what converter that will accept this script, please.
Hyper_Thread
10th January 2007, 19:51
@ Mug Funky
When i've posted this method, i never said that is the perfect or the ultimate way to convert PAL to NTSC.
Let me say that a "Best way" don't exist, each and everyone has their own view about what's best (Forum Rules - 12)
I'm just trying to help & our friend "xbox360" haven't 2 years to spend in order to convert his movie !! :p
@ xbox360
QuEnc & HCEnc requires an YV12 Colour Space as input.
Try CCE or TMPGenc to do this job. (i've tested CCE SP2 & TMPGenc 3 express, they accept this script)
xbox360
11th January 2007, 02:32
How do I load a .avs script into CCE SP2 ?. Thank You.
CruNcher
11th January 2007, 09:05
@ dasiy0627
http://forum.doom9.org/showthread.php?p=931244#post931244
Hyper_Thread
11th January 2007, 18:35
How do I load a .avs script into CCE SP2 ?. Thank You.
Ctrl+A in the main window or just drag & drop.
Susana
11th January 2007, 18:43
or right click / Add..., all has been said :rolleyes:
xbox360
21st January 2007, 06:23
Please help, I would like to set encoding bitrate to 2.4MBps, how do I modify this script:
DirectshowSource("C:\Movies\My Clip.mpg", fps=25, audio=false).ConvertToYV12
Bob(height=480)
BicubicResize(720,480,0,0.5)
ChangeFPS(60000, 1001)
SeparateFields.SelectEvery(4,0,3)
Weave
Tweak(0.0, 1.8, 0.0, 1.2)
Sharpen(0.25)
foxyshadis
21st January 2007, 07:22
You don't, you have to set it in CCE's encoding options. (Assuming you're still using that.)
xbox360
21st January 2007, 11:04
I am using VSO ConvertXtoDVD, and it ignore's the MBps set in Settings->Encoding. I want to use VSO ConvertXtoDVD, just need to Fix that MBps. Please Help.
http://www.vso-software.fr/screenshot/boxes/X2D-box-lights.gif
I have also send a bug report to VSO I hope they fix it.
xbox360
28th January 2007, 05:43
Check this script out it rock's !
DirectshowSource ("D:\Movies\wassup\oops.avi")
Lanczos4Resize (720, 480)
ConvertToYV12
ChangeFPS (25,linear=false)
Tweak(0.0, 1.8, 0.0, 1.2)
Sharpen(0.25)
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.