[FFmpeg-user] weird seek behaviour in hls streams

Daniel Oberhoff danieloberhoff at googlemail.com
Wed Apr 18 12:49:57 EEST 2018


> On 17. Apr 2018, at 12:43, Gyan Doshi <gyandoshi at gmail.com> wrote:
> 
> 
> 
> On 4/17/2018 4:07 PM, Daniel Oberhoff wrote:
> 
>> We run a service that extensively relies on hls streams recorded from rtsp capable cameras. We rotuinely generate clips from recorded streams and seem to run into weird behavior of -ss and -t. also it seems the hls stream always has a start-time of 1.4s. This is not the core problem though. when we generate short clips deep in to the stream i.e. -t 1000 -s 10 it often happens we get no output at all.
>> any ideas?
> 
> Please share full uncut command and console output for such a case.

Ok, i investigated some further. The source of the problem seem to be the start offsets that are “weird” around hls. For one all our hls recordings report a start offset of 1.4s, and we have no idea where that is from (the source has no such offset).

Then i started using -t as an imput option, which seems to arrive at the right output duration, but the offsets are still unsettling:

[daniel at AjaxServer data]$ ffmpeg -ss 0 -t 1 -i ./e24f6b2e-36ad-4ac0-9670-879bb34ea828/cam5_2_hls.m3u8 daniel-dev/test.mp4
ffmpeg version 3.3.6 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 7 (GCC)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' --extra-cflags='-I/usr/include/nvenc ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libavresample   3.  5.  0 /  3.  5.  0
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
[hls,applehttp @ 0x556f496ad760] Opening '/data/e24f6b2e-36ad-4ac0-9670-879bb34ea828/cam5_2_segments/segment0000000.ts' for reading
Input #0, hls,applehttp, from './e24f6b2e-36ad-4ac0-9670-879bb34ea828/cam5_2_hls.m3u8':
  Duration: 01:16:57.68, start: 1.400000, bitrate: 0 kb/s
  Program 0
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuvj420p(pc, bt709), 2304x2800, 25 fps, 25 tbr, 90k tbn, 180k tbc
    Metadata:
      variant_bitrate : 0
File 'daniel-dev/test.mp4' already exists. Overwrite ? [y/N] y
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[hls,applehttp @ 0x556f496ad760] Opening '/data/e24f6b2e-36ad-4ac0-9670-879bb34ea828/cam5_2_segments/segment0000000.ts' for reading
No pixel format specified, yuvj420p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x556f4985ea40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x556f4985ea40] profile High, level 5.1
[libx264 @ 0x556f4985ea40] 264 - core 148 r2795 aaa9aa8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - 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=87 lookahead_threads=14 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, mp4, to 'daniel-dev/test.mp4':
  Metadata:
    encoder         : Lavf57.71.100
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuvj420p(pc), 2304x2800, q=-1--1, 25 fps, 12800 tbn, 25 tbc
    Metadata:
      variant_bitrate : 0
      encoder         : Lavc57.89.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
