Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 10th August 2024, 23:22   #1  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 170
Convert Colorspace

How do I convert the colorspace of videos using Avisynth? Like, adding the correct parameters for BT.709 for HD videos?
jay123210599 is offline   Reply With Quote
Old 11th August 2024, 06:33   #2  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,495
If you just want to change the color matrix, you can use ColorMatrix.
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 13th August 2024, 08:55   #3  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,934
Most players would either use BT.709 by default, or display the video using a matrix based on the video resolution. 709 for HD and 601 for SD etc, assuming the absence of any color information in the video stream.

If the video uses incorrect colors and you wish to convert them, then you could use a plugin such as ColorMatrix as Selur suggested. If you want to include the colorimetry info in the video stream, then for the x264 and x265 encoders you'd add the following to the command line:

--colorprim bt709 --transfer bt709 --colormatrix bt709

The color information in the command line is simply there as information and there's no guarantee a player will pay attention to it, although hopefully most players do. It doesn't change the way the video is encoded.
hello_hello is offline   Reply With Quote
Reply

Tags
avisynth, colormatrix, colorspace conversion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:44.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.