Log in

View Full Version : VirtualDub2


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 [27] 28 29 30 31 32 33 34 35 36 37 38 39 40

SeeMoreDigital
2nd June 2024, 15:07
Thanks for the idea about VLC being out of date. But no, updating VLC to the latest version still doesn't let it read HFYU files.Are your HFYU files in a container?

LigH
2nd June 2024, 15:15
In my quick test, I exported a video to FFmpeg's Huffyuv in YUV 4:2:0 as well as 4:2:2, each with 8 bit precision, both in an AVI container (where Huffyuv video is most common). VLC 3.0.20 did not support either.

richardpl
2nd June 2024, 15:18
And MPV player.

v0lt
3rd June 2024, 04:31
And MPV player.
mpv has no problem opening 'FFVH' videos.

LigH
3rd June 2024, 15:04
@v0lt: richardpl wanted to add MPV to my list of "alternatives to VLC", not to "same issue as VLC"...

LigH
11th June 2024, 18:02
Good news: VLC will fix this issue still in v3 branch. Seems that the AVI demultiplexer does not always report format specific data reliably.

LigH
20th June 2024, 20:01
@v0lt: Are you possibly able to update the x264 plugins as well? They are from 2019 and do not yet support e.g. the --qpfile parameter...

v0lt
22nd June 2024, 07:00
@v0lt: Are you possibly able to update the x264 plugins as well? They are from 2019 and do not yet support e.g. the --qpfile parameter...
There's a more complex build process using GCC. For me it is difficult and long.
https://sourceforge.net/p/vdfiltermod/x264/ci/master/tree/

LigH
22nd June 2024, 07:25
So volunteers with MSCV might do it easier?