[hls,applehttp @ 0x556f496ad760] Opening '/data/e24f6b2e-36ad-4ac0-9670-879bb34ea828/cam5_2_segments/segment0000001.ts' for reading
frame=   25 fps=5.3 q=-1.0 Lsize=    1481kB time=00:00:00.88 bitrate=13789.4kbits/s speed=0.188x
video:1480kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.076065%
[libx264 @ 0x556f4985ea40] frame I:1     Avg QP:20.23  size:659453
[libx264 @ 0x556f4985ea40] frame P:6     Avg QP:23.22  size:111582
[libx264 @ 0x556f4985ea40] frame B:18    Avg QP:28.09  size: 10343
[libx264 @ 0x556f4985ea40] consecutive B-frames:  4.0%  0.0%  0.0% 96.0%
[libx264 @ 0x556f4985ea40] mb I  I16..4:  3.8% 61.9% 34.3%
[libx264 @ 0x556f4985ea40] mb P  I16..4:  1.0%  4.2%  1.0%  P16..4: 28.2%  5.7%  3.2%  0.0%  0.0%    skip:56.7%
[libx264 @ 0x556f4985ea40] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 28.0%  0.5%  0.1%  direct: 0.1%  skip:71.2%  L0:51.8% L1:46.9% BI: 1.3%
[libx264 @ 0x556f4985ea40] 8x8 transform intra:63.3% inter:50.5%
[libx264 @ 0x556f4985ea40] coded y,uvDC,uvAC intra: 74.7% 31.4% 14.0% inter: 5.1% 2.7% 0.1%
[libx264 @ 0x556f4985ea40] i16 v,h,dc,p: 49% 10% 22% 19%
[libx264 @ 0x556f4985ea40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 12% 21%  5%  7%  6%  7%  5%  6%
[libx264 @ 0x556f4985ea40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 14% 17% 10% 13%  7%  9%  7%  6%
[libx264 @ 0x556f4985ea40] i8c dc,h,v,p: 59% 19% 14%  8%
[libx264 @ 0x556f4985ea40] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x556f4985ea40] ref P L0: 76.7% 10.4% 11.5%  1.4%
[libx264 @ 0x556f4985ea40] ref B L0: 88.4% 11.0%  0.6%
[libx264 @ 0x556f4985ea40] ref B L1: 93.2%  6.8%
[libx264 @ 0x556f4985ea40] kb/s:12121.02
[daniel at AjaxServer data]$ ffprobe daniel-dev/test.mp4
ffprobe version 3.3.6 Copyright (c) 2007-2017 the FFmpeg developers
  built with gcc 7 (GCC)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' --extra-cflags='-I/usr/include/nvenc ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libavresample   3.  5.  0 /  3.  5.  0
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'daniel-dev/test.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.71.100
  Duration: 00:00:01.00, start: 0.000000, bitrate: 12135 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc), 2304x2800, 12126 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
      handler_name    : VideoHandler
[daniel at AjaxServer data]$


[daniel at AjaxServer data]$ ffmpeg -ss 1 -t 1 -i ./e24f6b2e-36ad-4ac0-9670-879bb34ea828/cam5_2_hls.m3u8 daniel-dev/test.mp4
ffmpeg version 3.3.6 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 7 (GCC)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' --extra-cflags='-I/usr/include/nvenc ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libavresample   3.  5.  0 /  3.  5.  0
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
[hls,applehttp @ 0x55e0b72f5760] Opening '/data/e24f6b2e-36ad-4ac0-9670-879bb34ea828/cam5_2_segments/segment0000000.ts' for reading
Input #0, hls,applehttp, from './e24f6b2e-36ad-4ac0-9670-879bb34ea828/cam5_2_hls.m3u8':
  Duration: 01:16:57.68, start: 1.400000, bitrate: 0 kb/s
  Program 0
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuvj420p(pc, bt709), 2304x2800, 25 fps, 25 tbr, 90k tbn, 180k tbc
    Metadata:
      variant_bitrate : 0
File 'daniel-dev/test.mp4' already exists. Overwrite ? [y/N] y
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[hls,applehttp @ 0x55e0b72f5760] Opening '/data/e24f6b2e-36ad-4ac0-9670-879bb34ea828/cam5_2_segments/segment0000000.ts' for reading
[hls,applehttp @ 0x55e0b72f5760] Opening '/data/e24f6b2e-36ad-4ac0-9670-879bb34ea828/cam5_2_segments/segment0000001.ts' for reading
No pixel format specified, yuvj420p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x55e0b74a6a40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x55e0b74a6a40] profile High, level 5.1
[libx264 @ 0x55e0b74a6a40] 264 - core 148 r2795 aaa9aa8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - 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=87 lookahead_threads=14 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, mp4, to 'daniel-dev/test.mp4':
  Metadata:
    encoder         : Lavf57.71.100
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuvj420p(pc), 2304x2800, q=-1--1, 25 fps, 12800 tbn, 25 tbc
    Metadata:
      variant_bitrate : 0
      encoder         : Lavc57.89.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
