View Full Version : decoding h264 in virtualdubmod
zeldAIS
15th March 2007, 08:15
i don't know what happened but decoding h264 videos way back was not a problem when i installed ffdshow and enabled h264 in it. But now, it doesn't seem to decode in virtualdubmod again >_< it just says "VideoSourceAVI error : The source image format is not acceptable. (error code -2)"
I've uninstalled all codecs in my computer and downloaded the latest ffdshow and enabled h264 - but it still doesn't decode at virtualdubmod >_< i've googled for more than 2 hours literally trying to locate the problem with every google hit and following solutions - but to no avail - it still doesn't work >_<
I can't really use avisynth script because i have to append three videos that are in h264 with the output video as direct stream copy h264 video.
please help! >_< I need h264 decoding in virtualdubmod >_<
foxyshadis
15th March 2007, 08:29
You turned the decoding on in vfw, which is a different control panel entirely from the main decoder? (Working on integrating them all, but no timeframe.)
zeldAIS
15th March 2007, 11:28
weh? i don't quite get where is the one you are describing :(
anyway here's a screenshot of the ffdshow :
http://img292.imageshack.us/img292/9995/ffdshowhs0.th.jpg (http://img292.imageshack.us/my.php?image=ffdshowhs0.jpg)
h264 - as you can see - is enabled - but still the same error with virtualdubmod >_<
foxyshadis
15th March 2007, 13:03
Try avidemux instead, then. VFW h.264, if that's even what these are, doesn't get much support here. Without knowing the container or the procedure you took to get them in there, it's hard to help.
zeldAIS
15th March 2007, 13:13
the container is .avi (used DeathTheSheep's encoding)
any help will be appreciated - i will try avidemux now. and report here. thanks!
though i really would like the videos to work on virtualdubmod again like it used to :(
zeldAIS
15th March 2007, 15:24
ok - i've tried avidemux - the output video though is not playable cause avidemux warned that i will loose frame accuracy - and so it did :(
LoRd_MuldeR
15th March 2007, 20:29
ok - i've tried avidemux - the output video though is not playable cause avidemux warned that i will loose frame accuracy - and so it did :(
What exactly are you doing? Do you try to cut the AVI file in "Copy" mode ???
zeldAIS
16th March 2007, 00:05
i didn't cut anything. i appended three h264 files then saved it. the resulting video is that there are frames that are lagging and the video and audio is out of sync. also, when i try to fast forward to a point by clicking status length bar (arg - forgot what its called), it just stops playing and the last frame that was played awhile ago only works...
harph
23rd March 2007, 16:09
I have exactly the same problem in my VDubMod... -.- Although on my notebook I can open the h264 encoded avi and view it, but I can't do anything with it (throws a internal codec error)... On my desktop comp it gives the same error as zeldAIS...
(I already described what I have done here http://forum.doom9.org/showthread.php?p=964489#post964489 )
LoRd_MuldeR
23rd March 2007, 23:38
i didn't cut anything. i appended three h264 files then saved it. the resulting video is that there are frames that are lagging and the video and audio is out of sync. also, when i try to fast forward to a point by clicking status length bar (arg - forgot what its called), it just stops playing and the last frame that was played awhile ago only works...
Strange.
I just took two H.264 AVI's, opened the first in Avidemux, then appended the second one and finally saved the file in "Copy" mode to a new AVI. The resulting AVI file conatins the merged video and plays 100% fine (checked MPlayer and MediaPlayerClassic). Audio and Video is perfectly in sync, seeking works fine and there are no delayed frames.
Are you sure the files you tried to merge are the same resolution, same framerate and so on ???
bond
24th March 2007, 16:51
using avc in avi is crappy and desync is exactly what can happen to you if you still use it (especially with b-frames)
appending two different avc streams might work in some smart players (like mplayer) but will not lead to a correct avc stream. you need to make sure that the two streams use 100% the same encoding parameters or at least different sps ids
PhAtfiSh
25th March 2007, 12:38
I wanted to do a simialr thing, decode an x264 stream in an .mp4 container in vdub. Really so i could just examine it frame-by-frame.
I tried loading the .mp4 stream through avisynth with DirectShowSource(), but i get: "Cannot playback file, the format is not supported".
I dont understand why, i can playback mp4/x264 files fine in MPC, so i have the DS filters needed to decode it all. But in both MPC and Vdub, when i try to playback the avs script using DirectShowSource() i get the error.
I have the newest version of ffdshow-tryout installed with the vdub plugin (if that makes any difference), and all the settings are correct as far as i can make out.
foxyshadis
25th March 2007, 12:43
Maybe you don't have external mp4 splitter installed? MPC's is internal. And what exactly does getting an mp4/avc into directshowsource have to do with getting avi/avc into virtualdub?
bond
25th March 2007, 12:51
I dont understand why, i can playback mp4/x264 files fine in MPC, so i have the DS filters needed to decode it all. no
mpc is a bad player for testing whether you are having the filters installed you are needing. mpc can play mp4 through its own internal mp4 splitter and also through wrapping quicktime afaik. so being able to play a file in mpc doesnt mean you have a directshow filter installed
for checking whether everything is correctly installed use graphedit (available in the doom9 download directory)
Blue_MiSfit
26th March 2007, 02:16
AVCSource in AviSynth is the only solution for me that works even when seeking. It's still in its infancy, requiring you to demux the MP4/MKV to raw .264 streams, then index them, but it's fast and from that point on functions just like DGDecode.
Still, you can try just installing an MP4 splitter (http://mirror01.x264.nl/x264/MatroskaSplitter.exe)
i have to append three videos that are in h264 with the output video as direct stream copy h264 video
I think you're confused anyway. If you use DirectShowSource (or any AviSynth method for that matter) you will have uncompressed video being fed to VirtualDub. If you want to merge multiple AVC streams, you may be SOL... Especially if they differ in any way.
You MIGHT be able to use avidemux, as it has better support for AVC than most apps.
Most likely you're going to have to re-encode. In which case, just use avisynth to load multiple sources, adjust them as necessary, and output one stream to x264 :)
~MiSfit
PhAtfiSh
26th March 2007, 16:31
Bond was correct, i was missing a MP4 splitter; putting 'MP4Splitter.ax' in WINDOWS\system32 and doing 'regsvr32 MP4Splitter.ax' fixed that (Gabest's MP4 splitter).
And 'DirectShowSource("your.file.mp4", audio=false)' in the .avs seems to load fine in VirtualDub.
Sorry for highjacking zeldAIS's thread, this isn't quite what he was asking; but maybe it will help someone else out, who like me just wanted to be able to view a x264/mp4 file in Vdub.
land
28th March 2007, 10:47
I have encode a file using x264 in the command line and I can't open that file with VirtualDub.
But if I encode the same file in VirtualDub and saving it like an avi I can open the file without problems.
Anyone know what's the problem?
Another strange thing is that when I encode the file in the command line it size is 3.572KB and when I encode it with VirtualDub it size is 4.201KB.
Thanks in advance and sorry for my english
Krismen
28th March 2007, 13:04
I have encode a file using x264 in the command line and I can't open that file with VirtualDub.
You can wrap h264 file into avi using avc2avi (http://mirror05.x264.nl/Sharktooth/x264/utils/avc2avi_r594.7z).
land
29th March 2007, 11:22
When I encode the file in the command line I also obtain an avi file.
I think the problem could be that the file's colorspace obteined from the command line is YV12 and VirtualDub can't open these kind of files. So I must do a colorspace conversion to RGB.
I have use this script:
AVISource("video.avi")
ConvertToRGB()
But VirtualDub give me this error:
http://img256.imageshack.us/img256/9499/errorvdow9.th.jpg (http://img256.imageshack.us/my.php?image=errorvdow9.jpg)
foxyshadis
29th March 2007, 15:18
Put the full path to the video in the avisource. If you rely on the current folder you'll see those kinds of problems.
Virtualdub can open YV12 files just fine, in fact avisynth's native colorspace in YV12. If you have an outdated version of virtualdub, with no option to use internal YUV codecs, you might need to install a YV12 codec like xvid first.
gameplaya15143
30th March 2007, 00:47
i don't know what happened but decoding h264 videos way back was not a problem when i installed ffdshow and enabled h264 in it. But now, it doesn't seem to decode in virtualdubmod again
see here
http://forum.doom9.org/showthread.php?p=823619#post823619
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.