[FFmpeg-user] obtaining an image from a video stream

LsBender mlefe74 at gmail.com
Fri Aug 3 16:37:37 CEST 2012


In fact just forgot what I said.
It works when I put video file like file.avi, but when I specify a stream
like this one : rtsp://172.16.17.38/stream1 which use *rtsp and h264* I have
this error:

D:\Documents and Settings\melefebv\Bureau>ffmpeg -vf select="eq(pict_typ
e\,PICT_TYPE_I)" -i "rtsp:///172.16.17.40/stream1" -vsync 2 -f image2
-vframes 5
 "frame-%02d.png"
ffmpeg version N-43060-ga85b4a5 Copyright (c) 2000-2012 the FFmpeg
developers
  built on Jul 30 2012 13:14:08 with gcc 4.7.1 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r
--enable-libass
 --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut
--enable-libope
njpeg --enable-librtmp --enable-libschroedinger --enable-libspeex
--enable-libth
eora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-
libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid
--e
nable-zlib
  libavutil      51. 66.100 / 51. 66.100
  libavcodec     54. 45.100 / 54. 45.100
  libavformat    54. 22.100 / 54. 22.100
  libavdevice    54.  2.100 / 54.  2.100
  libavfilter     3.  5.101 /  3.  5.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
*
rtsp://172.16.17.38/stream1: Invalid data found when processing input*

But I can watch all the camera on VLC using stream like
rtsp://172.45.17.38/stream1, rtsp://172.45.17.39/stream1,
rtsp://172.16.17.40/stream1 ...

Note that I can use mjpeg by specify "stream2" but I still have the same
problem.

Thanks for your help





--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/obtaining-an-image-from-a-video-stream-tp4652178p4652266.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list