Usually, NTSC framerate is 30000/1001; not sure why they have 29/1.

James Killian
----- Original Message ----- From: "Robert Osfield" <[email protected]>
To: "OpenSceneGraph Submissions" <[email protected]>
Sent: Wednesday, March 04, 2009 12:27 PM
Subject: Re: [osg-submissions] FindFFMPEG.cmake module to find FFMPEGwithout pkgconfig


Hi J-S,

Another little hint along the way, I just found this web page, rather
out of date now, but interesting no less:

http://www.inb.uni-luebeck.de/~boehme/libavcodec_update.html

The relevant part is:

AVFormatParameters formatParams;
AVInputFormat *iformat;

formatParams.device = "/dev/video0";
formatParams.channel = 0;
formatParams.standard = "ntsc";
formatParams.width = 640;
formatParams.height = 480;
formatParams.frame_rate = 29;
formatParams.frame_rate_base = 1;
filename = "";
iformat = av_find_input_format("video4linux");

av_open_input_file(&ffmpegFormatContext,
                filename, iformat, 0, &formatParams);


Clearly this is Linux specific, but perhaps there is chance that there
will be another variant one can use to stream under Windows and OSX.

Robert.
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org


_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to