LigH
23rd June 2024, 06:23
An updated plugin has been posted in the VideoHelp forum (https://forum.videohelp.com/threads/414223-VirtualDub2-Fork-By-v0lt#post2740481), did not test yet...

rgr
28th June 2024, 19:51
avlib.vdplugin 0.7.0.93 (https://github.com/v0lt/avlib_vdplugin/releases/tag/0.7.0) released
VirtualDub2 44282 with updated plugin is also available.


With the new avlib-1 I lost the ability to save in ffmpeg/ProRes (the plugin has only 0.5MB instead of 40MB compared to the old version).

v0lt
29th June 2024, 05:21
(the plugin has only 0.5MB instead of 40MB compared to the old version).
old avlib-1.vdplugin - 39,1 MB
new avlib-1.vdplugin + ffmpeg DLLs - 101 MB

LigH
29th June 2024, 05:38
Works for me - when I select "Show all formats" at the bottom of the codecs list and allow color space conversion as necessary. When the option is set to "Similar to source: [CS]", some codecs may be hidden when they don't support the current color space.

The codecs are now (dynamically linked) in avcodec-61.dll and avformat-61.dll in the main directory, not in plugins64.

blob2500
26th July 2024, 08:43
An updated plugin has been posted in the VideoHelp forum (https://forum.videohelp.com/threads/414223-VirtualDub2-Fork-By-v0lt#post2740481), did not test yet...

I updated it too.
I have a question: in the 10-bit version, shouldn't CRF have a range of 0-63 (or -12-51), instead of 0-51?

(similar question for qp range)

https://i.postimg.cc/yYjq9xPP/x264-10-window.jpg

In Help of x264 CLI:

Ratecontrol:

-q, --qp <integer> Force constant QP (0-81, 0=lossless)
-B, --bitrate <integer> Set bitrate (kbit/s)
--crf <float> Quality-based VBR (-12-51)[23.0]


In Help of x264 plugin:


Ratecontrol:

-q, --qp <integer> Force constant QP (0-51, 0=lossless)
-B, --bitrate <integer> Set bitrate (kbit/s)
--crf <float> Quality-based VBR (0-51) [23.0]

tormento
26th July 2024, 11:14
Everytime someone encodes in x264 10 bit, a satellite dies in the sky.

nji
26th July 2024, 15:13
By the time I built some filter sequences that perform special tasks.
For example contrast mask filter (a sequence of 8 filter ops).
I saved them as .vdscript files.
Now from time to time it happens that I need to perform
two or more of these sequences.
I haven't found a way to do this in VD2 GUI,
but instead copy the .vdscript files into a single file.

There surely must be a more elegant way for this common task?
Something with jobs, projects or that strange "Save" button in filter dialog?

FranceBB
26th July 2024, 19:14
Everytime someone encodes in x264 10 bit, a satellite dies in the sky.

Blame Sony and Panasonic who made it become standard with XAVC and AVC Ultra respectively.

LigH
26th July 2024, 19:37
I remember some people advertising it for encoding cartoons because it can handle the smooth colour ramps between the outlines better... I can't report from own experience, though.

tormento
27th July 2024, 07:26
I remember some people advertising it for encoding cartoons because it can handle the smooth colour ramps between the outlines better... I can't report from own experience, though.


You can’t create data where there isn’t. It’s just a matter of better compression.

HEVC overcame all that mess.

blob2500
27th July 2024, 11:19
I was just asking those who are more expert than me if the x264vdplugin-10-bit interface is correct or incomplete regarding the qp and crf range, not if it makes sense or not to use 10-bit depth with h.264 ;)

v0lt
30th July 2024, 20:10
avlib_vdplugin 0.7.0.94 (https://disk.yandex.ru/d/R3Ob8yREy4ChvA)
Fixed the use of audio encoders.

Hushpower
31st July 2024, 01:44
Excellent , that fixed it, thanks Volt. :thanks:

rgr
4th August 2024, 15:57
VDub2.0 with new plugins and VDub2.1 hang with my Avisynth script. Quite an extensive script, but old VDub2.0 works OK.
The program hangs, the CPU load is 0% and nothing happens. I can only kill the process. Any idea how to diagnose why this is happening?

v0lt
4th August 2024, 20:46
VDub2.0 with new plugins and VDub2.1 hang with my Avisynth script.
avlib_vdplugin 0.7.0.94?
I removed the use of the plugin for Avisynth scripts.
Please make a simple script with the problem to test. And upload it and the related files.

jay123210599
4th August 2024, 21:45
How do I create 32 bit images using VirtualDub2?

v0lt
5th August 2024, 14:44
How do I create 32 bit images using VirtualDub2?
Video > Copy output frame to clipboard (Ctrl+2)

jay123210599
5th August 2024, 15:23
Video > Copy output frame to clipboard (Ctrl+2)

I did it, now how do I export it as 32-bit png file? Also, how do I make image sequences of 32-bit png files?

v0lt
5th August 2024, 16:24
I did it, now how do I export it as 32-bit png file?
Paint > Ctrl+V > Cut (if necessary) > Save As > PNG...
Paint.NET > Ctrl+Alt+V > Ctrl+S > PNG...
IrfanView > Ctrl+V > Ctrl+S > PNG...

v0lt
5th August 2024, 16:27
avlib_vdplugin 0.7.0.98 (https://disk.yandex.ru/d/R3Ob8yREy4ChvA)
Improved ignoring of AviSynth scripts to prevent VirtualDub 2 interface from freezing in some situations.

rgr
5th August 2024, 16:50
avlib_vdplugin 0.7.0.98 (https://disk.yandex.ru/d/R3Ob8yREy4ChvA)
Improved ignoring of AviSynth scripts to prevent VirtualDub 2 interface from freezing in some situations.

VDub2.0 with new plugins and VDub2.1 hang with my Avisynth script.

Problem solved :)

jay123210599
5th August 2024, 17:11
Paint > Ctrl+V > Cut (if necessary) > Save As > PNG...
Paint.NET > Ctrl+Alt+V > Ctrl+S > PNG...
IrfanView > Ctrl+V > Ctrl+S > PNG...

And my other question of making image sequences of 32-bit png files from videos?

v0lt
5th August 2024, 17:26
And my other question of making image sequences of 32-bit png files from videos?
Use FFmpeg.
VirtualDub2 saves PNG sequence in 24-bit RGB format. And if avlib_vdplugin is used, saving the sequence may fail (there are problems with getting the right frame).

Problem solved :)
Fine.

jay123210599
5th August 2024, 18:09
How do I make ffmpeg as the default encoder (not as an external encoder) for all functions in VirtualDub2? I mean, how do I use it in VirtualDub2 for exacting frames and making image sequences, encoding videos, cutting/trimming videos, and burning in subtitles?

v0lt
5th August 2024, 20:02
How do I make ffmpeg as the default encoder (not as an external encoder) for all functions in VirtualDub2?
There's no way you can.

jay123210599
5th August 2024, 23:41
VirtualDub2 keeps producing and getting the wrong colors for images. What should I do?

Correct Colors:
https://imgur.com/a/pXfCGwz

Wrong Colors (VirtualDub2, what I got):
https://imgur.com/a/YocRFx8

Here the information for my video, by the way:
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Format settings, Slice count : 4 slices per frame
Codec ID : V_MPEG4/ISO/AVC
Duration : 23 min 43 s
Bit rate mode : Variable
Maximum bit rate : 40.0 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Time code of first frame : 00:59:59:00
Default : No
Forced : No

LigH
6th August 2024, 01:44
Not enough details; MediaInfo has a more verbose output level which should also show colorimetry details (Rec.601/Rec.709, TV/PC scale).

jay123210599
6th August 2024, 01:49
Not enough details; MediaInfo has a more verbose output level which should also show colorimetry details (Rec.601/Rec.709, TV/PC scale).

How do I activate the more "verbose output level" to show the colorimetry details?

LigH
6th August 2024, 02:02
If you use the CLI version of MediaInfo, add the parameter -f

Or use https://github.com/stax76/MediaInfo.NET and look in the "Advanced" results or the video stream results.

There may be such fields present, but are not mandatory:
colour_description_present : Yes
colour_description_present_Source: Stream
Color range : Limited
colour_range_Source : Stream
colour_primaries_Source : Stream
transfer_characteristics_Source : Stream
Matrix coefficients : BT.470 System B/G
matrix_coefficients_Source : Stream

jay123210599
6th August 2024, 02:12
If you use the CLI version of MediaInfo, add the parameter -f

Or use https://github.com/stax76/MediaInfo.NET and look in the "Advanced" results or the video stream results.

There may be such fields present, but are not mandatory:
colour_description_present : Yes
colour_description_present_Source: Stream
Color range : Limited
colour_range_Source : Stream
colour_primaries_Source : Stream
transfer_characteristics_Source : Stream
Matrix coefficients : BT.470 System B/G
matrix_coefficients_Source : Stream

Here it is. I should also mention that the video is an anime episode.

Count : 392
Count of stream of this kind : 1
Kind of stream : Video
Kind of stream : Video
Stream identifier : 0
StreamOrder : 1
ID : 2
ID : 2
Unique ID : 1
Format : AVC
Format : AVC
Format/Info : Advanced Video Codec
Format/Url : http://developers.videolan.org/x264.html
Commercial name : AVC
Format profile : High@L4.1
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, CABAC : Yes
Format settings, Reference frames : 4
Format settings, Reference frames : 4 frames
Format settings, Slice count : 4
Format settings, Slice count : 4 slices per frame
Internet media type : video/H264
Codec ID : V_MPEG4/ISO/AVC
Codec ID/Url : http://ffdshow-tryout.sourceforge.net/
Duration : 1423090
Duration : 23 min 43 s
Duration : 23 min 43 s 90 ms
Duration : 23 min 43 s
Duration : 00:23:43.090
Duration : 00:23:41:16
Duration : 00:23:43.090 (00:23:41:16)
Bit rate mode : VBR
Bit rate mode : Variable
Maximum bit rate : 39959808
Maximum bit rate : 40.0 Mb/s
Width : 1920
Width : 1 920 pixels
Height : 1080
Height : 1 080 pixels
Stored_Height : 1088
Sampled_Width : 1920
Sampled_Height : 1080
Pixel aspect ratio : 1.000
Display aspect ratio : 1.778
Display aspect ratio : 16:9
Frame rate mode : CFR
Frame rate mode : Constant
Frame rate : 23.976
Frame rate : 23.976 (24000/1001) FPS
FrameRate_Num : 24000
FrameRate_Den : 1001
Frame count : 34120
Color space : YUV
Chroma subsampling : 4:2:0
Chroma subsampling : 4:2:0
Bit depth : 8
Bit depth : 8 bits
Scan type : Progressive
Scan type : Progressive
Delay : 0
Delay : 00:00:00.000
Delay : 00:00:00:00
Delay : 00:00:00.000 (00:00:00:00)
Delay, origin : Container
Delay, origin : Container
Time code of first frame : 00:59:59:00
TimeCode_DropFrame : No
Default : No
Default : No
Forced : No
Forced : No
Buffer size : 30000000 / 30000000
FrameCount_Source : General_Duration
Duration_Source : General_Duration

v0lt
6th August 2024, 04:35
Many SDR rips do not have colorimetry data. This is a problem because players and video editors have to guess from the frame size, which can be wrong.

jay123210599
6th August 2024, 12:05
Many SDR rips do not have colorimetry data. This is a problem because players and video editors have to guess from the frame size, which can be wrong.

It's a 1080p Blu-Ray remux, so what do I do to fix it?

LigH
6th August 2024, 13:15
Depends on your goal and your methods...

Avisynth has functions to convert between YUV and RGB with different matrices. So at least you could use that to test which conversion matrix fits your needs. And then ... well, maybe a special tool can patch the video stream to add colorimetry metadata.

But that is already way beyond the purpose of VirtualDub2.

v0lt
6th August 2024, 14:33
It's a 1080p Blu-Ray remux, so what do I do to fix it?
I don't have your file (or a small sample), so I can't say anything.

I have a BD with this information:
General
ID : 0 (0x0)
Complete name : ...\BDMV\STREAM\00011.m2ts
Format : BDAV
Format/Info : Blu-ray Video
File size : 606 MiB
Duration : 2 min 42 s
Overall bit rate mode : Variable
Overall bit rate : 31.3 Mb/s
Maximum Overall bit rate : 48.0 Mb/s
Frame rate : 29.970 FPS

Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference fra : 4 frames
Format settings, Slice count : 4 slices per frame
Codec ID : 27
Bit rate mode : Variable
Maximum bit rate : 36.0 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 29.970 (30000/1001) FPS
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : MBAFF
Scan type, store method : Interleaved fields
Scan order : Top Field First
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
...
All the necessary data is present: Color range, Color primaries, Transfer characteristics, Matrix coefficients.

jay123210599
6th August 2024, 14:48
I don't have your file (or a small sample), so I can't say anything.

I have a BD with this information:
General
ID : 0 (0x0)
Complete name : ...\BDMV\STREAM\00011.m2ts
Format : BDAV
Format/Info : Blu-ray Video
File size : 606 MiB
Duration : 2 min 42 s
Overall bit rate mode : Variable
Overall bit rate : 31.3 Mb/s
Maximum Overall bit rate : 48.0 Mb/s
Frame rate : 29.970 FPS

Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference fra : 4 frames
Format settings, Slice count : 4 slices per frame
Codec ID : 27
Bit rate mode : Variable
Maximum bit rate : 36.0 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 29.970 (30000/1001) FPS
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : MBAFF
Scan type, store method : Interleaved fields
Scan order : Top Field First
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
...
All the necessary data is present: Color range, Color primaries, Transfer characteristics, Matrix coefficients.

Here's a sample.

https://mega.nz/file/cFZUUBqA#W5zPahLD66OpRAwYKvZrJqc-3O81i2NRObIy3nIqlLM

v0lt
6th August 2024, 15:33
Method of correcting parameters for BT.709:
ffmpeg -i "Blu-Ray Remux Sample.mkv" -map 0 -c copy -bsf:v h264_metadata=colour_primaries=1:transfer_characteristics=1:matrix_coefficients=1 "Blu-Ray Remux Sample_fix.mkv"

jay123210599
6th August 2024, 16:49
Method of correcting parameters for BT.709:
ffmpeg -i "Blu-Ray Remux Sample.mkv" -map 0 -c copy -bsf:v h264_metadata=colour_primaries=1:transfer_characteristics=1:matrix_coefficients=1 "Blu-Ray Remux Sample_fix.mkv"

It worked! Now how do I do this in VirtualDub2?

Also, another problem that the both and new samples produced this glitched image. How do I fix that?

https://imgur.com/a/7YJsTUX

v0lt
6th August 2024, 17:56
It worked! Now how do I do this in VirtualDub2?
There is no such functionality. You want too much from VirtualDub and do not understand for what purposes it was made.

poisondeathray
6th August 2024, 18:01
When video is unflagged, vdub2 assumes Rec 601 for the RGB conversion. Usually this will be wrong for most HD video

A workaround in vdub2 would be, video => filters => alias format => color space Rec.709

rgr
6th August 2024, 18:03
When video is unflagged, vdub2 assumes Rec 601 for the RGB conversion. Usually this will be wrong for most HD video

A workaround in vdub2 would be, video => filters => alias format => color space Rec.709

Why so? In VDub in Video->Decode Format you can change from 601 to 709. Even set 709 as default.

jay123210599
6th August 2024, 18:16
Both solutions worked, but what about my other problem with the faulty image?