[hls,applehttp @ 0x55e0b72f5760] Opening '/data/e24f6b2e-36ad-4ac0-9670-879bb34ea828/cam5_2_segments/segment0000002.ts' for reading
frame=   25 fps=6.4 q=-1.0 Lsize=     869kB time=00:00:01.48 bitrate=4807.3kbits/s speed=0.376x
video:867kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.129355%
[libx264 @ 0x55e0b74a6a40] frame I:1     Avg QP:18.89  size:662802
[libx264 @ 0x55e0b74a6a40] frame P:6     Avg QP:22.59  size: 18314
[libx264 @ 0x55e0b74a6a40] frame B:18    Avg QP:28.78  size:  6382
[libx264 @ 0x55e0b74a6a40] consecutive B-frames:  4.0%  0.0%  0.0% 96.0%
[libx264 @ 0x55e0b74a6a40] mb I  I16..4:  7.3% 57.7% 35.0%
[libx264 @ 0x55e0b74a6a40] mb P  I16..4:  0.1%  0.2%  0.1%  P16..4: 15.8%  1.1%  0.7%  0.0%  0.0%    skip:81.9%
[libx264 @ 0x55e0b74a6a40] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 18.8%  0.3%  0.1%  direct: 0.1%  skip:80.8%  L0:54.7% L1:44.2% BI: 1.1%
[libx264 @ 0x55e0b74a6a40] 8x8 transform intra:57.6% inter:60.1%
[libx264 @ 0x55e0b74a6a40] coded y,uvDC,uvAC intra: 80.4% 35.6% 18.5% inter: 1.1% 0.8% 0.1%
[libx264 @ 0x55e0b74a6a40] i16 v,h,dc,p: 40% 13% 25% 21%
[libx264 @ 0x55e0b74a6a40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 14% 18%  6%  8%  6%  8%  6%  6%
[libx264 @ 0x55e0b74a6a40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 15% 16% 10% 12%  7%  9%  7%  6%
[libx264 @ 0x55e0b74a6a40] i8c dc,h,v,p: 54% 21% 15%  9%
[libx264 @ 0x55e0b74a6a40] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x55e0b74a6a40] ref P L0: 87.1%  1.5% 10.5%  0.9%
[libx264 @ 0x55e0b74a6a40] ref B L0: 88.6% 11.1%  0.3%
[libx264 @ 0x55e0b74a6a40] ref B L1: 93.9%  6.1%
[libx264 @ 0x55e0b74a6a40] kb/s:7100.50
[daniel at AjaxServer data]$ ffprobe daniel-dev/test.mp4
ffprobe version 3.3.6 Copyright (c) 2007-2017 the FFmpeg developers
  built with gcc 7 (GCC)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' --extra-cflags='-I/usr/include/nvenc ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libavresample   3.  5.  0 /  3.  5.  0
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'daniel-dev/test.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.71.100
  Duration: 00:00:01.00, start: 0.600000, bitrate: 7115 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc), 2304x2800, 7106 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
      handler_name    : VideoHandler
[daniel at AjaxServer data]$

[daniel at AjaxServer data]$ ffmpeg -ss 2 -t 1 -i ./e24f6b2e-36ad-4ac0-9670-879bb34ea828/cam5_2_hls.m3u8 daniel-dev/test.mp4
ffmpeg version 3.3.6 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 7 (GCC)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' --extra-cflags='-I/usr/include/nvenc ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libavresample   3.  5.  0 /  3.  5.  0
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
[hls,applehttp @ 0x5562ba693760] Opening '/data/e24f6b2e-36ad-4ac0-9670-879bb34ea828/cam5_2_segments/segment0000000.ts' for reading
Input #0, hls,applehttp, from './e24f6b2e-36ad-4ac0-9670-879bb34ea828/cam5_2_hls.m3u8':
  Duration: 01:16:57.68, start: 1.400000, bitrate: 0 kb/s
  Program 0
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuvj420p(pc, bt709), 2304x2800, 25 fps, 25 tbr, 90k tbn, 180k tbc
    Metadata:
      variant_bitrate : 0
