Hi J-S, Thanks for the link to the camera. I tried the mjpeg osgmovie commandline and it took a number of seconds before the first frame came up then looked to be working but then eventually stopped update. The media.sav commandline does nothing right now, osgmovie just hangs without reporting anything.
I haven't yet looked into the ffmpeg plugin and how it's coping with these sources, but I am using svn/trunk rather than your suggested changes that I haven't merged. Do your suggested changes effect the end result at all? Robert. On Wed, Apr 22, 2009 at 2:42 PM, Jean-Sébastien Guay <[email protected]> wrote: > Hi all, > > (from the thread "ffmpeg plugin streaming improvements (I hope)" on > osg-submissions: > http://thread.gmane.org/gmane.comp.graphics.openscenegraph.cvs/5283/focus=5305 > ) >> >> I'll probably also be able to give addresses of some public streams in >> various formats, so we can all test from the same streams. > > I've gotten approval to open up our camera publically. I'd appreciate if > only the people who want to test the ffmpeg plugin with http/rtsp streams > from our camera would connect to it. It's currently just looking at a phone > in our offices, and the admin interface should hopefully not be accessible > without the password. > > You can see the video by opening this page in a browser: > > http://iris.cm-labs.com:10080/ > > If you want to try it with the OSG ffmpeg plugin, try this command line: > > osgmovie -e ffmpeg http://iris.cm-labs.com:10080/img/video.mjpeg > > (you can add --interactive to get a quad you can rotate around) > > You will (hopefully) see that the video starts, runs for about 15-20 > seconds, and then stops. That's one bug I would like to see if someone can > fix. Perhaps it's caused by my version of ffmpeg, I didn't think of trying > with another but if others don't see this then I'll try). > > Another problem (which you won't see because you don't have the real > movement to compare to) is that there is a delay at the start of viewing the > stream (video is about 5 seconds late with reality) and it catches up. At > the end of the 15-20 seconds of video, the video is pretty much in sync with > reality. > > It would be great if that http stream worked without those problems. > > The other part is that the camera also streams MPEG-4 over RTSP. The command > for that should be: > > osgmovie -e ffmpeg rtsp://iris.cm-labs.com:10554/img/media.sav > > If you try that, currently it will hang while trying to read data (with > OSG_NOTIFY_LEVEL=DEBUG, you see "ReaderWriterFFmpeg::readImage > rtsp://iris.cm-labs.com:10554/img/media.sav"). When I do that here, I can > see the camera sending data (the data light flashes) but it seems the ffmpeg > plugin is unable to decode that data. I suspect there is some initialization > missing to tell ffmpeg what sort of data to expect over rtsp, but I'm not > sure. > > I'm also trying to see if I can use another video viewer to see if the rtsp > address at least works, but I'm not sure what I can use on Windows to view > rtsp streams. I've tried Windows Media Player but it says it can't open that > protocol, and I've tried The KMPlayer (my player of choice) but that crashes > when trying to open it. Any suggestions? > > So, if anyone with some ffmpeg / streaming experience is inclined to help > getting these working, I'd be very grateful. As I've said, I've kind of hit > a wall here, I don't know how I can go forward. > > I'll remove the public streams in a week if there's no progress, but will > keep them up as long as needed if someone wants to use them to test. > > Thanks in advance, > > J-S > -- > ______________________________________________________ > Jean-Sebastien Guay [email protected] > http://www.cm-labs.com/ > http://whitestar02.webhop.org/ > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

