Hi, i'm trying to use ffmpeg to capture a h264 video stream from a bosch ip camera, with no luck. vlc can connect and shows the stream really nice.
this works great:
Code:
vlc rtsp://192.168.1.60:554/video.mp4
but ffmpeg ends with an error:
Code:
bash-4.1$ ffmpeg -i rtsp://192.168.1.60:554/video.mp4 /tmp/video.mp4FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers
built on Aug 15 2011 10:39:07 with gcc 4.5.2
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/man --disable-debug --enable-shared --disable-static --enable-pthreads --enable-libtheora --enable-libvorbis --enable-gpl --enable-version3 --enable-postproc --enable-swscale --enable-x11grab --enable-avfilter --enable-avfilter-lavf --arch=x86_64 --enable-libopenjpeg --enable-libdc1394 --enable-libmp3lame --enable-libfaac --enable-libfaad --enable-libxvid --enable-libx264 --enable-libspeex --enable-libdirac --enable-libschroedinger --enable-nonfree --enable-libgsm --enable-libvpx --enable-librtmp --enable-libopencore-amrnb --enable-libopencore-amrwb
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.19. 0 / 1.19. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
[rtsp @ 0x64b640]Estimating duration from bitrate, this may be inaccurate
Input #0, rtsp, from 'rtsp://192.168.1.60:554/video.mp4':
Metadata:
title : LIVE VIEW
Duration: N/A, bitrate: N/A
Stream #0.0: Video: 0x0000, 90k tbr, 90k tbn, 90k tbc
File '/tmp/video.mp4' already exists. Overwrite ? [y/N] y
picture size invalid (0x0)
Cannot allocate temp picture, check pix fmt
the target is to connect it to zoneminder, but i figured that i would first at least get it to work with ffmpeg.