Re: [osg-users] Video playback on Mac via Imagestream.
Hi all, Sorry for the slow reply, I got put on a different project for a week. I'm going to give the quicktime plugin another try then, I couldn't find any good documentation on it anywhere so probably got a little confused and made an error. I will let you know how I get on. Cheers, Elliott -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=41947#41947 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Video playback on Mac via Imagestream.
Hi, Am 29.07.11 16:17, schrieb Elliott D'Alvarez: Currently the quicktime libraries are being loaded, so it should be able to play .mov at the very least, but getting to that stage seems to be a bit of a nightmare. I do not necessarily need a multi-platform approach, i.e. I can used one system for windows and another for mac. Any help is much appreciated. Quicktime should work on Windows and Mac (32bit, 64bit is not supported by the current quicktime-plugin) What problems did you have with quicktime on Mac? cheers, Stephan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Video playback on Mac via Imagestream.
Hi Stephan, I'm not sure if it's a quicktime issue or simply the fact I am trying to load the video through ARTK loader, but the video stream always returns null when I try and load the file. When using the ar2VideoOpen from ARTK I try the following: (Where config is my video name) COsgVideoStreamBase::CreateStream(config, hflip, vflip, deinter); char* arConfig = new char[512];// = -devNum=1 -flipH -flipV; sprintf(arConfig, -device=QUICKTIME -movie=\%s\, config.c_str()); // Open the video path. m_video = ar2VideoOpen(arConfig); if(!m_video){ osg::notify(osg::WARN) ARTKVidStream::CreateStream: ERROR: Opening file ' config '. std::endl; } If I'm loading videos in windows I do the following (this works): bool COsgVideoStreamBase::CreateStream(const std::string config, bool hflip, bool vflip, bool deinter) { this-m_hFlip = hflip; this-m_vFlip = vflip; this-m_isInter = deinter; //use file name as images file name this-setFileName(config); //set image as upside down if required if(m_vFlip) {osg::Image::setOrigin(osg::Image::TOP_LEFT);} return true; } I was under the impression that the bottom code would only work on windows, and you needed to declare the quicktime player for mac? Sorry about the messy code! Thank you! Cheers, Elliott -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=41735#41735 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Video playback on Mac via Imagestream.
Hi, I don't know ARTK, i would just use plain osg and its quicktime-plugin for video playback: (make sure osg's quicktime-plugin gets compiled) osg::ImageStream* image_stream = dynamic_castosg::ImageStream*(osgDB::readImageFile(my_movie.mov)); if (image_stream) { image_stream-play(); // do something with the imagestream } cheers, Stephan Am 29.07.11 17:58, schrieb Elliott D'Alvarez: Hi Stephan, I'm not sure if it's a quicktime issue or simply the fact I am trying to load the video through ARTK loader, but the video stream always returns null when I try and load the file. When using the ar2VideoOpen from ARTK I try the following: (Where config is my video name) COsgVideoStreamBase::CreateStream(config, hflip, vflip, deinter); char* arConfig = new char[512];// = -devNum=1 -flipH -flipV; sprintf(arConfig, -device=QUICKTIME -movie=\%s\, config.c_str()); // Open the video path. m_video = ar2VideoOpen(arConfig); if(!m_video){ osg::notify(osg::WARN) ARTKVidStream::CreateStream: ERROR: Opening file ' config '. std::endl; } If I'm loading videos in windows I do the following (this works): bool COsgVideoStreamBase::CreateStream(const std::string config, bool hflip, bool vflip, bool deinter) { this-m_hFlip = hflip; this-m_vFlip = vflip; this-m_isInter = deinter; //use file name as images file name this-setFileName(config); //set image as upside down if required if(m_vFlip) {osg::Image::setOrigin(osg::Image::TOP_LEFT);} return true; } I was under the impression that the bottom code would only work on windows, and you needed to declare the quicktime player for mac? Sorry about the messy code! Thank you! Cheers, Elliott -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=41735#41735 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Video playback on Mac via Imagestream.
I remember using ARVideo on Mac once and finding that the path to the video is different to windows. Well not exactly, I think ARVideo sees the current directory as the path to the actual binary in the bundle not the resources folder. Try putting your file in a few different places, bundle root, MacOS folder etc. Think that will fix it. But also Stephans point is very valid, just use OSGs native video support rather than ARTKs Cheers Tom -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=41739#41739 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org