diff --git a/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp b/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp index 33855ac2e..2b803a050 100644 --- a/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp +++ b/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp @@ -71,8 +71,6 @@ bool FFmpegDecoder::open(const std::string & filename, FFmpegParameters* paramet #else avdevice_register_all(); - OSG_NOTICE<<"Attempting to stream "<getOptions(), "video_size", "640x480", 0); @@ -84,11 +82,11 @@ bool FFmpegDecoder::open(const std::string & filename, FFmpegParameters* paramet if (iformat) { - OSG_NOTICE<<"Found input format: "< parameters(new osgFFmpeg::FFmpegParameters); parseOptions(parameters.get(), options); + + if (filename.compare(0, 5, "/dev/")==0) + { + return readImageStream(filename, parameters.get()); + } + if (parameters->isFormatAvailable()) { return readImageStream(filename, parameters.get());