Log in

View Full Version : Trying to mux an H.264 with an mp3 in vdubmod


digidragon
28th January 2005, 01:52
I've used the x264 VFW codec to encode an avi, and am using the videosoft H.264 codec to decode it.

I am trying to mux an mp3 with the avi. I know that vdubmod can't play it using the videosoft codec, as it's a directshow codec, but I'm just trying to mux it in direct stream copy mode. Apparently this should be possible, but I get the following error:

[i] Starting up: VirtualDubMod build 2439/release
AVI: Opening file "C:\s_Movie_1.avi"
Beginning dub operation.
[E] Error: VideoSourceAVI error: The source image format is not acceptable. (error code -2)

I can mux it using AVI-Muxer, but I get sync errors (variable), and would prefer to use vdubmod as I'm encoding using Gordian Knot.

Any ideas please?

bond
28th January 2005, 12:24
hm, install ffdshow and enable the vfw h.264 decoder in it!

Koti
28th January 2005, 18:43
Just a F.Y.I. (I know vdubmod is out of dev and showing age) :(
x264 with B-Frames (1 thru whatever) if allready in a ogm will not re-mux in vdubmod. Seems it wont read x264 video in .ogm with B-Frames, but it will mux to ogm from x264 in avi/mkv. Without B-frames it works perfectly. Oggmux has no issues either way and works great.

ps
sorry if a bit off topic but was the best place I could think of :)

digidragon
28th January 2005, 21:27
Originally posted by bond
hm, install ffdshow and enable the vfw h.264 decoder in it!
The H.264 decoder is directshow-only. The encoder is vfw.

stephanV
28th January 2005, 22:09
there is also a vfw decoder in. look under VFW configuration

digidragon
1st February 2005, 16:06
Thanks stephen. I'd missed that part. I enabled the H264 codec under VFW, but it still won't mux the avi and the mp3, I still get the "The source image format is not acceptable. (error code -2)" error.

Other people seem to manage this okay, so I can't understand what's going wrong for me...

stephanV
1st February 2005, 16:19
that error doesnt make sense unless you are recompressing...

cant you use AVIMux GUI?

bond
1st February 2005, 16:34
are you sure that the videosoft decoder isnt decoding your file (or maybe old hdot264, if installed)? use another fourcc, like avc1

digidragon
1st February 2005, 16:37
I'm not recompressing - I'm trying to use direct stream copy.

I have used AVI-Mux GUI, and it muxes fine. But I get audio sync problems with it. I use gordian knot to encode and would prefer to use vdubmod as part of the process.

digidragon
1st February 2005, 16:48
Originally posted by bond
are you sure that the videosoft decoder isnt decoding your file (or maybe old hdot264, if installed)? use another fourcc, like avc1
If I open the avi in MPC then it uses the videosoft decoder, but if I open the movie in vdub (mot mod) it says that it's unable to locate a VFW decompressor for the h264 format.

Even though the VFW decoder is enabled in ffdshow, it doesn't show up in gspot's codec list. Should it be in there?

I'm not sure what you mean about changing the fourcc? Of the avi or of the codec?

stephanV
1st February 2005, 17:01
Originally posted by digidragon
I'm not recompressing - I'm trying to use direct stream copy.
I'll see if I can recreate it...


I have used AVI-Mux GUI, and it muxes fine. But I get audio sync problems with it. I use gordian knot to encode and would prefer to use vdubmod as part of the process.

What kind of desynch? (offset, progressingly worse or variable)

If anything should handle VBR MP3 (is it VBR?) in AVI it is AVIMux GUI... :)

[edit] you error warning still doesnt make sense... you dont even need a decoder to do DSC in VirtualDubMod and "source image format"-errors normally indicate that a compressor (codec) does not like the input...

