[FFmpeg-user] Apply format with overlay and -ss in front of inputfile is strange?

nicolab robelt2525 at gmail.com
Sun Jul 12 16:10:13 CEST 2015


Using -ss <seconds> in fornt of inputfile, apply format filter and overlay
output is strange?

Creat rgbtestsrc video.
ffmpeg -f lavfi -i rgbtestsrc=d=10 -vcodec utvideo rgbtestsrc.avi

Overlay z output file is not change format before -ss input file.
This is OK.
ffmpeg -i rgbtestsrc.avi -ss 1 -vf
split[x][z];[x]format=gray[x1];[x1][z]overlay -vcodec libx264 1.mkv

ffmpeg version N-73541-g944a1aa Copyright (c) 2000-2015 the FFmpeg
developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
--enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b
--enable-libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm
--enable-l
ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb
--enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp
--en
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora
--ena
ble-libtwolame --enable-libvidstab --enable-libvo-aacenc
--enable-libvo-amrwbenc
 --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
--enabl
e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma
--ena
ble-decklink --enable-zlib
  libavutil      54. 28.100 / 54. 28.100
  libavcodec     56. 47.100 / 56. 47.100
  libavformat    56. 40.100 / 56. 40.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 21.100 /  5. 21.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
  Duration: 00:00:10.00, start: 0.000000, bitrate: 10462 kb/s
    Stream #0:0: Video: utvideo (ULRA / 0x41524C55), rgba, 320x240, 10494
kb/s,
SAR 1:1 DAR 4:3, 25 fps, 25 tbr, 25 tbn, 25 tbc
[libx264 @ 04554240] using SAR=1/1
[libx264 @ 04554240] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 04554240] profile High, level 1.3
[libx264 @ 04554240] 264 - core 146 r2538 121396c - H.264/MPEG-4 AVC codec -
Cop
yleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=3
deb
lock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00
mixed_ref=1 m
e_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1
chro
ma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0
decimate=1 i
nterlaced=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
scenec
ut=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 '4.mkv':
  Metadata:
    encoder         : Lavf56.40.100
    Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 320x240
[SA
R 1:1 DAR 4:3], q=-1--1, 25 fps, 1k tbn, 25 tbc
    Metadata:
      encoder         : Lavc56.47.100 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (utvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame=  225 fps=0.0 q=-1.0 Lsize=       7kB time=00:00:08.92 bitrate=  
6.5kbits
/s
video:5kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing
ove
rhead: 39.354343%
[libx264 @ 04554240] frame I:1     Avg QP:17.18  size:   785
[libx264 @ 04554240] frame P:56    Avg QP:18.15  size:    27
[libx264 @ 04554240] frame B:168   Avg QP:22.33  size:    13
[libx264 @ 04554240] consecutive B-frames:  0.4%  0.0%  0.0% 99.6%
[libx264 @ 04554240] mb I  I16..4: 42.3% 57.7%  0.0%
[libx264 @ 04554240] mb P  I16..4:  0.1%  0.0%  0.0%  P16..4:  0.6%  0.4% 
0.0%
 0.0%  0.0%    skip:98.8%
[libx264 @ 04554240] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.2%  0.0% 
0.0%
 direct: 0.0%  skip:99.8%  L0:17.8% L1:82.2% BI: 0.0%
[libx264 @ 04554240] 8x8 transform intra:53.8% inter:100.0%
[libx264 @ 04554240] coded y,uvDC,uvAC intra: 6.9% 30.4% 26.1% inter: 0.0%
0.1%
0.0%
[libx264 @ 04554240] i16 v,h,dc,p: 68% 18%  3% 11%
[libx264 @ 04554240] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 88%  0%  8%  0%  0%  0% 
0%
 0%  3%
[libx264 @ 04554240] i8c dc,h,v,p:  7% 14% 77%  3%
[libx264 @ 04554240] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 04554240] ref P L0: 91.8%  0.0%  7.6%  0.6%
[libx264 @ 04554240] kb/s:4.01

Using -ss in front of input file, and overlay z input. z is not changed
format, but output file is changed format.
ffmpeg -ss 1 -i rgbtestsrc.avi -vf
split[x][z];[x]format=gray[x1];[x1][z]overlay -vcodec libx264 2.mkv

Output is gray format. This is OK.
ffmpeg -i rgbtestsrc.avi -ss 1 -vf
split[x][z];[x]format=gray[x1];[z][x1]overlay -vcodec libx264 3.mkv

Output is gray format. This is OK.
ffmpeg -ss 1 -i rgbtestsrc.avi -vf
split[x][z];[x]format=gray[x1];[z][x1]overlay -vcodec libx264 4.mkv




-----
https://twitter.com/nico_lab
http://nico-lab.net/
--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Apply-format-with-overlay-and-ss-in-front-of-inputfile-is-strange-tp4671394.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list