View Full Version : Developing small Ogg Mu'xer app -> unresolved symbols
Koepi
21st March 2002, 01:51
Ahoy,
sorry to ask here, hopefully some developers look around here as well...
Ok, here is my problem:
As graphedit is a pain in the a** for muxing ogg, i wanted to start coding a small GUI that builds a filtergraph in DShow.
I finally seem to get cleanly compiling code, but somehow it doesn't link because of some unresolved external symbols and I can't figure out how to resolve this matter :(
OggMuxDlg.obj : error LNK2001: unresolved external Symbol _MEDIASUBTYPE_Ogg
OggMuxDlg.obj : error LNK2001: unresolved external Symbol _CLSID_CaptureGraphBuilder2
OggMuxDlg.obj : error LNK2001: unresolved external Symbol _IID_ICaptureGraphBuilder2
Any ideas?
Thanks in advance,
best regards,
Koepi
ChristianHJW
21st March 2002, 08:44
Originally posted by Koepi
As graphedit is a pain in the a** for muxing ogg, i wanted to start coding a small GUI that builds a filtergraph in DShow.
Koepi, this is great !! I know Nic and Blacksun had been toying with the idea also, but honestly dont know if the were successfully creating something or doing tests. Tobias will read here from time to time, but to be sure you get an answer i would mail him ... check your PM ...
Koepi
21st March 2002, 14:05
Finally, after some essential help of Tobias and Nic, i got rid of those problems.
Expect a very basic alpha version soon :)
Thanks a million to Tobias and Nic, I really appreciate this developer-friendly athmosphere :)
Best Regards,
Koepi
ChristianHJW
21st March 2002, 14:51
Youn coders are our racing horses :D .... be assured Doom9, Blacksun and myself will do anything possible you guys feel well ;) ...
caero
21st March 2002, 15:00
ANYTHING?? :eek:
sounds kinky :)
gnoshi
21st March 2002, 16:21
If more issues like this crop up with using Tobias's dlls, maybe it would be worth putting together a "using tobias's ogg dlls for programming FAQ and/or rudimentary guide"
Just a thought.
gnoshi
Koepi
21st March 2002, 18:29
Ohm those aren#t real problems with Tobias' dll, that's fine - he just mixed up a simple "before" with "after" which was making things a little complicated ;)
The rest is direct show troubles.
And I mean troubles.
It seems impossible to build an own filter graph :-(
I thought it would be easy like this:
in graphedit, i add the filewrite, after that the ogg muxer. both connect automatically.
When i choose rrender mediafile aftwoods with my desired files, those connect directly to the input pins of the ogg muxer.
Guess what does NOT happen if you code it this way.
Some filter graph specialists among us?
I'm willing to send out the source to someone who can build a graph out of some easy input fields ;)
Best regards,
Koepi
ChristianHJW
21st March 2002, 18:42
;) ...
LotionBoy
21st March 2002, 19:08
Uhm, since I've never coded for DirectX before this may not be applicable at all, but hey, I'll throw in my 2 cents and maybe there is a 1% chance it will be useful.
You can save a graph out as an XML file and then open it up and see how that deals with connecting filters. This probably doesn't help at all, but there is it . . .
LotionBoy
back to coding on Nachos. Stupid fake OS
Emp3r0r
21st March 2002, 19:56
koepi: u coding in C++?
Koepi
21st March 2002, 20:40
@Empe:
yupp, MS VC++ with MFC (wanted an easy start.... but building a working graph seems to be impossible... :-/ )
My last trial i started was creating all the filters manually, but now I get problems with enumerating the pins and connecting them.
If someone wants the construct and finish the work I'd be grateful.
Regards,
Koepi
Koepi
21st March 2002, 21:48
DAMNIT!
Possibly I've been finish with the proggi already...
The files I use for testing the multiplexing with made graphedit crash when using OggDS 0.9.7+0.9.8....
now with 0.9.6 it works fine.
I'll look into that tomorrow ...
*uff*
complete rewrite of the graph builder routines again...
Anyways, I just wanted to give some progress messages about what I do.
Regards,
Koepi
MaTTeR
21st March 2002, 21:54
Koepi,
0.9.8.6 seems to be more stable in general. It might be best to use that version for further development.
Don't give up yet;)
Koepi
21st March 2002, 22:52
Has anyone an idea how i can connect a filesink filter (i can't find any input pins there?) to the ogg muxer? that's the last piece missing in the filter graph ;)
Or I could switch over to encapsulate that into a ICaptureGraphBuilder and try my luck with that... I was hoping IGraphBuilder would suffice.
Regards,
Koepi
Nic
22nd March 2002, 10:32
Koepi, Ive been trying to answer this for, for ages, but ive got a bad connection at home :(
Anyway:
When Ive used the file sink my code looks like:
WCHAR TargetFile[2048];
// Place the target filename in TargetFile
// Convert from sz to unicode (wchar) using:
// MultiByteToWideChar(CP_ACP, 0, str, -1, wstr, 2048);
IBaseFilter *pWriter = NULL;
IFileSinkFilter *pWFS = NULL;
CreateFilter(CLSID_FileWriter, &pWriter);
pWriter->QueryInterface(IID_IFileSinkFilter, (void **) &pWFS);
pWFS->SetFileName(TargetFile, NULL);
Then add the filter to the graph & you should be able to find the write in pin. (if you don't set the filename as shown above you may have problems....)
But you may already be doing this, if so, then ill try & give you some more source, or send me your source & ill try & get it going as best I can :)
Take Care,
-Nic
Koepi
22nd March 2002, 11:17
Thanks for your efforts Nic, I added some Debug output and finally tracked my errors down. The solution for the filesink is the same as you explained :)
Thanks again,
Regards,
Koepi
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.