Hi JS,

I'm afraid I'm of little help on this one as your obviously using bits of
the API I've not looked at yet.

One thing I can say is the web cam reading code that I did as an experiment
only opened up the video input, it didn't open an audio input from the
webcam.  One has to explictly open up the various input sources so unless
you are explictly wiring up audio you won't automatically have it.

Done the line I expect we'll need to some extra facilities added to
osgDB::ReaderWriter::Options to help will passing data to the video plugins
like ffmpeg.  These options would have all the extra configuration info.  We
might also need a query mechanism to make it easier to find out what
facilities are available before requesting image sizes/audio etc.

Robert.

On Fri, Apr 10, 2009 at 4:36 PM, Jean-Sébastien Guay <
[email protected]> wrote:

> Hi Robert,
>
>  Well the docs are better than when I first looked at ffmpeg a number of
>> years back ;-)
>>
>
> 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).
>
> I'm also wondering how to specify the actual format of an rtsp feed. I have
> a URL of the form
>
>    rtsp://xx.xx.xx.xx:554/img/media.sav
>
> and for ffmpeg to be able to read that, I need to set the format to "rtsp",
> but I know that the video is actually in mpeg-4. ffmpeg doesn't seem to
> automatically figure that out, because even though data is transferred, no
> image shows up (I'm guessing the decoder can't read the data it gets from
> the camera because it thinks it's in some other format). Do I have some way
> of telling it "this is mpeg-4 over rtsp"?
>
> I would have thought rtsp would be a protocol and not a codec, but looking
> at avformat/allformats.c, it's set up as a "demuxer":
>
>    REGISTER_DEMUXER  (RTSP, rtsp);
>
>  If you aren't using audio then I don't think the plugin does any sync.
>>  Perhaps Tanguy can clarify this.
>>
>
> The camera does support audio, so I think I need to tell the plugin to not
> use it somehow. Perhaps I could add an option "noaudio" in the options
> string? Or is there already something for that?
>
>
> 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

Reply via email to