Canopus Codecs... for free?

Comments

malowz wrote on 7/13/2012, 7:55 AM
@Nick Hope
used lastest (2.14)

i also had used a while with no problems. but frameserving its not 100% reliable, depending on the program that read the file.

turns out, CLI encoders does not play 100% with it. this does not make frameserve bad, or unstable, just that the programs i tested are not 100% with it.

i used carbon coder with frameserve a lot and worked fine always.

as i will start to encode videos for the web too, i will start to use handbrake encoder with Canopus HQ ;)
Wolfgang S. wrote on 7/14/2012, 3:17 AM
I have to correct myself.

I have here both Edius 6.5 (retail version) and Vegas. If I render an clip to the Canopus HQ codec, I see a luminance shift - from 16..235 it seems to go now to 0..255 if I import that in Vegas. So, in Edius the luminance is correct, but NOT in Vegas.

I had a look for the registry entries - and do not find them on my system, as it was reported by Fuchs. I have no idea where I find those settings.

But with that behaviour the codec is not usefull for Vegas.

Desktop: PC AMD 3960X, 24x3,8 Mhz * RTX 3080 Ti (12 GB)* Blackmagic Extreme 4K 12G * QNAP Max8 10 Gb Lan * Resolve Studio 18 * Edius X* Blackmagic Pocket 6K/6K Pro, EVA1, FS7

Laptop: ProArt Studiobook 16 OLED * internal HDR preview * i9 12900H with i-GPU Iris XE * 32 GB Ram) * Geforce RTX 3070 TI 8GB * internal HDR preview on the laptop monitor * Blackmagic Ultrastudio 4K mini

HDR monitor: ProArt Monitor PA32 UCG-K 1600 nits, Atomos Sumo

Others: Edius NX (Canopus NX)-card in an old XP-System. Edius 4.6 and other systems

Marco. wrote on 7/14/2012, 3:23 AM
Did you encode and decode inside Vegas? Or did you use the external Canopus encoder?
AVI or Quicktime?
NickHope wrote on 7/14/2012, 4:44 AM
Malowz, knowing how comfortable you are with scripts etc., you might be interested in my Vegas > Frameserver > AviSynth > Megui method for web encoding, especially if you are deinterlacing. You can avoid the intermediate, and play with infinite possibilities (denoising, resizing, sharpening etc..) within AviSynth.

But I realise it might not be as convenient as a fully automated script to go from Canopus HQ to mp4 via CLI Handbrake.
Wolfgang S. wrote on 7/14/2012, 5:45 AM
"Did you encode and decode inside Vegas? Or did you use the external Canopus encoder?
AVI or Quicktime?"

I have encoded
a) in Edius
b) using the AVCHD2HQ converter
c) in Vegas

If you import the files in Vegas.
a) and b) are wrong, c) is fine.

If you import the files in Edius
a) and b) are fine, but c) is wrong (and luminance is shrinked down in that case).

Encoding was done with avi.

My conclusion: as long as we do not know settings to adjust that, the latest version of the Canopus HQ codec should not be used anymore for a transfer between Vegas and Edius or Edius and Veags.

Desktop: PC AMD 3960X, 24x3,8 Mhz * RTX 3080 Ti (12 GB)* Blackmagic Extreme 4K 12G * QNAP Max8 10 Gb Lan * Resolve Studio 18 * Edius X* Blackmagic Pocket 6K/6K Pro, EVA1, FS7

Laptop: ProArt Studiobook 16 OLED * internal HDR preview * i9 12900H with i-GPU Iris XE * 32 GB Ram) * Geforce RTX 3070 TI 8GB * internal HDR preview on the laptop monitor * Blackmagic Ultrastudio 4K mini

HDR monitor: ProArt Monitor PA32 UCG-K 1600 nits, Atomos Sumo

Others: Edius NX (Canopus NX)-card in an old XP-System. Edius 4.6 and other systems

malowz wrote on 7/14/2012, 7:49 AM
for "people" with the color shift problem:

open regedit

go to key:
HKEY_CURRENT_USER\Software\Canopus\Codec\CUVC

right clik on the right side, "New" > "DWORD (32bit) value"

name it "color_space" (no quotes)

after that, double click on it, change value to 1

so the same for HQX:
HKEY_CURRENT_USER\Software\Canopus\Codec\CHQX

close vegas if it is already open. if you have a template on vegas with canopus HQ or HQX, DELETE IT. then, create a new one.

do not try to open old HQ or HQX files (results may vary), start to use it from here.

post back the results ;)
Wolfgang S. wrote on 7/14/2012, 4:11 PM
Thank you, I have tried that and can confirm that it works.

In more detail: I have added the "color_space" to the existing HKEY_CURRENT_USER\Software\Canopus\Codec\CUVC
entry.

The other setting for CHQX is not available on my machine (where I have both Vegas and the retail version of Edius 6.5 installed, in addition also the actual AVCHD2HQ converter). So for CHQX I had to add CHQX as an additional key, and have entered here the DWORD 32bit value = 1 only.

