[FFmpeg-user] Problem with a onvif camera

Denis info at denisgottardello.it
Sun Apr 15 16:04:32 EEST 2018


Hi. With this command line I can capture the video stream from my personal onvif camera 
using my linux machine and the official already built ffmpeg executable from the ffmpeg 
website.
*./ffmpeg -i rtsp://192.168.1.162:554/onvif1 a.avi*

But I can't capture the video stream from another onvif camera, the command line is
*./ffmpeg -i rtsp://admin:admin@172.30.153.33:554/1 a.avi*

The ffmpeg output is
denis at tomcat:~/Scaricati/ffmpeg-3.4.2-64bit-static$ ./ffmpeg -i rtsp://
admin:admin at 172.30.153.33:554/1 a.avi
ffmpeg version 3.4.2-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2018 the 
FFmpeg developers
  built with gcc 6.3.0 (Debian 6.3.0-18) 20170516
[rtsp @ 0x43a4bc0] UDP timeout, retrying with TCP
[rtsp @ 0x43a4bc0] method PAUSE failed: 455 Method Not Valid In This State
[rtsp @ 0x43a4bc0] Could not find codec parameters for stream 0 (Video: h264, none): 
unspecified size
*Consider increasing the value for the 'analyzeduration' and 'probesize' options*
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, rtsp, from 'rtsp://admin:admin@172.30.153.33:554/1':
  Metadata:
    title           : h264.mp4
  Duration: N/A, bitrate: 64 kb/s
    Stream #0:0: Video: h264, *none*, 90k tbr, 90k tbn, 180k tbc
    Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (pcm_mulaw (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
[rtsp @ 0x43a4bc0] UDP timeout, retrying with TCP
[rtsp @ 0x43a4bc0] method PAUSE failed: 455 Method Not Valid In This State
rtsp://admin:admin@172.30.153.33:554/1: Operation not permitted
Finishing stream 0:0 without any data written to it.
Output #0, avi, to 'a.avi':
  Metadata:
    INAM            : h264.mp4
    ISFT            : Lavf57.83.100
    Stream #0:0: Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 8000 Hz, mono, s16p
    Metadata:
      encoder         : Lavc57.107.100 libmp3lame
size=       6kB time=00:00:00.00 bitrate=N/A speed=   0x    
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 
unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
denis at tomcat:~/Scaricati/ffmpeg-3.4.2-64bit-static$ 

I have already tried to increase the value of analyzeduration and probesize

I can watch the camera using *vlc* with the same command line.
Can someone suggest me how to resolve? Is ffmpeg not fully compatible with all video 
cameras?

Regards.


+39.347.4070897
www.labcsp.com[1] 
www.denisgottardello.it[2] 
GMT+1
Skype: mrdebug

--------
[1] http://www.labcsp.com
[2] http://www.denisgottardello.it


More information about the ffmpeg-user mailing list