View Full Version : VirtualDub2
poisondeathray
6th August 2024, 18:17
Why so? In VDub in Video->Decode Format you can change from 601 to 709. Even set 709 as default.
Yes decode format works and is a better workaround
poisondeathray
6th August 2024, 18:23
Both solutions worked, but what about my other problem with the faulty image?
I don't see the faulty image in vdub2 with your sample video. How did you produce the problem ?
jay123210599
6th August 2024, 21:56
I don't see the faulty image in vdub2 with your sample video. How did you produce the problem ?
Never mind, I went the program again and it didn't show up, must have had to restart the tool.
jay123210599
7th August 2024, 16:11
Is there a filter for VirtualDub2 that allows you to burn in PGS (.sup) subtitles?
LigH
7th August 2024, 16:14
There is one for AviSynth: SupTitle (http://forum.doom9.org/showthread.php?t=148167)
jay123210599
7th 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
Unflagged video? What does that mean?
LigH
7th August 2024, 18:29
"Unflagged" = The video stream contains no set of bits (= bitflag) describing some of its attributes, here its colorimetry.
jay123210599
7th August 2024, 22:07
I want to use ffmpeg as an external encoder to extract frames and make image sequences, and also burn in subtitles. How do I do that while replacing it with the default encoder?
v0lt
8th August 2024, 04:22
I want to use ffmpeg as an external encoder...
Options > External encoders...
after you have everything set up
File > Export > Use external encoder...
jay123210599
8th August 2024, 05:23
Options > External encoders...
after you have everything set up
File > Export > Use external encoder...
and the rest of the my question? to extract frames and make image sequences, and also burn in subtitles?
tormento
8th August 2024, 14:17
Would be hard to add mkv chapter support to be shown in the timeline?
Eventually, jumping to them would be nice too.
nji
9th August 2024, 18:19
I tried (for the first time) the version with newer avlib etc.
(both orig and v.2.1) @
Win7-64, VC++ redistr. x64 2015-2022.
Entry point "kernel32.WaitOnAddress" wasn't found in DLL
"api-ms-win-core-synch-l1-2-0.dll"
(freely translated).
So at least Win8 necessary?
https://learn.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-waitonaddress#requirements
v0lt
9th August 2024, 19:16
Entry point "kernel32.WaitOnAddress" wasn't found in DLL
"api-ms-win-core-synch-l1-2-0.dll"
(freely translated).
I think some FFmpeg 7.0 builds no longer support Windows 7.
The function you mentioned is contained in avcodec-61.dll.
nji
9th August 2024, 19:44
So if it's only some ffmpeg builds that need Win8+,
it may be an option to use the other ones?
LigH
9th August 2024, 19:49
Worth a try for sure, some publishers may use different compilers/options. But no guarantee, ffmpeg may link modules which don't support outdated OS anymore. Multithreading is a feature that depends a lot on efficient OS features.
jay123210599
9th August 2024, 21:12
and the rest of the my question? to extract frames and make image sequences, and also burn in subtitles?
@v0lt Can you answer my question, please? How do I use ffmpeg as an external encoder for these things in Virtualdub2?
LigH
9th August 2024, 21:18
I know that VirtualDub2 can export image sequences on its own.
And I know that AviSynth can burn in subtitles.
I would certainly not insist in learning how to do it in ffmpeg.
v0lt
9th August 2024, 21:18
@v0lt Can you answer my question, please?
No.
How do I use ffmpeg as an external encoder for these things in Virtualdub2?
Read the FFmpeg documentation. Maybe there is what you need. This is off-topic here.
nji
10th August 2024, 10:15
I think some FFmpeg 7.0 builds no longer support Windows 7.
The function you mentioned is contained in avcodec-61.dll.
I checked the Win prebuilds mentioned at official site
https://www.ffmpeg.org/download.html
gyan.dev builds https://www.gyan.dev/ffmpeg/builds/
"Essentials build compatible with Windows 7 or above.
Full build requires at least Windows 10."
(Probably these are the ones you're using?)
==> No libs for Windows 7.
BtbN builds https://github.com/BtbN/FFmpeg-Builds
"are targetting Windows 7 and newer".
So I tried by exchanging the ffmpeg libs (in both 44282 and v.2.1 version)
but strange: same message at start.
EDIT:
It seems that BtbN builds are not targetting Windows 7/8 anymore,
at least from June on:
https://github.com/BtbN/FFmpeg-Builds/issues/386
EDIT2:
With that last Win7 compatible ffmpeg version mentioned in the issue...
replacing the av-libs, now both VD2 version do (at a first test).
Still it is not recommendable (e.g. the mentioned webp exploit
mentioned in the issue).
(OT: ESU since 2023, ffmpeg's (libs only!) since June, browser from Sept., ... finally time 4 Linux).
jay123210599
10th August 2024, 14:30
There is one for AviSynth: SupTitle (http://forum.doom9.org/showthread.php?t=148167)
What if the subtitles are embedded in the video?
nji
10th August 2024, 16:21
...replacing the av-libs, now both VD2 version do (at a first test).
But doing some comparison between "orig" VD2 with outdated ffmpeg and new v.2.1 with up-to-date ffmpeg
there is no difference in results (only few bytes in meta data).
I took an mp4/avc1 movie, rescaled and saved as mp4/avc1 again.
I would have expected especially that newer swscale would produce a better result.
Maybe I have a misunderstanding in the results new VD2 should produce?
What kind of differences should occur?
At the moment is seems it produces same as before...
v0lt
10th August 2024, 21:20
https://www.animmouse.com/p/ffmpeg-binaries/
Builds with DLLs are called shared.
Current versions of avlib_vdplugin require FFmpeg 7.0.x.
LigH
10th August 2024, 21:48
What if the subtitles are embedded in the video?
If they are "embedded" as multiplexed subtitle stream in a container, then they can be extracted to a *.sup file. In case of MKV files ripped from Blu-ray using MakeMKV, eac3to is pretty useful.
nji
10th August 2024, 22:00
https://www.animmouse.com/p/ffmpeg-binaries/
Builds with DLLs are called shared.
Current versions of avlib_vdplugin require FFmpeg 7.0.x.
Yes, I know that.
As posted above I used
https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2024-05-31-12-50/ffmpeg-n7.0.1-6-gf0b747ef1a-win64-gpl-shared-7.0.zip
With that I get the effect described above (i.e. no effect).
So, why's that?
v0lt
11th August 2024, 07:33
https://i.ibb.co/ZYfSdgV/avcodec-61-dll.png (https://ibb.co/ZYfSdgV)
I think it's obvious. You are missing the file "api-ms-win-core-synch-l1-2-0.dll".
LigH
11th August 2024, 07:53
AFAIR it is provided by MS VC Runtimes 2015+; please note that these installers exist in 32 bit and 64 bit flavours. You might use the VisualCppRedist AIO (https://github.com/abbodi1406/vcredist/releases/) to get all versions up to date.
nji
11th August 2024, 08:34
I think it's obvious. You are missing the file "api-ms-win-core-synch-l1-2-0.dll".
Not at all.
I would miss that runtime, if I would use the ffmpeg version you provide.
(BTW that runtime wouldn't be available for Win7).
But - as I tried to express in not only one of my posts above -
I do not use the ffmpeg version you provide,
but replaced your av-libs by ones that do for Win7.
They do well - without errors.
But... they produce exactly the same result movies as last shekh's (???)
My English must be very bad, that all my tries to express the matter are in vain... :rolleyes:
LigH
11th August 2024, 09:22
Of course, exactly the same codecs produce (more or less) exactly the same results. No surprise.
Even updated codecs may produce still (more or less) exactly the same results. Not many updates will change the efficiency noticeably. Maybe such updates which introduce features not yet present in previous codecs, so you can't compare them directly.
The main reason for updating av-libs was fitting them to new ffmpeg interfaces which are required to add new and more complex codecs. Like AV1 and VVC decoders.
nji
11th August 2024, 10:28
Ah... thanks for that. :)
As there are generations of updates between shekh's and vOlt's ffmpeg,
I would have expected differences in at least swscale module
(which is known to produce quite suboptimal results in the past).
But - as said - there is literally no difference (only some meta data bytes).
So, if anyone should ever notice main differences between the ffmpeg version's results,
maybe post the example.
v0lt
11th August 2024, 11:08
avlib_vdplugin provides the following functions:
1. Opens and decodes various video files. If you open File Information, you may see "Caching Input Driver" in the title. In this case, avlib_vdplugin is used.
2. Adds the "fflayer" video filter.
3. Adds video and audio codecs to the list of codecs with the "FFmpeg" prefix.
4. Allows you to save videos in MKV, MP4, etc.
v0lt
13th August 2024, 04:42
I have observed problems on some computers:
1. The "FFmpeg / x264" video codec is not displayed in the list of video codecs. One of the x264vfw codecs might not be displayed either.
2. When opening a file, one of the panels did not show a video frame and did not update during navigation.
3. The "File > Export > Image sequence" operation did not work.
All these problems disappeared after I deleted the VirtualDub2 settings from the registry. I do not know what was the reason for the unstable operation of VirtualDub2 and avlib_vdplugin.
blob2500
14th August 2024, 09:03
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.
Virtualdub(44282 + avlib plugin) crashes, if in the dialog box, I select a .ffindex file with the mouse without even clicking ok.
It crashes even if the .ffindex file is dummy, as long as it is not empty
Even cleaning the "Virtualdub.org" folder in the Windows Registry the problem occurs again.
No problem with the original version of Virtualdub2 (avlib plugin 2020)
https://i.postimg.cc/TKFdCFXQ/vd2crash.png (https://postimg.cc/TKFdCFXQ)
LigH
14th August 2024, 15:52
It crashes even if the .ffindex file is dummy, as long as it is not empty
Sounds to me like you could even try
echo test > test.ffindex
https://frupic.frubar.net/shots/43979.png
v0lt
14th August 2024, 16:00
avlib_vdplugin 0.7.0.108 (https://disk.yandex.ru/d/R3Ob8yREy4ChvA)
Fixed a crash when trying to parse some unsupported files.
v0lt
20th August 2024, 16:44
Windows 7 users can try using FFmpeg files from builds here - https://github.com/kusaanko/FFmpeg-Auto-Build/releases
v0lt
30th August 2024, 18:47
avlib.vdplugin 0.7.0.123 (https://github.com/v0lt/avlib_vdplugin/releases/tag/0.7.0) released
VirtualDub2 44282 with updated plugin is also available.
Changes:
FFmpeg 7.0.2 is now supported.
Added support for JPEG XL images.
Added support for VVC videos.
Improved navigation support for long FLVs and MKVs with audio.
More default formats for the "FFMpeg : video" and "FFMpeg : images" groups.
Changed the display of the "Metadata" field in "File Information".
Fixed the use of audio encoders.
Improved ignoring of AviSynth scripts to prevent VirtualDub 2 interface from freezing in some situations.
VirtualDub2 v2.1.1.609 (https://github.com/v0lt/VirtualDub2/releases/tag/2.1.1) released
Changes:
More careful ignoring of 64-bit "ffdshow Video Codec" (ff_vfw.dll) and "Logitech Video (I420)" (lvcod64.dll) to eliminate crash when opening AVI files.
Updated avlib-1.vdplugin to version 0.7.0.123.
jay123210599
30th August 2024, 22:38
avlib.vdplugin 0.7.0.123 (https://github.com/v0lt/avlib_vdplugin/releases/tag/0.7.0) released
VirtualDub2 44282 with updated plugin is also available.
Changes:
FFmpeg 7.0.2 is now supported.
Added support for JPEG XL images.
Added support for VVC videos.
Improved navigation support for long FLVs and MKVs with audio.
More default formats for the "FFMpeg : video" and "FFMpeg : images" groups.
Changed the display of the "Metadata" field in "File Information".
Fixed the use of audio encoders.
Improved ignoring of AviSynth scripts to prevent VirtualDub 2 interface from freezing in some situations.
VirtualDub2 v2.1.1.609 (https://github.com/v0lt/VirtualDub2/releases/tag/2.1.1) released
Changes:
More careful ignoring of 64-bit "ffdshow Video Codec" (ff_vfw.dll) and "Logitech Video (I420)" (lvcod64.dll) to eliminate crash when opening AVI files.
Updated avlib-1.vdplugin to version 0.7.0.123.
Does your version of VirtualDub2 uses FFmpeg to extract frames from videos?
LigH
30th August 2024, 22:44
The avlib-1.vdplugin contains a multi-codec core from the ffmpeg project (libavcodec).
jay123210599
30th August 2024, 23:37
The avlib.vdplugin contains a multi-codec core from the ffmpeg project (libavcodec).
I'm talking about VirtualDub2 v2.1.1.609.
LigH
31st August 2024, 01:43
VirtualDub2, since it was invented as VirtualDub-FilterMod, and still today, uses codecs from the ffmpeg project inside an avlib-1.vdplugin file to decode (when supported) and partially encode (when selected). It does not use a separate ffmpeg.exe to do that.
What exactly is the point of your question?
The main difference between VirtualDub2 44282 and any newer version is: VirtualDub2 44282 contains an old EXE which was compiled with an older Visual Studio version and does not crash trying to load some 64-bit VfW codecs. But to introduce new features, v0lt needed to compile a new version of the VirtualDub2 EXE with a newer Visual Studio. That one crashes with some specific 64-bit VfW codecs, so it ignores those to avoid the crashes.
Summary:
If you really really need to use those VfW codecs which cause the newer VirtualDub2 to crash, use VirtualDub2 44282 but renounce any new features
If you prefer the new features, use the newer VirtualDub2 EXE which ignores VfW codecs you may not even have installed
jay123210599
31st August 2024, 06:45
How do I make embedded subtitles show up in the preview of my videos?
StainlessS
31st August 2024, 08:29
How do I make embedded subtitles show up in the preview of my videos?
Well, assuming that you do not have both input and output panes visible in your VD2 setup, you need to enable the output pane which shows results of any VD2 filters, eg rendered subs.
EDIT: Also, I believe that "Menu/Video/Full Processing Mode" needs to be selected for the VD2 filters to be processed at all. [Filters are processed in uncompressed RGB]
jay123210599
31st August 2024, 14:00
Well, assuming that you do not have both input and output panes visible in your VD2 setup, you need to enable the output pane which shows results of any VD2 filters, eg rendered subs.
EDIT: Also, I believe that "Menu/Video/Full Processing Mode" needs to be selected for the VD2 filters to be processed at all. [Filters are processed in uncompressed RGB]
How do enable the output pane?
LigH
31st August 2024, 14:04
Menu "View > Enable output pane [F10]"; and you may need to allow scaling of the panes when the video dimensions may fit the whole screen (right-click the video pane and select "Auto size" or a convenient scaling so that two panes fit in your desktop).
jay123210599
31st August 2024, 14:49
Menu "View > Enable output pane [F10]"; and you may need to allow scaling of the panes when the video dimensions may fit the whole screen (right-click the video pane and select "Auto size" or a convenient scaling so that two panes fit in your desktop).
I enabled both panes and the subtitles are still not showing. My video is a mkv file with .ass subtitles embedded in it (not hardcoded).
LigH
31st August 2024, 14:57
AFAIK, VirtualDub2 has no subtitle renderer. It ignores subtitle streams in your input files. And I don't see any VirtualDub filter which is able to render subtitles (but I can't say for sure that none exists; it might be possible to install DirectVobSub's VSFilter as a VDF plugin).
To "burn in" subtitles, you may have to open your source file via a "frame server" (AviSynth or Vapoursynth) which overlays your subtitles over the video stream. This may require extracting them from your MKV file first, then load a plugin in your script which can render them.
v0lt
31st August 2024, 16:17
And I don't see any VirtualDub filter which is able to render subtitles (but I can't say for sure that none exists; it might be possible to install DirectVobSub's VSFilter as a VDF plugin).
You need to take 64-bit VSFilter.dll, rename it to VSFilter.vdf and put it in the plugins64 folder. You will have 2 filters TextSub and VobSub.
64-bit VSFilter.dll can be found in old standalone_filters sets of MPC-BE or MPC-HC projects. Or take it from the xy-VSFilter project or its forks.
For example: https://github.com/pinterf/xy-VSFilter/releases
jay123210599
31st August 2024, 21:08
You need to take 64-bit VSFilter.dll, rename it to VSFilter.vdf and put it in the plugins64 folder. You will have 2 filters TextSub and VobSub.
64-bit VSFilter.dll can be found in old standalone_filters sets of MPC-BE or MPC-HC projects. Or take it from the xy-VSFilter project or its forks.
For example: https://github.com/pinterf/xy-VSFilter/releases
I used the filter and I still don't see the subtitles in the preview. I have both panes enabled as well.
v0lt
1st September 2024, 05:04
I used the filter and I still don't see the subtitles in the preview. I have both panes enabled as well.
I do not confirm.
It works for me. I added the TextSub filter, selected an external subtitle file in .ASS format and got the text in the output panel.
jay123210599
1st September 2024, 13:25
I do not confirm.
It works for me. I added the TextSub filter, selected an external subtitle file in .ASS format and got the text in the output panel.
Never mind, I see it now.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.