从 RTSP 中提取图像时出错

从 RTSP 中提取图像时出错

我在 DOS 提示符中使用 FFMPEG。

-i rtsp://admin:[email protected]:554/video_0 -q:v 15 -s 360x240 -vf \"select='eq(pict_type,PICT_TYPE_I)'\" -vsync vfr -f mjpeg -i -

我收到错误:

ffmpeg version N-69779-g2a72b16 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
  libavutil      54. 18.100 / 54. 18.100
  libavcodec     56. 22.100 / 56. 22.100
  libavformat    56. 21.100 / 56. 21.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.100 /  5. 11.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Option q:v (use fixed quality scale (VBR)) cannot be applied to input file - -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
Error parsing options for input file -.
Error opening input files: Invalid argument

除了“mjpeg”之外,我还尝试了“image2pipe”,但它给出了同样的错误。

我应该使用什么?

答案1

-i -您在末尾使用。-i指定输入文件或位置。只需使用-

相关内容