[FFmpeg-user] I can read and save an stream video on Windows but I can't do it on Centos 7 with the same command line.

Moritz Barsnick barsnick at gmx.net
Fri Feb 22 10:40:11 EET 2019


Hi Moussa,

On Fri, Feb 22, 2019 at 07:56:08 +0000, ABDALLAH Moussa wrote:
> For Linux:
> 
> Command line: ffmpeg -i http:// 192.9.200.121/ipcam/mjpeg.cgi -y -map 0 -t 10 -f matroska  _capture2.mkv
> 
> Result:
> ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers

This is a very old version, which last got feature updates about three
years ago. It obviously misdetects your webcam's stream:

> Input #0, ingenient, from 'http://192.9.200.121/ipcam/mjpeg.cgi':
>   Duration: N/A, bitrate: N/A
>     Stream #0:0: Video: mjpeg, none(bt470bg/unknown/unknown), 25 tbr, 1200k tbn, 25 tbc

You *might* be able to get it to work by adding "-f mpjpeg" before
"-i". But actually, the proper recommendation is to use an up-to-date
version of ffmpeg. You can e.g. grab a binary here:
https://johnvansickle.com/ffmpeg/
(Left column, "git:" preferred)

> Why it doesn't works on centos 7? Maybe I forget to install a library?

No, if a library is missing, a binary will usually refuse to launch at
all.

Moritz


More information about the ffmpeg-user mailing list