Re: [osg-users] osgmovie/ffmpeg plugin questions

2009-04-10 Thread Robert Osfield
Hi JS, I don't see any delay when I've been using the Linux webcam streaming. Stream over the http I did find a delay and I presume this was down the plugin/ffmpeg pulling down a block of data that it could then start processing. One thing you could look into syncronization between the audio and

Re: [osg-users] osgmovie/ffmpeg plugin questions

2009-04-10 Thread Jean-Sébastien Guay
Hi Robert, I don't see any delay when I've been using the Linux webcam streaming. Stream over the http I did find a delay and I presume this was down the plugin/ffmpeg pulling down a block of data that it could then start processing. Hmmm, perhaps that explains the fixed stream time as

Re: [osg-users] osgmovie/ffmpeg plugin questions

2009-04-10 Thread Robert Osfield
Hi JS, On Fri, Apr 10, 2009 at 3:14 PM, Jean-Sébastien Guay jean-sebastien.g...@cm-labs.com wrote: Hmmm, perhaps that explains the fixed stream time as well? Perhaps when streaming from http it pulls down a fixed block of data and then stops... I've been trying to get streaming through rtsp

Re: [osg-users] osgmovie/ffmpeg plugin questions

2009-04-10 Thread Jason Daly
Jean-Sébastien Guay wrote: Well, it's hard to get some technical info from what docs there seem to be. Things like what formats are supported read/write/readwrite, what the format strings are for av_find_input_format, etc. I needed to go to the code for those things (avformat/allformats.c).

Re: [osg-users] osgmovie/ffmpeg plugin questions

2009-04-10 Thread Jason Daly
Jean-Sébastien Guay wrote: Well, it's hard to get some technical info from what docs there seem to be. Things like what formats are supported read/write/readwrite, what the format strings are for av_find_input_format, etc. I needed to go to the code for those things (avformat/allformats.c).

Re: [osg-users] osgmovie/ffmpeg plugin questions

2009-04-10 Thread Jean-Sébastien Guay
Hi Jason, Try runing ffmpeg -formats. This shows the available formats and containers. On the left of each you'll see D for decode and E for encode. For the codecs it will also show A for audio and V for video. I don't remember what the last S and/or D stands for. Note that these are

Re: [osg-users] osgmovie/ffmpeg plugin questions

2009-04-10 Thread Jason Daly
Jean-Sébastien Guay wrote: Also, do you have any experience with the ffmpeg api itself? I'm wondering what kind of error handling there is, to be able to better recover from bad format errors or such. I have some, although I never got into live streaming like you're trying. Also, my

Re: [osg-users] osgmovie/ffmpeg plugin questions

2009-04-10 Thread Jean-Sébastien Guay
Hi Jason, Most of the av_* and avcodec_* functions return error codes. If the error code was negative, badness happened, and I bailed. That's about the limit of the error handling I've done. And that seems to be what the plugin currently does. If you actually examine the error codes, you