Thanks you very much Moritz now it's works fine ! I will install an update 
version to improve that.

-----Message d'origine-----
De : ffmpeg-user <[email protected]> De la part de Moritz Barsnick
Envoyé : vendredi 22 février 2019 09:40
À : FFmpeg user discussions <[email protected]>
Objet : Re: [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.

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
_______________________________________________
ffmpeg-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

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

Reply via email to