Log in

View Full Version : Muxing in graphedit Error: No Time Stamp!


nasedo
24th January 2005, 20:27
Hi!

I hope i'm on the good forum to ask this question!

i've build this filtergraph :

source.avi -> avisplitter -> AVIMux -> final.avi
source.mp3->MPEG-I Stream Splitter -> AVIMux

in order to multiplex video which is in source.avi with audio which is in source.mp3.

But when i wanna play the filtergraph, Graphedit tells me :
'The graph could not change state, No time stamp has been set for this sample.'

What should i do in order to play it?? :confused:

Thanks for your replies

DaveEL
25th January 2005, 11:32
Don't use graphedit for muxing avimux filter is b0rked

Dave

DaveEL
25th January 2005, 11:43
Originally posted by nasedo
Hi!

source.avi -> avisplitter -> AVIMux -> final.avi
source.mp3->MPEG-I Stream Splitter -> AVIMux

But when i wanna play the filtergraph, Graphedit tells me :
'The graph could not change state, No time stamp has been set for this sample.'


Right this is just a guess.
MP3 frames contain timestamps so the MPEG-I stream splitter doesn't bother to read them and just expects the decoder to recieve frames and read the timestamp itself. The AVIMux on the other hand insists on having timestamps and so it doesn't work.

DaveEL

stephanV
25th January 2005, 11:59
use AVIMux GUI

the AVIMux filter in graphedit is not very useable (neither is graphedit a nice tool), why do you need it?

(mp3 in AVI is also a small hack, so thats why it wont work probably)

nasedo
25th January 2005, 12:46
hi!
Thanks for your replies.

To be more explicit, i want to multiplex video (.avi MPEG4) and audio (.mp3) in an app that i'm developping with delphi (i'm using dspack).

So how can i do that?
is there a way to set a reference time?
Or should i rewrite the filtergraph i use (with some other filters)?

DaveEL
25th January 2005, 18:06
Don't use dshow graphs no good avimux filters exist. Best off using something like vdubmod scipts or automating avimux gui.

stephanV: graphedit is a great tool just not for this.

DaveEL

nasedo
25th January 2005, 19:06
Thanks, DaveEL, but i'd like my app to be standalone. i dont't want to need avimux gui or vdubmod...
Is there no solution to do that in delphi??

DaveEL
25th January 2005, 21:10
nope dshow avi muxers suck even with CBR mp3 let alone if your working with VBR which isn't even part of the spec.

DaveEL

stephanV
25th January 2005, 21:21
Originally posted by DaveEL
stephanV: graphedit is a great tool just not for this.

Its not.
It crashes randomly, hangs and is best to be avoided. :p

@nasedo:
write your own AVI muxer :)

Dmitry Vergheles
26th January 2005, 14:42
Hi nasedo,
actually you can write the filter, that you'll insert between MPEG splitter and AVI Muxer. It has to set time stamps on media samples.

nasedo
26th January 2005, 16:20
Thanks for your advices, but i'm not sure to be able to write a filter!

Are there really no other solutions???
How do AVIMuxGUI and VDub 'good' AVI multiplexing?
It must be possible to mux mp3 and mpeg4 in AVI with delphi, no ?

DaveEL
27th January 2005, 11:32
Yeah write the routines yourself or extract the bits of code you need from one of those into a c dll.

DaveEL