View Full Version : need help - can't load H264 video file with Virtual dub 1.10.1
lobotomys
21st July 2011, 08:36
hi, don't know why, but i can't load any MP4 file with H264 in virtual dub. i have a black screen.
i installed ffdshow, configured ffdshow VFW with ffmpeg-mt, but same issue with libavcodec.
i installed avisynt 2.5 but don't know really how to have it working . don't know if there is a simple way to have this working.
thanks to anybody who will help me to fix it !
is there as well a possibility to have a full screen mode when capturing a Video with the capture feature ? i'm capturing video with an aver media H727 card via the HDMI input but i can't put the video in full screen , it's only in a window, and the 16/9 ratio is done on the recording file but not on the display. any idea too ?
LoRd_MuldeR
21st July 2011, 14:30
VirtualDub only supports AVI files as input. Other file formats are only possible with VirtualDub plug-ins, if at all. Also VirtualDub is restricted to VFW decoders.
Decoding H.264 through VFW is "problematic" at least. The same goes for H.264 in AVI. So actually you have two problems here ;)
Your most reliable solution here is feeding your H.264 in MP4 input file into VirtualDub via Avisynth. In Avisynth use FFmpegSource2 (FFMS2) or DGDecNV to load the MP4 file!
Example Avisynth script:
VID = FFVideoSource("C:\Some folder\source.mp4")
AUD = FFAudioSource("C:\Some folder\source.mp4")
AudioDub(VID,AUD)
lobotomys
21st July 2011, 15:39
VirtualDub only supports AVI files as input. Other file formats are only possible with VirtualDub plug-ins, if at all. Also VirtualDub is restricted to VFW decoders.
Decoding H.264 through VFW is "problematic" at least. The same goes for H.264 in AVI. So actually you have two problems here ;)
Your most reliable solution here is feeding your H.264 in MP4 input file into VirtualDub via Avisynth. In Avisynth use FFmpegSource2 (FFMS2) or DGDecNV to load the MP4 file!
Example Avisynth script:
VID = FFVideoSource("C:\Some folder\source.mp4")
AUD = FFAudioSource("C:\Some folder\source.mp4")
AudioDub(VID,AUD)
hi, i already installed the plugin to read MP4, MKV, FLV etc .. (FLV are working, i don't get error while loading a MP4, only a black screen), and i didn't knew how to have avisynth working, Thanks for the procedure, i will try it immediatly !
lobotomys
21st July 2011, 21:15
VirtualDub only supports AVI files as input. Other file formats are only possible with VirtualDub plug-ins, if at all. Also VirtualDub is restricted to VFW decoders.
Decoding H.264 through VFW is "problematic" at least. The same goes for H.264 in AVI. So actually you have two problems here ;)
Your most reliable solution here is feeding your H.264 in MP4 input file into VirtualDub via Avisynth. In Avisynth use FFmpegSource2 (FFMS2) or DGDecNV to load the MP4 file!
Example Avisynth script:
VID = FFVideoSource("C:\Some folder\source.mp4")
AUD = FFAudioSource("C:\Some folder\source.mp4")
AudioDub(VID,AUD)
hi again, thank you, it's working !! great !!
do you know is there is a Video scaler for virtual dub to, because i'm a lot converting 4/3 SD videos to 16/9 HD one, and i'm using the resize version wit the lansos3 filter but if there is something better , it would be great ! thanks !
LoRd_MuldeR
21st July 2011, 22:37
If you use Avisynth input anyway, you can use one of the Avisynth scalers on the Avisynth side.
Simply append something like "Lanczos4Resize(1280, 720)" or "Spline36Resize(1280, 720)" to the end of your Avisynth script.
Also this (http://forum.doom9.org/showthread.php?t=160038) project might be worth a look. Last but not least a great overview of the different resize kernels is available here (http://svn.int64.org/viewvc/int64/resamplehq/doc/kernels.html) ;)
lobotomys
21st July 2011, 23:24
If you use Avisynth input anyway, you can use one of the Avisynth scalers on the Avisynth side.
Simply append something like "Lanczos4Resize(1280, 720)" or "Spline36Resize(1280, 720)" to the end of your Avisynth script.
Also this (http://forum.doom9.org/showthread.php?t=160038) project might be worth a look. Last but not least a great overview of the different resize kernels is available here (http://svn.int64.org/viewvc/int64/resamplehq/doc/kernels.html) ;)
thanks, amazing :)
one more question . is there a way to have the avisynth loaded automatically, and doing the script editing each time i want to work on a file ? like having the script loaded in the filters or virtual dub and who is applied when i load a file normally ?
LoRd_MuldeR
21st July 2011, 23:39
You could probably use a simple batch script:
@echo off
del "%TMP%\~temp.avs"
echo VID = FFVideoSource("%1") >> "%TMP%\~temp.avs"
echo AUD = FFAudioSource("%1") >> "%TMP%\~temp.avs"
echo AudioDub(VID,AUD) >> "%TMP%\~temp.avs"
"C:\Program Files\VirtualDub\VirtualDub.exe" "%TMP%\~temp.avs"
Then simply call like:
Script.bat "C:\Some folder\source.mp4"
Or drop the MP4 file onto the BAT file in Windows Explorer ;)
lobotomys
21st July 2011, 23:45
ok, thanks !!
lobotomys
22nd July 2011, 00:06
one more question (sorry, i hope it's the last time)
all my videos are using this filter in virtual dub
resize : absolute pixels 1280 720
aspect ratio : same as source
compute height from ratio : 16:9
filter mode : i want the lanczos4 :)
framing options : letterbox to aspect ratio : 16:9
can i have this opened each time with virtual dub, and with the batch cript you told me ?
with this cript you told me i'm getting a lot of error, and working on few files only, like "no audio stream" "use crop, as it must be divided by 4" something, etc ...
thanks :)
lobotomys
21st August 2011, 10:30
help, my script is not working anymore.
i installed Avisynth 2.5 both available in program files (x86) and program files (x64 folder).
i put the FFvideosource file in the Avisynth plugins folder, and virtual dub folder too. and made these script :
VID = FFVideoSource("C:\Some folder\source.mp4")
AUD = FFAudioSource("C:\Some folder\source.mp4")
AudioDub(VID,AUD)
@echo off
del "%TMP%\~temp.avs"
echo VID = FFVideoSource("%1") >> "%TMP%\~temp.avs"
echo AUD = FFAudioSource("%1") >> "%TMP%\~temp.avs"
echo AudioDub(VID,AUD) >> "%TMP%\~temp.avs"
"C:\VirtualDub\VirtualDub.exe" "%TMP%\~temp.avs"
but nothing is working anymore, i get a error like this :
avisynth open failure
will overwrite time code ..
help !
(i installed this : FFmpegSource r517)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.