everything works fine here. sorry :(

bond
1st February 2005, 17:12
Originally posted by digidragon
If I open the avi in MPC then it uses the videosoft decoder, but if I open the movie in vdub (mot mod) it says that it's unable to locate a VFW decompressor for the h264 format.this means that your file propably uses the VSSH fourcc and therefore the videosoft decoder might be used in virtualdub to decode the file
i assume the videosoft vfw decoder is buggy/cant handle x264

I'm not sure what you mean about changing the fourcc? Of the avi or of the codec?install xvid from koepi, start the fourcc changer tool, open the .avi and change the fourcc to "h264"

that should ensure that ffdshow is used to decode the file in vd

digidragon
1st February 2005, 17:23
Originally posted by stephanV
What kind of desynch? (offset, progressingly worse or variable)

If anything should handle VBR MP3 (is it VBR?) in AVI it is AVIMux GUI... :)

It's a variable sync problem. The mp3 is CBR not VBR.

digidragon
1st February 2005, 17:26
Originally posted by bond
i assume the videosoft vfw decoder is buggy/cant handle x264

The videosoft decoder is a beta, but it's directshow only, not VFW.

install xvid from koepi, start the fourcc changer tool, open the .avi and change the fourcc to "h264"
It was already set to h264, but I changed it anyway.

Still the same problem.

As I asked in my post above, should the VFW ffdshow h264 decoder show up in gspot's codec list? Is that maybe why vdub complains?

stephanV
1st February 2005, 17:35
like i said, this can never be a decoder related issue... no decoding is involved in doing a DSC.

its weird you get a variable synch issue with CBR MP3... but this is all weird anyway. :rolleyes:

digidragon
1st February 2005, 17:45
I agree - it's weird.

I've tried nero's h264 encoding but it's way too slow (25 minutes for a 1 minute clip!!!), plus it won't let me encode mpegs, it will only accept complete DVD titles.

Any idea what I can do to fix the vdub codec problem? What about unregistering all the codecs on my system, as described in the "Clean Start" at http://www.inmatrix.com/articles/mediasetup3.shtml ?

stephanV
1st February 2005, 18:03
you dont have to do anything with that... its not a codec problem :p

digidragon
1st February 2005, 18:16
So where do you think the problem lies? Why is it apparently looking for a codec when it doesn't need to? Surely the problem must be at system-level, as vdubmod is not installed as such, it's only contained within its own folder.

stephanV
1st February 2005, 18:18
can you do a DSC with vanilla VDub?

digidragon
1st February 2005, 19:40
In vdub, when I try to open the avi, it either says it can't find and h264 decompressor, or it crashes...

"An out-of-bounds memory access (access violation) occurred in module 'GTCODEC'"

digidragon
1st February 2005, 19:54
Well, I deleted the GUIDs for the GTDODEC from the registry, renamed the GTCODEC.DLL file, and vdubmod happily muxed the avi and the mp3 :cool:

What is the GTCODEC and where does it come from...?

niamh
1st February 2005, 20:03
Glad you found a fix digidragon. That thing seems to be a fujifilm digital camera codec
I found this on the net

http://www.moviecodec.com/topics/130p1.html

Quote from that thread: now googling some more i stumbled upon the virtualdub page and read a rant from avery lee who gave it the Lame Codec of the Week award
http://www.virtualdub.org/oldnews
(see the entry for 10/13/2003) :p :p

digidragon
1st February 2005, 20:41
Originally posted by niamh
Glad you found a fix digidragon. That thing seems to be a fujifilm digital camera codec
Well I seem to have broken something else :rolleyes:

When starting encoding, vdubmod now complains that it can't start video compression - an unknown error occurred (maybe corrupt data) (error code -100).

I only deleted two entries in the registry, both of which related to the GTCODEC... :(

niamh
1st February 2005, 21:00
Oh, that's only the common x264 error :D 112 and 113 are finicky. 109 and 111 were working fine IIRC :)

digidragon
1st February 2005, 21:54
Originally posted by niamh
Oh, that's only the common x264 error :D 112 and 113 are finicky. 109 and 111 were working fine IIRC :)
So, nothing I've done then?

Do you have a link for 112 or 113? I can only seem to find the current revisions?

Thanks.