Error Capturing MJPEG Stream from Linux version

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Error Capturing MJPEG Stream from Linux version

Alejandro Escudero

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@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@cameraip:8080/video.cgi%22>: could not find codec parameters
Input #0, ingenient, from "http://user:pass@cameraip:8080/video.cgi"<%22http:/user:pass@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>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Error Capturing MJPEG Stream from Linux version

Carl Eugen Hoyos-2
Am Fr., 5. Feb. 2021 um 18:02 Uhr schrieb Alejandro Escudero
<[hidden email]>:

> ffmpeg -t 58 -i "http://user:pass@cameraip:8080/video.cgi"<%22http:/user:pass@cameraip:8080/video.cgi%22> -f segment -segment_time 16 -strftime 1 '/var/www/myrecordings/%Y-%m-%d_%H:%M:%S.mp4'

You could try to save the stream with wget or curl.

> Response (Linux):
>
> ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers

Very old and unsupported.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Error Capturing MJPEG Stream from Linux version

Carl Zwanzig
In reply to this post by Alejandro Escudero
On 2/5/2021 9:02 AM, Alejandro Escudero wrote:
> 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)

Much newer than...

> Response (Linux):
> ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers

That's positively _ancient_. Start by getting an up-to-date version of
ffmpeg for linux.

z!
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Error Capturing MJPEG Stream from Linux version

Alejandro Escudero
In reply to this post by Carl Eugen Hoyos-2
Which repository do you recommend me to download FFMpeg for CentOS Linux 7.7.1908 (Core)

Thanks again!

Alejandro

Obtener Outlook para iOS<https://aka.ms/o0ukef>
________________________________
De: ffmpeg-user <[hidden email]> en nombre de Carl Eugen Hoyos <[hidden email]>
Enviado: Friday, February 5, 2021 2:18:33 PM
Para: FFmpeg user questions <[hidden email]>
Asunto: Re: [FFmpeg-user] Error Capturing MJPEG Stream from Linux version

Am Fr., 5. Feb. 2021 um 18:02 Uhr schrieb Alejandro Escudero
<[hidden email]>:

> ffmpeg -t 58 -i "http://user:pass@cameraip:8080/video.cgi"<%22http:/user:pass@cameraip:8080/video.cgi%22> -f segment -segment_time 16 -strftime 1 '/var/www/myrecordings/%Y-%m-%d_%H:%M:%S.mp4'

You could try to save the stream with wget or curl.

> Response (Linux):
>
> ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers

Very old and unsupported.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fffmpeg.org%2Fmailman%2Flistinfo%2Fffmpeg-user&amp;data=04%7C01%7C%7C4ea3cabfb032480e9eff08d8ca0e6fb6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637481510644588119%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=aADE9YkYKp7PoE%2BuIXH8hTsZ%2Fxnd0eRNQvf3DeFA1WU%3D&amp;reserved=0

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Error Capturing MJPEG Stream from Linux version

Carl Zwanzig
On 2/5/2021 12:34 PM, Alejandro Escudero wrote:
> Which repository do you recommend me to download FFMpeg for CentOS Linux 7.7.1908 (Core)

see https://ffmpeg.org/download.html

Also https://ffmpeg.org/mailing-list-faq.html-
Please do not "top post" on this mailing list.

z!
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".