I have tested to render a file to the Canopus HQ codec with the AVCHD2HQ converter, and have imported that in Veags - and here the luminance is now fine. I have also tested if the usage of such a file in Edius is fine - ok it is fine too.

When I render in Vegas using that settings, I receive an additional reduction in luminance! I see that after importing the Vegas output both in Vegas, but also in Edius. Before we re-import such a file in Vegas, the color_space must be set to 0 again. So I think here we have to take care - for importing HQ files in Vegas that is fine, but not for the export from Vegas!

Desktop: PC AMD 3960X, 24x3,8 Mhz * RTX 3080 Ti (12 GB)* Blackmagic Extreme 4K 12G * QNAP Max8 10 Gb Lan * Resolve Studio 18 * Edius X* Blackmagic Pocket 6K/6K Pro, EVA1, FS7

Laptop: ProArt Studiobook 16 OLED * internal HDR preview * i9 12900H with i-GPU Iris XE * 32 GB Ram) * Geforce RTX 3070 TI 8GB * internal HDR preview on the laptop monitor * Blackmagic Ultrastudio 4K mini

HDR monitor: ProArt Monitor PA32 UCG-K 1600 nits, Atomos Sumo

Others: Edius NX (Canopus NX)-card in an old XP-System. Edius 4.6 and other systems

malowz wrote on 7/14/2012, 4:37 PM
did you have a template for HQ or HQX in vegas? did you deleted it?

im exporting from vegas/importing in vegas and no shift whatsoever.
Wolfgang S. wrote on 7/14/2012, 4:59 PM
Why do you think that the templates are important? We are talking about the decoding behaviour, arn't we? At least how I intend to use that codec (to bring something from Edius in Veags in the correct way). So files encoded in Edius were fine in Vegas, after changing the color space setting.

But to encode a file in Vegas and use that in Edius is still not fine.

Desktop: PC AMD 3960X, 24x3,8 Mhz * RTX 3080 Ti (12 GB)* Blackmagic Extreme 4K 12G * QNAP Max8 10 Gb Lan * Resolve Studio 18 * Edius X* Blackmagic Pocket 6K/6K Pro, EVA1, FS7

Laptop: ProArt Studiobook 16 OLED * internal HDR preview * i9 12900H with i-GPU Iris XE * 32 GB Ram) * Geforce RTX 3070 TI 8GB * internal HDR preview on the laptop monitor * Blackmagic Ultrastudio 4K mini

HDR monitor: ProArt Monitor PA32 UCG-K 1600 nits, Atomos Sumo

Others: Edius NX (Canopus NX)-card in an old XP-System. Edius 4.6 and other systems

malowz wrote on 7/14/2012, 5:30 PM
the template save internal codec settings. caused my firsts attempts to get wrong levels.

and i don't know for sure, but i think the setting on the levels info is saved inside "codec data" on the file, cause older files encoded without the "1" setting where decoded with the correct levels, but showed posterize on histogram.

that why the "delete template if you have" and "don't test with old encoded files"

@Nick Hope
im testing handbrake, separated CLI apps(same as megui use), and frameserve. again, frameserve is giving a file with audio longer than the video. (last second is duplicated)

exporting to Canopus HQ slowed the hole process by 20% (export avi > CLI apps vs. Frameserve > CLI apps) so, i will go with Canopus HQ from now on, as i find "safer" and easier to have the actual video file rendered. ;)

CLI apps have a few advantages over handbrake, but im testing both.
diverG wrote on 10/29/2012, 5:41 AM
VP12 is not happy using Canopus Codecs!

A render to DVDA WS Video stream fails in VP12 but is OK in VP11.

Sys 1 Gig Z-890-UD, i9 285K @ 3.7 Ghz 64gb ram, 250gb SSD system, Plus 2x2Tb m2,  GTX 4060 ti, BMIP4k video out. Vegas 19 & 122(194), Edius 8.3WG and DVResolve19 Studio. Win 11 Pro. Latest graphic drivers.

Sys 2 Laptop 'Clevo' i7 6700K @ 3.0ghz, 16gb ram, 250gb SSd + 2Tb hdd,   nvidia 940 M graphics. VP17, Plus Edius 8WG Win 10 Pro (22H2) Resolve18

 

malowz wrote on 1/1/2013, 10:05 PM
an update was released more than a month ago:

Version 6.52 (Release: 10/18/2012)
Fixed an issue with super white clipping.
Fixed an issue with decoding.

Marton wrote on 1/8/2013, 11:30 AM
malowz:
You are the KING!

Thanks for the registry tip, it works 100% :-)
malowz wrote on 1/8/2013, 6:13 PM
glad it helped ;)

previous versions of the codec had an option in the interface. i wonder why they removed. but the registry key still work ;)

im using this codec everyday, in basically everything. exporting from after effects, boris red, converting captured videos in batch, exporting... not a single problem...
Marton wrote on 1/9/2013, 4:47 AM
Yes, and the template in Vegas is really important,
because before registry hack i save a hqx template,
made the registry hack, and make a new template.
Now the 2 templates don't give the same result!
So even if i set the color_space in registry, i still can
render to "old" hqx format, but of course i don't do it.

