Re: [osg-users] How to do a videostreaming
There is a VNC plugin for OSG. I have not used it but wouldn't that allow a remote user to see/manipulate the model. You can also just do normal VNC desktop sharing, or if you are on Windows lookg at Glance (www.glance.net) , or desktop sharing via Skype. -B From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Sergey Kurdakov Sent: Friday, February 18, 2011 5:09 AM To: osg-users@lists.openscenegraph.org Subject: [osg-users] How to do a videostreaming Hi Nagore, But now, when I do a streaming, I want the remote expert to see the rendered model too, i.e., the remote expert sees exactly the same as the user can see in the glasses. there are several steps to stream : have an image sequence, code it, then send as some type of video stream. osg has ffmpeg plugin which can code and then stream video ( rtsp, maybe rtmp in latest ffmpeg builds ). But I did not check for a while if it is in state but look this forum page http://forum.openscenegraph.org/viewtopic.php?t=1758 Regards Sergey ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to do a videostreaming
Brad Colbert wrote: There is a VNC plugin for OSG. I have not used it but wouldn't that allow a remote user to see/manipulate the model. While you're at it, I remember an old patch - no idea if it ever made it into OSG trunk: http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/2010-May/006317.html Cheers, Martin. -- Unix _IS_ user friendly - it's just selective about who its friends are ! -- ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to do a videostreaming
Hi Nagore, You can get prebuilt ffpmeg libs for Windows here http://ffmpeg.arrozcru.org/autobuilds/. Your question is not clear : do you want to read and render video streams in osg or do you want to stream osg rendered frames over network ? The first can be done using ffmpeg or directshow plugins (look at osgmovie example or at osgviewer --movie). The last is not implemented in osg, and you have to code it yourself using for example ffmpeg libs and/or Live555 libs. Mourad On Thu, Feb 24, 2011 at 8:55 AM, Nagore Barrena nagore.barr...@tecnalia.com wrote: Hi, First, thank you for yours help! I have some problems to compile FFmpeg in Windows. I'm going to try with directshow. Do you know any example of stream with dshow in OSG? Thanks in advance! Cheers, Nagore -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=37074#37074 ___ 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] How to do a videostreaming
Hi thanks for your help! My case is the second one. I want to stream osg rendered frames over network. So, I have to install ffmpeg libs. But, Must I install Live555? Or if I use ffmpeg it will be enought? What is your recomendation? Thanks! Cheers, Nagore -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=37095#37095 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to do a videostreaming
My case is the second one. I want to stream osg rendered frames over network. So, I have to install ffmpeg libs. But, Must I install Live555? Or if I use ffmpeg it will be enought? What is your recomendation? Hi, Ok, it is more clear now. Well, it should be possible to use only ffmpeg, but I think it is difficult with Windows :) FFmpeg distrib contains a streaming server application (ffserver). I didn't hear of someone who succedded to build and make ffserver work on a Windows machine. I didn't also find a Windows port of this program. Anyways, the big steps to stream rendered frames, is to encode them (using ffmpeg) and then stream them (ussing ffserver or Live555). Encoding the frames is not difficult to do. At least you should be able to save the rendered frames in a video file following the output-example.c sample shipped with ffmpeg sources ( http://ffmpeg.org/doxygen/trunk/output-example_8c-source.html). At the osg part, you can do reder-to-texture to get the raw rendered frames. The streaming part is more challenging. If you manage to make ffserver work, it would be straightforward. all you need to do would be to write the output of the encoded frames into a ffserver feed (like in this http://www.mygeekproject.com/?tag=ffserver) Otherwise, you can use live555 for streaming. The problem with that is there is no concrete documentation on ffmpeg/live555 integration, but, it is feasable. The main difficulty is to choose a working combination of a ffmpeg encoder and a live555 streaming container and to configure them accordingly. Mourad ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to do a videostreaming
Hi Mourad Dont know if you are interested by this solution, But if you are on linux, I have done this a year ago with gstreamer. I wrote on the mailing list to explain how to do it. With a quick search you should be able to find it. Dont hesitate to ask if you want to try this path. Cedric On Thu, 2011-02-24 at 17:13 +0100, Mourad Boufarguine wrote: My case is the second one. I want to stream osg rendered frames over network. So, I have to install ffmpeg libs. But, Must I install Live555? Or if I use ffmpeg it will be enought? What is your recomendation? Hi, Ok, it is more clear now. Well, it should be possible to use only ffmpeg, but I think it is difficult with Windows :) FFmpeg distrib contains a streaming server application (ffserver). I didn't hear of someone who succedded to build and make ffserver work on a Windows machine. I didn't also find a Windows port of this program. Anyways, the big steps to stream rendered frames, is to encode them (using ffmpeg) and then stream them (ussing ffserver or Live555). Encoding the frames is not difficult to do. At least you should be able to save the rendered frames in a video file following the output-example.c sample shipped with ffmpeg sources (http://ffmpeg.org/doxygen/trunk/output-example_8c-source.html). At the osg part, you can do reder-to-texture to get the raw rendered frames. The streaming part is more challenging. If you manage to make ffserver work, it would be straightforward. all you need to do would be to write the output of the encoded frames into a ffserver feed (like in this http://www.mygeekproject.com/?tag=ffserver) Otherwise, you can use live555 for streaming. The problem with that is there is no concrete documentation on ffmpeg/live555 integration, but, it is feasable. The main difficulty is to choose a working combination of a ffmpeg encoder and a live555 streaming container and to configure them accordingly. Mourad ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Provide OpenGL, WebGL and OpenSceneGraph services +33 659 598 614 Cedric Pinson mailto:cedric.pin...@plopbyte.net http://www.plopbyte.net signature.asc Description: This is a digitally signed message part ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to do a videostreaming
Hi, First, thank you for yours help! I have some problems to compile FFmpeg in Windows. I'm going to try with directshow. Do you know any example of stream with dshow in OSG? Thanks in advance! Cheers, Nagore -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=37074#37074 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] How to do a videostreaming
Hi, I'm working in Windows XP with OSG-2.8.2. I'm working with OSG and another tracking program to do AR. The main idea is: The user using special glasses and the camera of these glasses can see the 3D model overlapped to the real object. At the same time, the images captured by the camera are sent to the remote user. And there is direct communication between the user and the remote user. To rendered the 3d model I use OSG. Until now, I did videostreaming using VLC, but I only sent to the remote user, the images captured by the camera. But now, when I do a streaming, I want the remote expert to see the rendered model too, i.e., the remote expert sees exactly the same as the user can see in the glasses. So, I need to do a videostreaming from generated osg::Image. I find in osg's documentation that osg::ImageStream class exist. But I'm not sure if I have to use it. I find some examples but they explain how to read a videostreaming file in osg or how to create a movie into a file. And it is not my case. Do you know, how can I do a videostreaming using osg? Thanks in advance! Cheers, Nagore -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=36795#36795 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] How to do a videostreaming
Hi Nagore, But now, when I do a streaming, I want the remote expert to see the rendered model too, i.e., the remote expert sees exactly the same as the user can see in the glasses. there are several steps to stream : have an image sequence, code it, then send as some type of video stream. osg has ffmpeg plugin which can code and then stream video ( rtsp, maybe rtmp in latest ffmpeg builds ). But I did not check for a while if it is in state but look this forum page http://forum.openscenegraph.org/viewtopic.php?t=1758 http://forum.openscenegraph.org/viewtopic.php?t=1758Regards Sergey ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to do a videostreaming
Hi, With Windows you can also use the directshow plugin. Cheers, On Fri, Feb 18, 2011 at 2:09 PM, Sergey Kurdakov sergey.fo...@gmail.comwrote: Hi Nagore, But now, when I do a streaming, I want the remote expert to see the rendered model too, i.e., the remote expert sees exactly the same as the user can see in the glasses. there are several steps to stream : have an image sequence, code it, then send as some type of video stream. osg has ffmpeg plugin which can code and then stream video ( rtsp, maybe rtmp in latest ffmpeg builds ). But I did not check for a while if it is in state but look this forum page http://forum.openscenegraph.org/viewtopic.php?t=1758 http://forum.openscenegraph.org/viewtopic.php?t=1758Regards Sergey ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Serge Lages http://www.tharsis-software.com ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org