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]

rgr
3rd February 2026, 21:34
How do I use Caching Input Driver?

File-->Open video file-->Open using...

jay123210599
13th February 2026, 00:11
File-->Open video file-->Open using...

It doesn't work for .vpy scripts.

StainlessS
13th February 2026, 13:24
It doesn't work for .vpy scripts.

Maybe like so, [Set, "Files Of Type"] [EDIT: Untested, I dont use vpy]
https://i.postimg.cc/Jhk32STw/Untitled-00.jpg (https://postimages.org/)

v0lt
13th February 2026, 14:32
Test build VirtualDub2 v2.5.2.1123 (https://disk.yandex.ru/d/R3Ob8yREy4ChvA)
Fixed display of the duration of the selected range in the status.
Potential memory leaks have been fixed.
32-bit "PICVideo Lossles JPEG Codec" (pvljpg20.dll) is not supported because it crashes when opening the video compression selection window.
Fixed video capture with compression in the "FFmpeg FFV1" and "x264 8 bit" codecs.

jay123210599
14th February 2026, 01:07
Maybe like so, [Set, "Files Of Type"] [EDIT: Untested, I dont use vpy]
https://i.postimg.cc/Jhk32STw/Untitled-00.jpg (https://postimages.org/)

How do I use Caching Input Driver for my scripts, then?

jay123210599
14th February 2026, 01:14
How do I set the time format to this: 0:00:06.95

nji
25th February 2026, 15:48
https://www.virustotal.com/gui/url/92cca0b470861d357b487344b287559b60d79bcdbc76863f95f8b93cea51c0c0?nocache=1

Thundik81
25th February 2026, 18:33
https://www.virustotal.com/gui/url/92cca0b470861d357b487344b287559b60d79bcdbc76863f95f8b93cea51c0c0?nocache=1

It's a scan for the link!

https://github.com/v0lt/VirtualDub2/releases
>
sha256:bdaed02fd92ddd67e9ee43ddc9cacb79192462833fc122e1e2608fe1f6d8ac93
>
https://www.virustotal.com/gui/file/bdaed02fd92ddd67e9ee43ddc9cacb79192462833fc122e1e2608fe1f6d8ac93
>
Up to you to Reanalyze all files included:
https://www.virustotal.com/gui/file/bdaed02fd92ddd67e9ee43ddc9cacb79192462833fc122e1e2608fe1f6d8ac93/relations

nji
25th February 2026, 18:54
You are right, thank you. :)
Sorry about that!

However that's kind of confusing at the virustotal page.
I always thought that by entering an URL there would make unnecessary to d/l the file,
but have virustotal analyse the file directly from the URL given.
This doesn't seem to be possible?

Columbo
25th February 2026, 19:43
How do I set the time format to this: 0:00:06.95 What time format? Where?

nji
27th February 2026, 21:13
I was about to use an external encoder (for the first time) of ffmpeg.

What I need is to encode the video, leave the audio as-is and put it into an mkv container.

But doing File/Export/UsingExternalEncoder I always get:
Invalid command line template: "-i - -c:v libsvtav1 -preset 5 -crf 22 -pix_fmt yuv420p10le -c:a copy "%file%""

What I did before:

Options/ExternalEncoders...
Have to define at the Encoders tab first. My entries:
Video Encoder
C:\<FullPathToFFMPEG>\ffmpeg.exe
-i - -c:v libsvtav1 -preset 5 -crf 22 -pix_fmt yuv420p10le -c:a copy "%file%"
%(outputname).video
I do not define an audio encoder in the other tab.
Next go to Encoder Sets
and define a set with only the former video encoder entered.
That's it.

What did I do wrong?

v0lt
28th February 2026, 15:04
Options/ExternalEncoders...
Have to define at the Encoders tab first. My entries:
Video Encoder
C:\<FullPathToFFMPEG>\ffmpeg.exe
-i - -c:v libsvtav1 -preset 5 -crf 22 -pix_fmt yuv420p10le -c:a copy "%file%"
%(outputname).video
I do not define an audio encoder in the other tab.
Next go to Encoder Sets
and define a set with only the former video encoder entered.
That's it.