Using the new template, rendering from Vegas to HQX,
and importing back, levels are good. Importing to Edius,
i get a little overexposed sky for example, but interesting, that
this can be corrected/revealed with YUV filter, or WITHOUT correcting,
just exporting to mpeg2 format, the video will not have
overexposed sky. So i don't know why Edius preview
monitor don't show the same levels as the rendered file?
How can editors do color corrections, etc. with this limitation?
Vegas show the sky correct in 8bit project setting, but
again overexposed in 32bit (full range) setting.

I work in 8bit, so i see all the details, what my camera record,
but don't know why not see it in edius, just on the rendered file?

(ok, its not an edius forum, but maybe somebody know the answer)

thanks!
malowz wrote on 1/9/2013, 5:44 AM
vegas saves internal codec settings on the templates, and makes sense, so you can have settings with different "internal" options. or if you make a template with quality "best" on the codec, change the codec configuration later, now your template is changed too. the way vegas works prevent this.

that's why i repeatedly said to delete previous templates.

i think edius handles the codec colorspace itself, (maybe there's an option on it?), cause this may be the reason the configuration in codec is gone. as the codecs where made for edius, makes sense.

EDIT: tested a project in 8bits/32bits, and looks like the image its the same. no highlight clipping...
Marton wrote on 1/9/2013, 7:37 AM
Did you set to 32bit full range?
You test it with a video that has a lot of highlight range? (sky, etc)

edit: oh, it depends, what's on the timeline. With HQX files i don't see the change, but with MTS files from my HX7V cam or TD10 files, it does change!
malowz wrote on 1/9/2013, 5:50 PM
yeap, HQ files i got no change (8bits vs. 32bits, gamma 2.2)

but with EX3 video files it changes. i believe cause if you specify "full levels", vegas convert the videos with format that "should" be with studio levels.

but as avi with canopus codecs are "unknown", vegas does not change it.

Marton wrote on 1/10/2013, 12:41 AM
"but with EX3 video files it changes"

Yes, and overexposures the bright areas, which had details on it. Why? I think it's just not normal, when camera can record some detail in bright area, we will loose it?
malowz wrote on 1/10/2013, 4:23 AM
well, the main question is: should video cameras record "past RGB 235"?

technically, no, but most of them do. clipping that extra, depending on the scene can be harmless (sometimes in just a bit of highlights in dresses, light sources, etc) and sometimes is a very bright sky, etc.

if you are editing a video that "should" be in studio levels (16-236) and you specify a project with full-levels, makes sense to convert, but it will ignore if your video had a "extra" image in the highlights.

this can be fixed by darkening the highlights only, or using a curve to "smooth" the very bright areas, instead of clipping it or darkening the entire image, to preserve highlights.

im testing some images here, and most of the time, the highlights have no useful information, BUT, in some cases, where i shot "too hot", some overexposed images can benefit from the extra "past 235", but after fixing, i have nothing "after 235".

so, to my eyes, its not a problem, as long you know hot to correctly deal with it.

also, i use Carbon Coder to encode to DVD, and it clips anything outside 16-235. but again, it's not a problem, as the video its already adjusted to be in 16-235 range (i use the Broadcast Colors filter on the output to make sure it's in the correct range. it also smooth the "edge" levels to reduce the clipping harshness).
wwjd wrote on 1/11/2013, 8:17 PM
anyone care to dumb this all down to a couple sentances for a non-tech guy?
1. is whatever this is, faster?
2. how does one use it?
malowz wrote on 1/11/2013, 10:31 PM
@musicvid

i did tests comparing canopus/dnxhd/cineform in this thread, just look some messages up.

and in my usage, i never had problems with it. and i use in in vegas, virtualdub, carbon coder.

but again, im not everybody, so please, test yourself too so we can have more "data".

the same way some people like and use cineform without problems, i got nothing BUT problems, so one persons only its not enough to get a full result ;)

@wwjd

1. is whatever this is, faster?
faster to what? DNxHD? yes.
2. how does one use it?
create a template in the "video for windows" export module in vegas.
musicvid10 wrote on 1/12/2013, 9:05 AM
I need to retract my previous statements completely, as I discovered I did not test Canopus initially. My lingering disappointment was actually with the Matrox codecs, which a few here have found problematic. Even the Matrox Uncompressed codec is not uncompressed, as can be seen below.

I'll step out of the way of this discussion until I have some direct knowledge to share, and sorry for what must have looked like a troll-post!
You've also got me curious about Canopus now. Those "Difference" tests you shared are interesting.

malowz wrote on 1/12/2013, 4:21 PM
yeah, matrox was always problematic, from freezing vegas on start up, crashes, red frames, etc...

one detail: uncompressed formats still have colorspaces, if i recall matrox uncompressed is 4:2:2, so it will not keep the full resolution in the color channels, that's why the difference.