[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.

ABDALLAH Moussa Moussa.ABDALLAH at nexeya.com
Fri Feb 22 10:50:11 EET 2019


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 <ffmpeg-user-bounces at ffmpeg.org> De la part de Moritz Barsnick
Envoyé : vendredi 22 février 2019 09:40
À : FFmpeg user discussions <ffmpeg-user at ffmpeg.org>
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
ffmpeg-user at ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list