[FFmpeg-user] Error Capturing MJPEG Stream from Linux version
Alejandro Escudero
escuderoserrano at hotmail.com
Fri Feb 5 19:02:35 EET 2021
Hi,
Please your help, I am on Linux (Centos 7) trying to capture a MJPEG stream from an IP Camera and save it as MP4, but I am getting this error:
[ingenient @ 0x2637be0] Could not find codec parameters for stream 0 (Video: mjpeg, none(bt470bg/unknown/unknown)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Note: On windows 10 FFmpeg version I donĀ“t have this problem (ffmpeg version N-94423-ga0c1970781 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 9.1.1 (GCC) 20190716)
Command (Linux):
ffmpeg -t 58 -i "http://user:pass@cameraip:8080/video.cgi"<%22http:/user:pass at cameraip:8080/video.cgi%22> -f segment -segment_time 16 -strftime 1 '/var/www/myrecordings/%Y-%m-%d_%H:%M:%S.mp4'
Response (Linux):
ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-36)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-gnutls --enable-ladspa --enable-libass --enable-libcdio --enable-libdc1394 --enable-libfdk-aac --enable-nonfree --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
[ingenient @ 0x2637be0] Could not find codec parameters for stream 0 (Video: mjpeg, none(bt470bg/unknown/unknown)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
"http://user:pass@cameraip:8080/video.cgi"<%22http:/user:pass at cameraip:8080/video.cgi%22>: could not find codec parameters
Input #0, ingenient, from "http://user:pass@cameraip:8080/video.cgi"<%22http:/user:pass at cameraip:8080/video.cgi%22>:
Duration: N/A, bitrate: N/A
Stream #0:0: Video: mjpeg, none(bt470bg/unknown/unknown), 25 tbr, 1200k tbn, 25 tbc
Output #0, segment, to '/var/www/myrecordings/%Y-%m-%d_%H:%M:%S.mp4':
Output file #0 does not contain any stream
Thanks for your help
Regards
Alejandro
[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Libre de virus. www.avast.com<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
More information about the ffmpeg-user
mailing list