[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 09:56:08 EET 2019


Hello,

This is the output capture for both runs:

For Windows:
Command line: ffmpeg -i http:// 192.9.200.121/ipcam/mjpeg.cgi -y -map 0 -t 10 -f matroska  _capture2.mkv

Result:
C:\Users\moussa.abdallah>ffmpeg -i http://192.9.200.121/ipcam/mjpeg.cgi -y -map 0 -t 10 -f matroska  _capture2.mkv
ffmpeg version N-93147-g9326117bf6 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8.2.1 (GCC) 20190212
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
  libavutil      56. 26.100 / 56. 26.100
  libavcodec     58. 47.102 / 58. 47.102
  libavformat    58. 26.101 / 58. 26.101
  libavdevice    58.  6.101 / 58.  6.101
  libavfilter     7. 48.100 /  7. 48.100
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
Input #0, mpjpeg, from 'http://192.9.200.121/ipcam/mjpeg.cgi':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 000001bca4c6e6c0] using SAR=1/1
[libx264 @ 000001bca4c6e6c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 000001bca4c6e6c0] profile High, level 4.0, 4:2:0, 8-bit
[libx264 @ 000001bca4c6e6c0] 264 - core 157 r2935 545de2f - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to '_capture2.mkv':
  Metadata:
    encoder         : Lavf58.26.101
    Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuvj420p(pc), 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 1k tbn, 25 tbc
    Metadata:
      encoder         : Lavc58.47.102 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
frame=  250 fps= 14 q=-1.0 Lsize=    6083kB time=00:00:09.88 bitrate=5043.4kbits/s speed=0.562x
video:6081kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.042993%
[libx264 @ 000001bca4c6e6c0] frame I:1     Avg QP:22.62  size:155230
[libx264 @ 000001bca4c6e6c0] frame P:63    Avg QP:22.71  size: 58451
[libx264 @ 000001bca4c6e6c0] frame B:186   Avg QP:25.57  size: 12840
[libx264 @ 000001bca4c6e6c0] consecutive B-frames:  0.8%  0.0%  0.0% 99.2%
[libx264 @ 000001bca4c6e6c0] mb I  I16..4:  7.2% 92.4%  0.5%
[libx264 @ 000001bca4c6e6c0] mb P  I16..4:  2.3% 17.7%  0.0%  P16..4: 37.2% 15.8% 17.5%  0.0%  0.0%    skip: 9.5%
[libx264 @ 000001bca4c6e6c0] mb B  I16..4:  1.1%  6.9%  0.0%  B16..8: 33.1%  5.1%  0.8%  direct: 1.8%  skip:51.2%  L0:58.4% L1:36.7% BI: 4.9%
[libx264 @ 000001bca4c6e6c0] 8x8 transform intra:87.2% inter:89.3%
[libx264 @ 000001bca4c6e6c0] coded y,uvDC,uvAC intra: 54.0% 45.8% 2.3% inter: 17.4% 21.3% 1.6%
[libx264 @ 000001bca4c6e6c0] i16 v,h,dc,p: 35% 26% 28% 10%
[libx264 @ 000001bca4c6e6c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 20% 51%  3%  1%  1%  0%  1%  2%
[libx264 @ 000001bca4c6e6c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 44% 24% 16%  2%  3%  5%  2%  2%  2%
[libx264 @ 000001bca4c6e6c0] i8c dc,h,v,p: 53% 25% 21%  1%
[libx264 @ 000001bca4c6e6c0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 000001bca4c6e6c0] ref P L0: 26.8%  9.6% 45.6% 18.0%
[libx264 @ 000001bca4c6e6c0] ref B L0: 39.7% 40.3% 20.0%
[libx264 @ 000001bca4c6e6c0] ref B L1: 67.8% 32.2%
[libx264 @ 000001bca4c6e6c0] kb/s:4980.67


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
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-28)
  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 --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 @ 0x113cc40] 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://192.9.200.121/ipcam/mjpeg.cgi: could not find codec parameters
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
[buffer @ 0x1144fe0] Unable to parse option value "0x0" as image size
[buffer @ 0x1144fe0] Unable to parse option value "-1" as pixel format
[buffer @ 0x1144fe0] Unable to parse option value "0x0" as image size
[buffer @ 0x1144fe0] Error setting option video_size to value 0x0.
[graph 0 input from stream 0:0 @ 0x113cac0] Error applying options to the filter.
Error opening filters!

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

Thanks you for your help,

Moussa.

-----Message d'origine-----
De : ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> De la part de Carl Eugen Hoyos
Envoyé : jeudi 21 février 2019 18:28
À : FFmpeg user questions <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.

2019-02-21 17:11 GMT+01:00, ABDALLAH Moussa <Moussa.ABDALLAH at nexeya.com>:

> I try to read and write an stream video with the command bellow on 
> Centos 7 but it doesn't work :
>
> ffmpeg -loglevel 48 -i http://xx.x.xx.xx/ipcam/mjpeg.cgi -y -map 0 -t 
> 10 -f matroska  _capture.mkv
>
> When I try it on Windows it works fine !

Please provide command line including complete, uncut console output (not an image of an excerpt of the console output) for both runs.

Carl Eugen
_______________________________________________
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