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

nji
8th February 2023, 21:12
One might think it saves the filter settings.
But there is no <Load>-Button in sight.
Also I don't see no saved file anywhere.

(Maybe it's just for calming the nervous ones of us? ;) )

albino
10th March 2023, 22:04
I wonder if anybody here would happen to have a 64bit version of the plugin DShowInputDriver.vdplugin? I have a 32bit version, and some googling tells me that maybe a 64bit version existed at some point, but if so it's long gone now. Thanks.

jpsdr
11th March 2023, 10:50
Yes i have. I can put the file on an ftp server and PM you IP & log information if you want.

albino
11th March 2023, 19:27
Yes i have. I can put the file on an ftp server and PM you IP & log information if you want.

That would be great, thank you!

If it's easier or it would make your more comfortable, you could always upload it to a temporary file sharing service like WeTransfer:

https://wetransfer.com/

Whatever is best :)

jpsdr
12th March 2023, 15:14
I've PM you ftp server information.
File is in albino directory. Notify me when retrievied, i hope this the proper file you're looking for.

albino
12th March 2023, 19:38
I've PM you ftp server information.
File is in albino directory. Notify me when retrievied, i hope this the proper file you're looking for.

That was it, thank you so much! I really appreciate it!

v0lt
24th March 2023, 16:04
VirtualDub2 x64 with updated avlib-1.vdplugin (https://www.sendspace.com/file/au1wu2)

avlib-1.vdplugin (FFmpeg 6.0) source code (https://github.com/v0lt/avlib_vdplugin)

Emulgator
24th March 2023, 17:33
Many thanks, v0lt !

GAP
26th March 2023, 15:17
Does anyone here have the input caching driver for every container?

LigH
1st April 2023, 17:03
VirtualDub2 x64 with updated avlib-1.vdplugin (https://www.sendspace.com/file/au1wu2)

I just tried to convert a clip encoded with AV1 and Opus. File Information displays the details. But the audio stream appears to be silent.

https://9gag.com/gag/aOxex83
https://www.ligh.de/tmp/Cat-clip.zip

v0lt
4th April 2023, 04:38
I just tried to convert a clip encoded with AV1 and Opus. File Information displays the details. But the audio stream appears to be silent.
Yes. There is a problem with Opus audio decoding.

blob2500
6th April 2023, 16:42
VirtualDub2 x64 with updated avlib-1.vdplugin (https://www.sendspace.com/file/au1wu2)

Thanks for this upgrade.

But with this version I get this issue (using caching input driver): mpeg-2 in .mkv doesn't seek; it doesn't see I/K-frames (shift + right/left arrow goes to last/first frame only).

No problem with last official Virtualdub2 (2020) and no problem with h.264/MKV.

LigH
8th April 2023, 03:36
I found another issue with your test build:

On the :( occasion of the death of the most thanked Flat Earther, Bob Knodel, I downloaded a video (https://youtu.be/8V8TLL2345k) from YouTube using yt-dlp, to cut out the "15 degrees per hour drift" meme. But the selected start and end positions of the opened clip were not reliable, neither while exporting it to a separate MP4 file, nor while navigating and playing it in the timeline editor. The audio was async, and the start moved randomly.

v0lt
22nd April 2023, 19:24
VirtualDub2_x64_ffmpeg6.0_test6.7z (https://www.sendspace.com/file/3rum56)
I seem to have fixed the problem with OPUS decoding.
It's not clear to me how to solve other problems, the code is very confusing.

isidroco
25th April 2023, 21:01
Yes i have. I can put the file on an ftp server and PM you IP & log information if you want.

Any chance for me to have x64 of DShowInputDriver.vdplugin?
Not needed now, but want to do some comparisons with Caching Input driver. Thanks!

isidroco
26th April 2023, 03:53
Your screenshot for x265vfw shows DAR width, height, not SAR . Try 16 and 9 .
If the the extra commandline box works, you can enter --sar x:y there instead

Just tested, DAR setting is ignored in x265vfw, but ntsc: "--sar 10:11" or for PAL: "--sar 59:54" will generate 4:3 hevc video.
For 16:9 ntsc/pal use: --sar 40:33 / --sar 16:11

v0lt
8th May 2023, 09:30
Any chance for me to have x64 of DShowInputDriver.vdplugin?
http://www.virtualdub.org/beta/DShowInputDriver-0.93.zip

nji
23rd May 2023, 13:32
I need to make a capture of a coming broadcasted video
and so tried this function of VD2 for the first time.
Doing so I encountered problems, maybe someone can help?

At the beginning the audio is about 1s to early.
In between the audio sounds "strangely wrong"/ swaying.
At the end (abt. 2 min) the audio is much to quick,
the voices sound like Donald Duck, still the audio
sync seems to lessen/ vanish (in opposite to what the
statistic pane says).

I enclose the statistic pan at the end of the video.
(At the beginning it shows a sync error of abt 10ms).

I used lagarith for video compr., and PCM for audio.

My settings (when different from default):
Video - Source:
Panning area = top level client area, Acc. mode = GDI
Video - Set Custom Format = 1280 x 768
Audio - Default Output Loopback (Core Audio)
Capture - Capture Settings: Framerate = 50
(Strange: The statistic pane says 27.3 fps, and the
captured movie is abt. 50 fps; checked framewise: a dupe abt. every 10th)
Capture - Timing: Automatical disable ... (no matter how it's set).

What might be going on here?

isidroco
23rd May 2023, 22:38
http://www.virtualdub.org/beta/DShowInputDriver-0.93.zip
Thanks!

Screen Capture: Strange audio desync

Hi nji. Which is the capture card you are using?
Please try these Capture Timing Options:
[x] Drop frames..; [x] Insert null...; Null limit: 10; [x] Sync audio to video...; [x] Correct video timing...; [x] Automatic; Number of audio blocks:30; [x] Force audio clock...

Also try first using Capture Settings: Frame Rate=25 (you may try 50fps later after succeeding with 25).

On Lagarith: Mode YV12; [x] Use Multithreading. Uncheck the rest (Null frames may cause desynch on some programs). YV12 is smaller.

nji
24th May 2023, 10:38
@isidroco:
Thank you.

Capture card: For screen capture there is no need for a capture card - I don't have any.

Settings: Timing: The settings you suggest are the default ones. With the exception of "Automatic".
That's what I tried - without success.

But meanwhile I tried disabling Resync mode, "Correct" and "Automatic". ==> Audio in sync from start to end!!
So there seems to be a kind of bug (?) in VD2?

Moreover there remains the question about fps (see my first post above).

nji
28th May 2023, 09:55
Up to now I mostly used mp4 container for (AVC1, AAC) to have good compatibility.
(Good choice?).
Recently I noticed that AAC in VD2 offers only CBR mode, while most prof movies use VBR mode.
So my (second) question:
Should I use VBR, and how to do that?
(I suspect I need an external codec for it?)

StainlessS
28th May 2023, 11:43
No idea if relevant but,
There were always problems in VDub with mp3 VBR,
perhaps problems with *any* VBR is an AVI issue. [EDIT: Or VDub issue]

isidroco
31st May 2023, 16:27
...
(Strange: The statistic pane says 27.3 fps, and the
captured movie is abt. 50 fps; ...

I think the key is there, VDub thinks video is 50fps, but it's being captured at 27.3. I just made a test (with defaults settings as shown before), and with 50fps statistics was also 50 A/V was on synch. Maybe your system has a bottleneck that prevents you to reach that fps. Please use VirtualDub64 which is a lot faster. And try slower FPS first.

isidroco
31st May 2023, 16:29
Should I use VBR, and how to do that?
(I suspect I need an external codec for it?)

Learnt the hard way: Never use VBR audio with VDub.

nji
1st June 2023, 09:06
Thank you for your hints!

LigH
19th June 2023, 13:32
Today I wanted to open an old AVI file with 16 kHz stereo MP3 audio through AviSynth+. VirtualDub2 build 44282 does it. VirtualDub2_x64_ffmpeg6.0_test6 instead:

---------------------------
File open error
---------------------------
FFMPEG: Unsupported channel layout.
---------------------------
OK
---------------------------

I also tried to export it as WAV, 16 bit stereo, 44100 Hz, loading it separately via LwLibavAudioSource and multiplexing it using AudioDub: same issue.

SeeMoreDigital
19th June 2023, 14:13
I also tried to export it as WAV, 16 bit stereo, 44100 Hz, loading it separately via LwLibavAudioSource and multiplexing it using AudioDub: same issue.
Have you tried using good old fashioned AVIMux GUI?

LigH
19th June 2023, 16:30
Ehm, I passed the material through AviSynth+, that failed. Both with audio out of an AVI file and with separate audio from WAVSource().AudioDub().

isidroco
22nd June 2023, 18:42
Ehm, I passed the material through AviSynth+, that failed. Both with audio out of an AVI file and with separate audio from WAVSource().AudioDub().

Try opening the video with VDub2, and File, Save Audio to a WAV file. Try that .WAV in AviSynth.

LigH
23rd June 2023, 21:37
I tested a little more and discovered:

The basic builds of VirtualDub2 (both 32 and 64 bit) usually offer the "Caching input driver" when opening an AVI file but immediately switch to the internal "AVIFile/AviSynth input driver" when I select an AVS file.

The test6 build of VirtualDub2 also offers the "Caching input driver" when opening an AVI file; but when I select an AVS file in the directory listing of the File - Open dialog, it utilises my harddisk heavily for a dozen of seconds, then does not automatically switch to "AVIFile/AviSynth input driver". When I try to open the AviSynth script file with the "Caching input driver", it fails complaining "FFMPEG: Unsupported channel layout."; but when I manually switch to the "AVIFile/AviSynth input driver", the script opens.

nji
2nd July 2023, 14:12
Some time ago I discovered the Capture feature of VD2.
This came pretty handy as I was short before searching for
some other programs for that - for legal content of course.

It works pretty fine for me;
but with the time the little "stuttering" came to my attending.
Having I closer look there showed dupes and jumps in the capture.
For sure I have to do a matching between source and capture fps
(which I did by trial and error),
but even if it matches very well, there is say every 10th frame
a dupe followed by a drop. Especially when frame contents changes a lot.

I searched for information about how to handle that,
but nothing is specific enough.
Maybe somebody is able to answer my questions?

How do I know the frame rate of the source (some source stations
seem to change from strip to strip)?
Is there still a difference between F5 and F6?
(How) can the "Real-time profiler" be a help for that?
(I don't know the meaning of the statistics).
In this situation, is it better to use (low-CPU, large data) lararith codec
or say h264 (higher-CPU, less data)?
How can I know a potential bottleneck (memory etc.)?
My hardware is from 2018: i7-6700 (on-chip GPU, no graphic card etc.),
SSD for capture.

I would really appreciate if somebody has some help for me. :)

isidroco
4th July 2023, 01:06
Frame Size and FPS? Usually Lagarith using YV12 instead of RGB is fast and not so heavy, but HDD may be a bottleneck. Your CPU is quite fast, h264 with a fast preset may be better in keeping MB/s low. You should probably try using a standard FPS (regardless of dupes) of 25 or 30 fps.
Win10 may have a lot of background tasks/ services/ updates that may interrupt capture. You may try my automatic script/ utilities for that (OptimWin Batch on sourceforge).
What are you trying to capture? Maybe player is stuttering and not VDub, VideoLan VLC player might be faster than MPC. Open taskmanager to monitor what's taking more resources.

nji
4th July 2023, 08:22
Thank you for your hints. I will try them... one by one. (As you asked: The frame size I mostly use is 1280x1024 @ 24 fps, playback in browser). Another idea that came to my mind: if the source site offers it I could try lowering the playback fps, and record with that... to change it afterwards. I wouldn't have thought it may be as tricky nowadays... :)

nji
1st August 2023, 16:05
Recently I made a very strange oberservation:
Load a movie with VD2,
take filter MSU Denoising https://compression.ru/video/denoising_copy/index_en.html
choose "Add filter" to open its dialog
(the CPU consumption instantly goes to 100% of 1 core)
close the dialog with cancel.
The CPU stays at 100% as long as you don't close VD2.

What is going here?
Bug in VD2, or is it From Russia with Love?

LigH
1st August 2023, 19:43
You suspect someone forging Bitcoins on your CPU time?

I don't know how much ProcessExplorer or similar SysInternals tools can help you digging deeper.

nji
1st August 2023, 20:40
I'm just interested about this quite unexpected effect.

blob2500
6th August 2023, 14:48
Recently I noticed that AAC in VD2 offers only CBR mode, while most prof movies use VBR mode.
So my (second) question:
Should I use VBR, and how to do that?
(I suspect I need an external codec for it?)
VD(2) doesn't support AAC natively to mux in AVI.
Support is via plugin:

Example: import through mkv(and mka) or mov plugin by fcchandler.

In this way, muxing mode is VBR always, even in case of constant bit rate aac audio into mkv/mka/m4a.

It' is similar (in avi headers level) to native mp3 vbr muxing import audio for mp3 (vbr or cbr). This works fine for MP3.

VBR muxing mode vs. CBR muxing mode is in AVI header, not in stream.

LigH
7th August 2023, 08:41
I don't see nji talking about saving AAC audio in an AVI container. Just above your quote he mentioned the MP4 container; this is where AAC audio belongs.

The integrated ffmpeg AAC encoder offers only an ABR like bitrate control; fdkaac does the same.
Nero AAC and QAAC offer real quality based VBR; VirtualDub2 may not be able to multiplex those without configuring an external MP4 muxer like MP4Box as "external codec", though.

blob2500
7th August 2023, 23:45
I didn't understand nji post, sorry :(

nji
20th August 2023, 10:01
Recently I noticed that a filter I use obviously reads/ writes the registry.
I thought about it...
Yes, filters obviously are allowed to read/ write files too (e.g. DeShaker).
So the next thought:
As they are not "sandboxed" like JavaScript or browser add-ons:
(How) can I trust a filter not doing malicious things?
(Especially if it is not open source).

StainlessS
20th August 2023, 13:24
(Especially if it is not open source).
Not sure if the filter you reference is Deshaker or not, but if so then is now open source.
Deshaker @ Github:- https://github.com/gu-t/Deshaker

nji
20th August 2023, 14:06
Yes, I know that.
It was just an example of what filters may do.

shekh
21st August 2023, 10:21
(How) can I trust a filter not doing malicious things?
(Especially if it is not open source).

You can`t completely trust it. Certain sensitive OS parts are somewhat protected from accidents - by user rights (VD doesn't require elevation to run).

nji
21st August 2023, 16:38
Hey shekh :)

However that's kind of bad news... especially in these times you never know
what you get.

The reason for this post was due of a filter from a somehow strange source.

Still some time ago I already had some other experience which made me feel uneasy:

https://forum.doom9.org/showthread.php?p=1990265#post1990265

shekh
22nd August 2023, 11:21
Still some time ago I already had some other experience which made me feel uneasy:

https://forum.doom9.org/showthread.php?p=1990265#post1990265

Yes I know nothing about MSU but after trying various filters I had impression these are some sort of student projects (nothing good).

nji
18th September 2023, 14:28
Recently I wanted to remove an annoying subtitle from a movie.
(A cut of the movie: https://c.gmx.net/@1155842887640945833/o46DBll3QqiL0KZkxjFo4g)

I searched and found MSU Subtitle Remover
https://videoprocessing.ai/video_filters/subtitles-removal.html

Trying it (yellow subtitles with a small black border around)
I wasn't successful, no matter what kind of adjustments I did.
There were no or only very small parts of the subtitles found
(even with decreased "Subtitle outline contrast" slider
and/ or increased "Subtitle sensivity" slider).
The present doesn't find anything.
(Anyway I wondered how the filter should work without giving it
explicitely the subtitle color).

Then I tried the previous version (2.2b).
Here you can give the color (in YUV!),
but it doesn't generate any files in working folder.

Has anyone any experiences with it?

Or are there alternative filters for removing subtitles?
Actually I haven't found ANY...

Emulgator
18th September 2023, 16:22
InpaintDeLogo (https://forum.doom9.org/showthread.php?t=176860)

nji
18th September 2023, 17:08
InpaintDeLogo (https://forum.doom9.org/showthread.php?t=176860)

Thank you.
(I could have bet that with AviSynth it had been done).

But...
that looks extremely complex to me, even if you're common to AviSynth.
Moreover there is a long list of other packets that have to be installed before.
It may be the very last resort, but first of all there may be an origin VD2-filter?
This might be as simple/ usable as the MSU one - but working.


There are possible workarounds, using deshaking filter:

For that there is needed a pre-filter that allows
to specify the main subtitle color/ tolerance, and the area to expand
and fuzzy around that.
As its output the fulfilling area shall
- color-changed (for DeShaker) or
- alpha set (for shekh's repair filter in "lens transform").
DeShaker would have the advantage of intelligent temporal filling.
(But somewhere in my brain I remember that Deshaker doesn't do
with no deshaking (but only ignoring)).
I don't know if there is such a filter somewhere...

(There is - of course :) - an AviSynth filter: TweakColor.
Still you can't specify parameters for expand and fuzzy area
- which will fail with bordered subtitles).

Any ideas anyone?

nji
16th October 2023, 11:48
Take a mp4/avc1 and write it with same codec (but in it's config
change from YUV 4:2:0 to RGB).

Why is that?
I would expect only minor effects, measurable but not so obvious.

https://c.gmx.net/@1155842887640945833/o46DBll3QqiL0KZkxjFo4g

FranceBB
7th November 2023, 09:59
Hi there,
I've just realized that the last time I updated VirtualDub was like 3 years ago, so I went on to update it again, but the last update I could find is 20 Update 19 from March 20, 2020.
Is this effectively the last version or did I miss something?