Log in

View Full Version : DS OggMultiplexer & Stream Comments


nasedo
1st February 2005, 12:51
Hi!

I'm programming with delphi/dspack
For multiplexing in ogm, i'm building this graph :

.avi ->
.ogg ->
.ogg -> Ogg Multiplexer
.srt ->
.srt ->

which works great, but i'd like to add "Stream comments" for audio and subtitle streams, particularly Language:English,French.

I disovered that there was a comment editor in the property page of the OggMultiplexer.
But is there a way to set these comments in my app, without opening the property page? :confused:

Regards,

Nasedo

Koepi
1st February 2005, 13:39
If you look into the OggMux sources ( http://sf.net/projects/oggmux/ ) you'll find a (c++) example of how it's done in OggMux.
I don't know the similar datatype to a Variant in delphi.

Cheers
Koepi

nasedo
1st February 2005, 16:55
Thanks a lot Koepi!

I looked into your sources :
-you are querying IPropertyBag interface for the concerned input pin of the OggMuxer.
-you call write method with language parameters.

Here's my problem : i query for IPropertyBag interface and ... delphi compiler tells me "Undeclared identifier : IPropertyBag" :(
Is this interface absent from dspack headers?
What should I do?
Please reply, i'm so close to the end of my project!!

Thanks
Nasedo

nasedo
1st February 2005, 18:04
I'm so stupid

I found that IPropertyBag Interface is in ActiveX.pas...

"uses ActiveX" and all is ok, i can set language name in the streams!