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. |
|
6th April 2021, 07:10 | #1 | Link |
Registered User
Join Date: Oct 2014
Posts: 209
|
VDub2 Canopus HQX 16-bit negotiation issue
Hi,
I've recently started to pass HBD-Footage (i.e. 10 bit) through AVS+ with VDub2 de- and recompressing with the Canopus HQX codec. Everything worked fine with 8-bit. The clip is export from Edius-X NLE using the Canopus (Grassvalley) HQX Codec which is capable of up to 8K, 10bit, 4:2:2 all-intra in AVI-Containers. They arrive as YUV422P16 in AVS+ (due to info() and ffmpeg -i) loaded with FFmpegSource2(FILNAM, atrack=-1), further processing works fine. Results appear correctly in VDub2. The trouble starts with "Save as AVI" with constant "Video format negoation error". Output codec again is HQX, mode ist Fast Recompress. Menu > Video > Decode Format... shows P216 as current format. Whatever I select as at least 10bit-output format: Error persists. Compression menu shows: "Valid pixel formats RGB RGBA YUY2" although the codec is listed under "Similar to Source: P216". Any ideas ? Last edited by Hotte; 7th April 2021 at 02:43. |
6th April 2021, 16:50 | #2 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
You might want to say which version VD2 you got.
[Latest is build 44282, 19 Mar 2020:- https://sourceforge.net/projects/vdf.../version%2020/ ]
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
6th April 2021, 18:11 | #4 | Link | |
Guest
Posts: n/a
|
Quote:
|
|
6th April 2021, 18:38 | #5 | Link |
Registered User
Join Date: Oct 2014
Posts: 209
|
@Richard
all processing / Filtering is done in the avs file, I only use VDub2 as AVS+ host. Even the following avs: Code:
FFmpegSource2("F:\myhqx.avi", atrack=-1) Return info(last) I`d be happy to change the mode to "Normal recompress" and adjust "Video > Decode format...", but I cannot find a 10-16bit mode that does not return "Unable to initialize video compression. Check that the video codec is compatible with the video frame size and that the settings are correct.." This message seems inappropriate. EDIT: I was retrying to load the hqx-Exportfile directly (without avs+) into VDub2 to do a Fast Recompress with the same codec, no filters. This time HQX it is NOT in the P216 list. But I am pretty sure the codec must be able to handle this as it produces YUV422P16 itselves. Maybe the handshake information is false or misinterpreted ? Last edited by Hotte; 6th April 2021 at 19:04. |
6th April 2021, 20:18 | #6 | Link | |
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,843
|
Quote:
VFW/DirectShow etc. version of Canopus HQX doesn't support anything above 8bit. It never did. Only Edius and Resolve can export/read 8bit+ data for HQX. |
|
6th April 2021, 20:32 | #7 | Link |
Registered User
Join Date: Oct 2014
Posts: 209
|
Kolak, meanwhile I have the same impression: In vfw the HQX-codec is somehow false-detected:
VDub2 reports the codec with: Valid pixel formats: rgb rgba yuy2. This was true for its predecessors (Canopus-HQ/HQ lossless) but not for HQX. Of course the producer is asked but they won´t probably give a damn about vfw and VDub... So is there a way to override the check in VDub2 and just let compression go ? Last edited by Hotte; 6th April 2021 at 20:36. |
6th April 2021, 22:51 | #8 | Link |
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,843
|
Force YUY2 as pixel format. This will work.
There is no way to do any 8bit+ pixel formats with HQX- nothing you can do about it. It's the way how VFW/directshow codec is written. Resolve uses native support over low level integration- it doesn't touch VFW/directshow. rgb rgba yuy2 are still only valid pixels formats for HQX. Well- last time I touched it was was years ago, but I doubt anything changed. VFW/directshow are not very good technologies and pro companies don't touch them anymore. As I said- HQX outside Edius (Resolve) is 8bit only. Last edited by kolak; 6th April 2021 at 22:55. |
7th April 2021, 00:03 | #9 | Link |
Registered User
Join Date: Oct 2014
Posts: 209
|
Thanks kolak.
I have had a look at other high-quality 10-bit all-intra codecs and there we have: huffyuv, FV1 not compatible with Edius cineform compatible but very bad timeline performance ProRes compatible, relatively good timeline performance, very fast encoding, 422HQ has IQ pretty close to HQX at highest quality setting (to split hair: HQX superfine has a close to invisible advantage in preserving detail) DNxHD compatible but not available Any other suggestions ? HEVC / H.264 are not all intra so probably not the best intermediate choice... My questions: ProRes could be an candidate. I wonder why this proprietary codec is available in vfw from a technical pov (I thought vfw could not manage >8 bit ?) and from a license pov ? I mean 422HQ is pretty good and XQ freely available - how come ? Are there any other hq-codecs available and installable - how does that work ? Thanks for some elucidation |
7th April 2021, 00:25 | #10 | Link | |||
Registered User
Join Date: Sep 2007
Posts: 5,377
|
Interesting, it's faster in other programs than HQX. Probably the fastest CPU based high quality intermediate . (There are faster GPU ones, like Daniel2, NotchLC)
Quote:
Quote:
h264 can be set intra, but even with the fastest decode settings (tune fastdecode, intra) , is typically more sluggish on the timeline (high latency) compared to prores, cineform. (However, some editors can use GPU accelerated decoding of h264, but usually not 10bit422, only the 8bit variants) But x264 can be significantly higher quality at qp 1 than prores xq4444 or HQX - PSNR is typically ~8-15 db higher) Quote:
|
|||
7th April 2021, 02:32 | #12 | Link |
Registered User
Join Date: Oct 2014
Posts: 209
|
Thanks posiondeathray and Richard.
Tried cineform again with other settings - doesn`t help: Too bad: Horribly slow on the timeline. Btw. Cineform is either interleaved YUV oder RGB - right ? X264 wouldn't play at all if settings are very HQ / all-Intra but that might need more testing in detail. DNxHD (generated with ffmpeg) is by far the fastest on the timeline - of course, it is the native codec of Grassvalley. Cannot see levels / gamma issues at first sight, but I will watch out for that, also I will be doing more detail comparison with ProRes - thanks Richard. My question to @poisondeathray: With ffmpeg you mean I should call ffmpeg from outside taking the avs-script as input and output to DNxHD - right ? For some setup reason I`d prefer to continue using VDub2 as host. So the question is if there is a way to integrate ffmpeg-DNxHD into the compression list of VDub2 ? |
7th April 2021, 02:49 | #13 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,377
|
Quote:
It should be possible to implement DNxHD in avlib-1.vdplugin (I don't know how to write vdub plugin - it would have to be shekh or someone else) |
|
7th April 2021, 21:09 | #14 | Link |
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,843
|
Where?
Cineform is top choice for editing. In app which properly supports it (Premiere, Resolve, Scratch, Vegas if I'm correct) you have amazing performance and at any time you can increase it by miles just by swapping decoding to 1/2 (or further) resolution. Last edited by kolak; 7th April 2021 at 21:13. |
7th April 2021, 21:36 | #15 | Link | |
Registered User
Join Date: Oct 2014
Posts: 209
|
Quote:
So this is what I do: - I do not have any raw video file but just a 4K 10bit 4.2.2 25bit mov out of a Panasonic G9 - I export this from Edius-X with Canopus HQX 10 bit. Normally this is perfect input for AVS+, but today I just load it into VDub2 - In VDub2 this becomes YUV422P16 - Select Cineform as compressor, 10 bit, YUV422, Fast Recompress: Negotiation Error - Select Cineeform 16-bit, YUV422, Fast Recompress: Negotiation Error - So what do you recommend to do next ? Normal / Decode Format - Which ? |
|
7th April 2021, 21:47 | #16 | Link | |
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,843
|
Quote:
Try before you hit import using options button- this may let you force VFW HQX decoder not ffmpeg. If not when you go to Compression and choose GV HQX then go to Pixel Formats and switch to YUY2. This should let you export to GV HQX. If not try also forcing Decode format to YUY2. You will loose 10bit precision. Instead all of this use virtual AVI file system in AVS. Mount your AVS script as fake AVI and then import that AVI back to Edius. Not sure if AVS+ supports it but in vapoursynth you can mount final script result as v210 format, so this way you can preserve 10bit. Edius should be fine with 10bit (v210 ) AVI. If not use YUY2. No need for any intermediate files. You can use "AVS filters" directly in Edius. Last edited by kolak; 7th April 2021 at 21:51. |
|
7th April 2021, 23:07 | #17 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,377
|
Quote:
For a native 10bit file (not stacked), Cineform in vdub2 requires normal or full recompress. It might be the same for stacked , not sure. I would avoid stacked all together if possible. You can verify output with other tools, such as 10bit waveforms. ffmpeg has one, and avisynth does too now. If you test a 0-1023 gradient, you will see if there were problems somewhere , such as an 8bit intermediate step somewhere, which will manifest as gaps One bizarre issue with some DCT based codecs like DNxHR/DNxHD and prores to a lesser extent is severe noise on some types of patterns like small checkers. It's not subsampling related (4:4:4 is affected too). Official Avid and ffmpeg implementations are affected. I've reproduced it on other patterns, other colors, other grid sizes. You can see some of the disussion here starting around post 672 . x264 (also dct based) , cineform (wavelet based) are unaffected https://forum.doom9.org/showthread.php?p=1855173 Last edited by poisondeathray; 7th April 2021 at 23:16. |
|
8th April 2021, 00:25 | #18 | Link | |
Registered User
Join Date: Oct 2014
Posts: 209
|
Quote:
|
|
7th April 2021, 02:25 | #19 | Link |
Registered User
Join Date: Mar 2015
Posts: 775
|
Hi,
maybe the issue with "Similar to Source: P216" was because the codec was selected before choosing "Similar to source"? This filtering of codecs does not remove the selected one even if it appears inappropriate.
__________________
VirtualDub2 |
|
|