What did I do wrong?
It is obvious that an encoder of the "Video encoder" type will not be given audio data.

nji
28th February 2026, 16:03
It is obvious that an encoder of the "Video encoder" type will not be given audio data.

OK, I removed "-c:a copy" from the video encoder's parameters.

Then additionally defined an audio encoder:
Command as of video encoder, options as:
-i - -c:a copy "%file%"
Input format: Raw audio data (or WAV file, doesn't matter).
Compression: Bypass...

Next added the defined audio encoder to the encoder set.
(Still no multiplexer defined).

Then do the Export/ ExternalEncoder.
Message:
Invalid command line template: -i - -c:a copy "%file%"

What might be obviously wrong now?

nji
28th February 2026, 20:31
Very strange... there seems to be no knowledge in the forum how to use external encoders :confused:

However I just discovered that your app can't read vdscript files (saved by itself), whereas orig VD2 has no problem with.

v0lt
1st March 2026, 11:23
Very strange... there seems to be no knowledge in the forum how to use external encoders :confused:
Sticky: VirtualDub External Encoder Tutorials (https://forum.doom9.org/showthread.php?t=171141)

nji
1st March 2026, 16:15
I already saw that source, but as it is as old (for VD1.10!), I wouldn't have expected that these entries do still work for VD2.x.

OK, with them I tried a simplified example:
source: h264+aac movie.

wanted destination: x265 lossless + audio copy.
ffmpeg CLI: ffmpeg -i SourceAVC1.mp4 -c:v libx265 -crf 0 -c:a copy s.mkv does fine.

Now define as external encoder in VD2.5:
Video encoder arguments:
-f rawvideo -c:v libx265 -crf 0 -i - "%(tempvideofile)"
Audio encoder arguments:
-i - -c:a copy "%(tempaudiofile)". Other tab: WAV file and bypass compression.
Addition simple muxing by ffmpeg of both defined.

Start stops at once. Log:
Beginning dub operation.
[i] Dub: Input (decompression) format is: YUV420.
[i] Dub: Output (compression) format is: YUV420.
[i] Dub: Command line encoding started with format: YUV420.
[i] video encoder: "D:\<Path2ffmpeg>\ffmpeg.exe" -f rawvideo -c:v libx265 -crf 0 -i - "D:\video.mkv"
[i] audio encoder: "D:\<Path2ffmpeg>\ffmpeg.exe" -i - -c:a copy "D:\audio.aac"
[i] VideoEnc: ffmpeg version 2026-02-26-git-6695528af6-essentials_build-www.gyan.dev Copyright (c) 2000-2026 the FFmpeg developers
[i] VideoEnc: built with gcc 15.2.0 (Rev11, Built by MSYS2 project)
[i] VideoEnc: configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-cairo --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-openal --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enab
[i] VideoEnc: e-librubberband
[i] AudioEnc: ffmpeg version 2026-02-26-git-6695528af6-essentials_build-www.gyan.dev Copyright (c) 2000-2026 the FFmpeg developers
[i] AudioEnc: built with gcc 15.2.0 (Rev11, Built by MSYS2 project)
[i] AudioEnc: configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-cairo --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-openal --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enab
[i] AudioEnc: e-librubberband
[i] VideoEnc: libavutil 60. 25.100 / 60. 25.100
[i] VideoEnc: libavcodec 62. 23.103 / 62. 23.103
[i] VideoEnc: libavformat 62. 10.101 / 62. 10.101
[i] VideoEnc: libavdevice 62. 2.100 / 62. 2.100
[i] VideoEnc: libavfilter 11. 12.100 / 11. 12.100
[i] VideoEnc: libswscale 9. 3.100 / 9. 3.100
[i] VideoEnc: libswresample 6. 2.100 / 6. 2.100
[i] VideoEnc: Unknown decoder 'libx265'
[i] VideoEnc: Error opening input file -.
[i] VideoEnc: Error opening input files: Decoder not found
[i] AudioEnc: libavutil 60. 25.100 / 60. 25.100
[i] AudioEnc: libavcodec 62. 23.103 / 62. 23.103
[i] AudioEnc: libavformat 62. 10.101 / 62. 10.101
[i] AudioEnc: libavdevice 62. 2.100 / 62. 2.100
[i] AudioEnc: libavfilter 11. 12.100 / 11. 12.100
[i] AudioEnc: libswscale 9. 3.100 / 9. 3.100
[i] AudioEnc: libswresample 6. 2.100 / 6. 2.100
[i] AudioEnc: [in#0/wav @ 000000000052d340] Packet corrupt (stream = 0, dts = NOPTS).
[i] AudioEnc: Input #0, wav, from 'fd:':
[i] AudioEnc: Duration: N/A, bitrate: 2822 kb/s
[i] AudioEnc: Stream #0:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
[i] AudioEnc: Stream mapping:
[i] AudioEnc: Stream #0:0 -> #0:0 (copy)
[i] AudioEnc: [adts @ 000000000052ecc0] adts muxer supports only codec aac for type audio
[i] AudioEnc: [out#0/adts @ 0000000000531300] Could not write header (incorrect codec parameters ?): Invalid argument
[i] AudioEnc: Conversion failed!
[E] Error: Write error occurred on file "<anonymous pipe>": Die Pipe wird gerade geschlossen.
Ending operation.

What is wrong with this super-simple usage?

v0lt
1st March 2026, 19:06
What is wrong with this super-simple usage?
I think you forgot to pass the RAW Video parameters.

If the task is to encode only video, then a simple example is as follows:
Video encoder
ffmpeg.exe
-f rawvideo -s %(width)x%(height) -r %(fps) -i - -c:v libx264 -y %(outputname)
%(outputname)
You can also specify -pix_fmt and "-x264opts colormatrix=bt709" if needed.

This could be found in the link I wrote above.
Sample1 (https://web.archive.org/web/20191122113000/https://encodingtalk.com/threads/virtualdub-save-direct-to-mp4-fraps-to-youtube-with-external-encoders.2446/page-2#post-13731), Sample2 (https://web.archive.org/web/20150928230131/http://forums.virtualdub.org/index.php?act=ST&f=3&t=18840&st=120#entry93547).

nji
1st March 2026, 21:30
Thank you for your assistance :)

Acutually parameters width and height seem to be mandatory.
I didn't expect that.
I thought that VD2 just "calls" the encoder (same as in CLI).

Audio encoder, bypass compression:
It seems I misunderstood that.
I thought when defining an external encoder, it would be possible to
somehow leave the audio as-is (like the CLI ffmpeg command: -c:a copy).
But if I'm right, then that isn't possible at all?
By defining an external decoder, VD2 forwards the (de-compressed, if compr. bypassed) raw audio
to audio encoder, so you have to compress with the audio encoder again.
Right?
Or do I miss something?
Is it possible to pass-through the compressed audio stream from source
untouched to the muxer? :confused:

v0lt
2nd March 2026, 08:51
Is it possible to pass-through the compressed audio stream from source
untouched to the muxer? :confused:
The Caching input driver (avlib-1.vdplugin) always decodes the audio.

Some other input drivers may output the audio track as is. But I don't know if this works with external encoders.

nji
2nd March 2026, 09:20
Actually I use a Quicktime driver for Audio (per "Audio from other file..."),
if I don't change video timeline, and so audio can remain,
and doesn't have to be decompressed and recompressed again.
Works perfect within VD2.

But I haven't been successful in passing that compressed stream
to an external encoder.
And I haven't found any example/ explanation on that.
I wonder, as it seems a usual case.

Did anybody manage that?

nji
2nd March 2026, 09:52
In my example:
Say I have an aac audio file (e.g. the as-is extracted audio track (aac)
from my video file; take AviDemux for extraction).
In VD2's external decoder thing: how do I get that to "%(tempaudiofile)"?
Using ffmpeg CLI the command is:
ffmpeg -i SourceAVC1.aac -c:a copy bitcopy.aac
So the definition for VD2 Audio Encoder should be like:
ffmpeg
-i - -c:a copy "%(tempaudiofile)"
Right?
When starting the external decoder set, it interupts after few seconds.
Log:
Beginning dub operation.
[i] Dub: Input (decompression) format is: YUV420.
[i] Dub: Output (compression) format is: YUV420.
[i] Dub: Command line encoding started with format: YUV420.
[i] video encoder: "D:\<Path2FFmpeg>\ffmpeg.exe" -f rawvideo -s 540x360 -r 4803/200 -i - -c:v libx265 -crf 0 "D:\video.mkv"
[i] audio encoder: "D:\<Path2FFmpeg>\ffmpeg-2026-02-26-git-6695528af6-essentials_build\bin\ffmpeg.exe" -i - -c:a copy "D:\audio.aac"
[i] VideoEnc: ffmpeg version 2026-02-26-git-6695528af6-essentials_build-www.gyan.dev Copyright (c) 2000-2026 the FFmpeg developers
[i] VideoEnc: built with gcc 15.2.0 (Rev11, Built by MSYS2 project)
[i] VideoEnc: configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-cairo --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-openal --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enab
[i] VideoEnc: e-librubberband
[i] AudioEnc: ffmpeg version 2026-02-26-git-6695528af6-essentials_build-www.gyan.dev Copyright (c) 2000-2026 the FFmpeg developers
[i] AudioEnc: built with gcc 15.2.0 (Rev11, Built by MSYS2 project)
[i] AudioEnc: configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-cairo --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-openal --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enab
[i] AudioEnc: e-librubberband
[i] VideoEnc: libavutil 60. 25.100 / 60. 25.100
[i] VideoEnc: libavcodec 62. 23.103 / 62. 23.103
[i] VideoEnc: libavformat 62. 10.101 / 62. 10.101
[i] VideoEnc: libavdevice 62. 2.100 / 62. 2.100
[i] VideoEnc: libavfilter 11. 12.100 / 11. 12.100
[i] VideoEnc: libswscale 9. 3.100 / 9. 3.100
[i] VideoEnc: libswresample 6. 2.100 / 6. 2.100
[i] VideoEnc: Input #0, rawvideo, from 'fd:':
[i] VideoEnc: Duration: N/A, start: 0.000000, bitrate: 56022 kb/s
[i] VideoEnc: Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 540x360, 56022 kb/s, 24.02 tbr, 24.02 tbn
[i] VideoEnc: Stream mapping:
[i] VideoEnc: Stream #0:0 -> #0:0 (rawvideo (native) -> hevc (libx265))
[i] VideoEnc: x265 [info]: HEVC encoder version 4.1+223-50087d0b8
[i] VideoEnc: x265 [info]: build info [Windows][GCC 15.2.0][64 bit] 8bit+10bit+12bit
[i] VideoEnc: x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[i] VideoEnc: x265 [info]: Main profile, Level-2.1 (Main tier)
[i] VideoEnc: x265 [info]: Thread pool created using 8 threads
[i] VideoEnc: x265 [info]: Slices : 1
[i] VideoEnc: x265 [info]: frame threads / pool features : 3 / wpp(6 rows)
[i] VideoEnc: x265 [warning]: Source height < 720p; disabling lookahead-slices
[i] AudioEnc: libavutil 60. 25.100 / 60. 25.100
[i] AudioEnc: libavcodec 62. 23.103 / 62. 23.103
[i] AudioEnc: libavformat 62. 10.101 / 62. 10.101
[i] AudioEnc: libavdevice 62. 2.100 / 62. 2.100
[i] AudioEnc: libavfilter 11. 12.100 / 11. 12.100
[i] AudioEnc: libswscale 9. 3.100 / 9. 3.100
[i] AudioEnc: libswresample 6. 2.100 / 6. 2.100
[i] VideoEnc: x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
[i] VideoEnc: x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
[i] VideoEnc: x265 [info]: ME / range / subpel / merge : hex / 57 / 2 / 3
[i] VideoEnc: x265 [info]: Keyframe min / max / scenecut / bias : 24 / 250 / 40 / 5.00
[i] VideoEnc: x265 [info]: Lookahead / bframes / badapt : 20 / 4 / 2
[i] VideoEnc: x265 [info]: b-pyramid / weightp / weightb : 1 / 1 / 0
[i] VideoEnc: x265 [info]: References / ref-limit cu / depth : 3 / off / on
[i] VideoEnc: x265 [info]: AQ: mode / str / qg-size / cu-tree : 2 / 1.0 / 32 / 1
[i] VideoEnc: x265 [info]: Rate Control / qCompress : CRF-0.0 / 0.60
[i] VideoEnc: x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip mode=1 signhide tmvp
[i] VideoEnc: x265 [info]: tools: b-intra strong-intra-smoothing deblock sao dhdr10-info
[i] VideoEnc: Output #0, matroska, to 'D:\video.mkv':
[i] VideoEnc: Metadata:
[i] VideoEnc: encoder : Lavf62.10.101
[i] VideoEnc: Stream #0:0: Video: hevc, yuv420p(tv, progressive), 540x360, q=2-31, 24.02 fps, 1k tbn
[i] VideoEnc: Metadata:
[i] VideoEnc: encoder : Lavc62.23.103 libx265
[i] VideoEnc: Side data:
[i] VideoEnc: CPB properties: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
[i] VideoEnc: frame= 7 fps=0.0 q=3.5 size= 3KiB time=00:00:00.20 bitrate= 115.3kbits/s speed=0.417x elapsed=0:00:00.49
[i] VideoEnc: frame= 33 fps= 33 q=6.2 size= 3KiB time=00:00:01.29 bitrate= 18.6kbits/s speed=1.29x elapsed=0:00:01.00
[i] AudioEnc: Input #0, wav, from 'fd:':
[i] AudioEnc: Duration: N/A, bitrate: 2822 kb/s
[i] AudioEnc: Stream #0:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
[i] AudioEnc: Stream mapping:
[i] AudioEnc: Stream #0:0 -> #0:0 (copy)
[i] AudioEnc: [adts @ 00000000004aec00] adts muxer supports only codec aac for type audio
[i] AudioEnc: [out#0/adts @ 00000000004b1300] Could not write header (incorrect codec parameters ?): Invalid argument
[i] AudioEnc: Conversion failed!
[i] VideoEnc: frame= 59 fps= 39 q=3.0 size= 3KiB time=00:00:02.37 bitrate= 10.1kbits/s speed=1.57x elapsed=0:00:01.51
[i] VideoEnc: frame= 88 fps= 43 q=0.3 size= 3KiB time=00:00:03.58 bitrate= 6.7kbits/s speed=1.76x elapsed=0:00:02.03
[i] VideoEnc: [out#0/matroska @ 00000000004e22c0] video:3191KiB audio:0KiB subtitle:0KiB other streams:0KiB global headers:2KiB muxing overhead: 0.117102%
[i] VideoEnc: frame= 102 fps= 44 q=5.9 Lsize= 3194KiB time=00:00:04.16 bitrate=6284.4kbits/s speed=1.79x elapsed=0:00:02.32
[i] VideoEnc: x265 [info]: frame I: 1, Avg QP:0.43 kb/s: 21636.36
[i] VideoEnc: x265 [info]: frame P: 26, Avg QP:0.51 kb/s: 12428.85
[i] VideoEnc: x265 [info]: frame B: 75, Avg QP:5.13 kb/s: 3771.18
[i] VideoEnc: x265 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
[i] VideoEnc: encoded 102 frames in 2.16s (47.16 fps), 6153.18 kb/s, Avg QP:3.91
[E] Error: The audio encoding process has prematurely exited with an error code of -22 (ffffffea). Check the log for possible error messages.
Ending operation.

Using "RAW audio data" at definition for Audio Encoder results in


...
[i] VideoEnc: CPB properties: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
[i] VideoEnc: frame= 6 fps=0.0 q=0.9 size= 3KiB time=00:00:00.16 bitrate= 144.1kbits/s speed=0.328x elapsed=0:00:00.50
[i] AudioEnc: [in#0 @ 000000000069d100] Error opening input: Invalid data found when processing input
[i] AudioEnc: Error opening input file -.
[i] AudioEnc: Error opening input files: Invalid data found when processing input
[i] VideoEnc: frame= 34 fps= 33 q=0.5 size= 3KiB time=00:00:01.33 bitrate= 18.0kbits/s speed= 1.3x elapsed=0:00:01.02
[i] VideoEnc: frame= 61 fps= 40 q=2.8 size= 3KiB time=00:00:02.45 bitrate= 9.8kbits/s speed= 1.6x elapsed=0:00:01.53
[i] VideoEnc: [out#0/matroska @ 00000000003e22c0] video:2089KiB audio:0KiB subtitle:0KiB other streams:0KiB global headers:2KiB muxing overhead: 0.165031%
[i] VideoEnc: frame= 63 fps= 40 q=5.9 Lsize= 2093KiB time=00:00:02.54 bitrate=6749.8kbits/s speed=1.62x elapsed=0:00:01.57
[i] VideoEnc: x265 [info]: frame I: 1, Avg QP:0.43 kb/s: 21636.36
[i] VideoEnc: x265 [info]: frame P: 16, Avg QP:0.68 kb/s: 12612.97
[i] VideoEnc: x265 [info]: frame B: 46, Avg QP:5.14 kb/s: 4077.53
[i] VideoEnc: x265 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
[i] VideoEnc: encoded 63 frames in 1.39s (45.26 fps), 6523.97 kb/s, Avg QP:3.93
[E] Error: The audio encoding process has prematurely exited with an error code of -1094995529 (bebbb1b7). Check the log for possible error messages.

jay123210599
6th March 2026, 04:41
What time format? Where?

I mean, how do I change the time format from this (https://imgbox.com/n1AGDIZX) to this (https://imgbox.com/B6NMBQ0L)?

nji
26th March 2026, 17:22
I noticed that actual 32 bit VD records wrong colors (capturing a movie playing with MPC-HC).
Maybe some kind of flipping color components?

I enclose an example of orig VD2 versus actual VD2.5.1.1095.
Both 32 bit, both same settings (@ Win7-64).

LigH
26th March 2026, 17:30
Attachments in this forum require a release by a moderator. That can take some time. External hosts are recommendable.

Does it look like blue (Cb = U) and red (Cr = V) are swapped? This is a quite common issue with very similar YUV formats, possibly treating a FourCC wrong.

nji
26th March 2026, 17:50
https://c.gmx.net/@1155842887640945833/tv-3UbyqGr2xiCy3hlmpZg

Yes, you're right... R and B are swapped.
But what caused it?
The settings in VD2 orig and VD2.5.1.1095 are the same...

v0lt
26th March 2026, 20:16
I noticed that actual 32 bit VD records wrong colors (capturing a movie playing with MPC-HC).
Maybe some kind of flipping color components?

I enclose an example of orig VD2 versus actual VD2.5.1.1095.
Both 32 bit, both same settings (@ Win7-64).
Wrong colors when encoding with 8 bit color depth #36 (https://github.com/v0lt/VirtualDub2/issues/36)
Test builds are here #33 (https://github.com/v0lt/VirtualDub2/issues/33)

nji
26th March 2026, 20:40
@v0lt: You're my hero. :)

rgr
6th April 2026, 22:36
Wrong colors when encoding with 8 bit color depth #36 (https://github.com/v0lt/VirtualDub2/issues/36)
Test builds are here #33 (https://github.com/v0lt/VirtualDub2/issues/33)

Thanks.
Any chance to fix? --> https://github.com/shekh/VirtualDub2/issues/8

v0lt
7th April 2026, 16:27
Any chance to fix? --> https://github.com/shekh/VirtualDub2/issues/8
This is not a bug.

rgr
8th April 2026, 12:56
I understand that opening the script three times via CID will remain, because that's how CID works?

v0lt
8th April 2026, 18:36
VirtualDub2 requests the video and audio tracks. The Caching Input Driver opens the video and audio independently. This results in two calls to avformat_open_input. Then, for some reason, VirtualDub2 requests the audio track again, resulting in a third call to avformat_open_input.

Perhaps this can be redesigned, but it doesn't seem straightforward to me. Especially since the Caching Input Driver works well in many cases.

v0lt
11th April 2026, 13:09
Test build VirtualDub2 v2.5.2.1131 (https://disk.yandex.ru/d/R3Ob8yREy4ChvA)
...
Fixed loading of processing settings (script files).
Cosmetic changes.

Updated avlib-1.vdplugin to version 1.1.2.446.
- The FFmpeg 8.1 x64 build from BtbN is used.
- The FFmpeg 8.1 win32 build from Defisym is used.
- Fixed enumeration of video encoders when some video encoders were not available in the used FFmpeg build.
- Video encoders that cannot be used due to missing hardware or an unsupported driver will not be available for selection and configuration.

rgr
12th April 2026, 14:26
VirtualDub2 requests the video and audio tracks. The Caching Input Driver opens the video and audio independently. This results in two calls to avformat_open_input. Then, for some reason, VirtualDub2 requests the audio track again, resulting in a third call to avformat_open_input.

Perhaps this can be redesigned, but it doesn't seem straightforward to me. Especially since the Caching Input Driver works well in many cases.

Thanks for the explanation.
However, this is a disadvantage if the AviSynth script performs some calculations (e.g. the first pass of some filter).

mts1
4th May 2026, 18:21
To v0lt.
Is there any chance you would review 10-bit video support?
The known to me issues are with internal filters downconvert 10-bit video to 8-bit.
And, in capture mode I get right half of the video in green when use display with filters option, even when there are no filters.

Thanks.

v0lt
4th May 2026, 19:27
Is there any chance you would review 10-bit video support?
Basic 10-bit support is available.
However, you won't be able to work correctly with Bt.2020, HDR10, HLG, etc. in VirtualDub2.
The known to me issues are with internal filters downconvert 10-bit video to 8-bit.
Yes. Many filters support a limited range of video formats. You might want to look for a more modern video editor.
And, in capture mode I get right half of the video in green when use display with filters option, even when there are no filters.
My webcam only supports YUY2 format (I looked in Video > Capture pin).

mts1
6th May 2026, 00:58
Basic 10-bit support is available.
However, you won't be able to work correctly with Bt.2020, HDR10, HLG, etc. in VirtualDub2.

Yes. Many filters support a limited range of video formats. You might want to look for a more modern video editor.

Sorry, old school.

My webcam only supports YUY2 format (I looked in Video > Capture pin).
Well, you have powerful tool in your hands.
In capture mode activate filters, add convert format filter and configure it to produce 4:2:2 YCbCr 16-bit. Then select Display with Filters and you'll see 10-bit video. :)

v0lt
7th May 2026, 04:02
In capture mode activate filters, add convert format filter and configure it to produce 4:2:2 YCbCr 16-bit. Then select Display with Filters and you'll see 10-bit video. :)
Before using functions, please read the hint in the status bar.

VD2 capture mode: Video > Filter chain > Enable - "Enable on-the-fly video filtering through VirtualDub's filter subsystem (RGB capture only)."
VD2 capture mode: Video > Filter chain > Filter list - "Configure filters for on-the-fly video filtering (RGB capture only)."

mts1
7th May 2026, 17:25
Before using functions, please read the hint in the status bar.

VD2 capture mode: Video > Filter chain > Enable - "Enable on-the-fly video filtering through VirtualDub's filter subsystem (RGB capture only)."
VD2 capture mode: Video > Filter chain > Filter list - "Configure filters for on-the-fly video filtering (RGB capture only)."

I understand what you're saying.
However, my suggestion to use filters was just to simulate real 10-bit video for testing purpose.
Nowadays I don't use filters in capture mode, but I did use them in the past and didn't have any unexpected issues.
I think the problem is with displaying the video, not with the processing because the capture itself comes out just fine.

v0lt
8th May 2026, 16:05
I think the problem is with displaying the video, not with the processing because the capture itself comes out just fine.
Try processing the video after capturing and writing it to a file.

mts1
8th May 2026, 17:05
Try processing the video after capturing and writing it to a file.
Never had any issues with viewing/processing 10-bit video file with or without any filters.
The only condition I know, which produces the "green", is Viewing with filters in capture mode. I usually need it for built-in histogram.

tormento
19th May 2026, 12:36
Is VirtualDub2 on GitHub?

nji
19th May 2026, 15:37
Is VirtualDub2 on GitHub?

That's indeed a very complex question, that is discussed by many experts since years. There are academic papers on all the aspects of that issue.
It can't be answered by a simple Yes or No.

SCNR