File 'daniel-dev/test.mp4' already exists. Overwrite ? [y/N] y
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[hls,applehttp @ 0x5562ba693760] Opening '/data/e24f6b2e-36ad-4ac0-9670-879bb34ea828/cam5_2_segments/segment0000001.ts' for reading
[hls,applehttp @ 0x5562ba693760] Opening '/data/e24f6b2e-36ad-4ac0-9670-879bb34ea828/cam5_2_segments/segment0000002.ts' for reading
No pixel format specified, yuvj420p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x5562ba844a40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x5562ba844a40] profile High, level 5.1
[libx264 @ 0x5562ba844a40] 264 - core 148 r2795 aaa9aa8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - 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=87 lookahead_threads=14 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, mp4, to 'daniel-dev/test.mp4':
  Metadata:
    encoder         : Lavf57.71.100
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuvj420p(pc), 2304x2800, q=-1--1, 25 fps, 12800 tbn, 25 tbc
    Metadata:
      variant_bitrate : 0
      encoder         : Lavc57.89.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
[hls,applehttp @ 0x5562ba693760] Opening '/data/e24f6b2e-36ad-4ac0-9670-879bb34ea828/cam5_2_segments/segment0000003.ts' for reading
frame=   25 fps=6.1 q=-1.0 Lsize=     852kB time=00:00:01.48 bitrate=4716.9kbits/s speed=0.362x
video:851kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.130918%
[libx264 @ 0x5562ba844a40] frame I:1     Avg QP:18.69  size:591712
[libx264 @ 0x5562ba844a40] frame P:8     Avg QP:23.69  size: 20183
[libx264 @ 0x5562ba844a40] frame B:16    Avg QP:28.88  size:  7354
[libx264 @ 0x5562ba844a40] consecutive B-frames: 12.0%  8.0%  0.0% 80.0%
[libx264 @ 0x5562ba844a40] mb I  I16..4:  6.9% 59.7% 33.4%
[libx264 @ 0x5562ba844a40] mb P  I16..4:  0.0%  0.2%  0.1%  P16..4: 16.3%  1.2%  0.9%  0.0%  0.0%    skip:81.3%
[libx264 @ 0x5562ba844a40] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 20.7%  0.4%  0.1%  direct: 0.1%  skip:78.7%  L0:51.6% L1:47.3% BI: 1.1%
[libx264 @ 0x5562ba844a40] 8x8 transform intra:59.7% inter:51.7%
[libx264 @ 0x5562ba844a40] coded y,uvDC,uvAC intra: 78.2% 33.1% 17.5% inter: 1.7% 0.8% 0.0%
[libx264 @ 0x5562ba844a40] i16 v,h,dc,p: 24% 15% 32% 29%
[libx264 @ 0x5562ba844a40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 15% 18%  6%  7%  5%  7%  5%  6%
[libx264 @ 0x5562ba844a40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 17% 16%  9% 11%  6%  8%  6%  6%
[libx264 @ 0x5562ba844a40] i8c dc,h,v,p: 56% 20% 15%  9%
[libx264 @ 0x5562ba844a40] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x5562ba844a40] ref P L0: 85.8%  2.3% 10.5%  1.3%
[libx264 @ 0x5562ba844a40] ref B L0: 86.1% 13.5%  0.4%
[libx264 @ 0x5562ba844a40] ref B L1: 93.3%  6.7%
[libx264 @ 0x5562ba844a40] kb/s:6966.78
[daniel at AjaxServer data]$ ffprobe daniel-dev/test.mp4
ffprobe version 3.3.6 Copyright (c) 2007-2017 the FFmpeg developers
  built with gcc 7 (GCC)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' --extra-cflags='-I/usr/include/nvenc ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libavresample   3.  5.  0 /  3.  5.  0
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'daniel-dev/test.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.71.100
  Duration: 00:00:01.00, start: 0.600000, bitrate: 6981 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc), 2304x2800, 6972 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
      handler_name    : VideoHandler
[daniel at AjaxServer data]$


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20180418/b845ae1f/attachment.sig>


More information about the ffmpeg-user mailing list