[FFmpeg-user] overlay png on mxf/prores

Steven Marcus steven.marcus at gmail.com
Fri Aug 15 01:14:52 CEST 2014


Hello,

Here's the output from an mxf source file that does not produce a result
with overlay visible.
The same command line does produce a result with overlay visible when the
source is mp4.

This console output was captured on a Mac using ffmpeg 2.3.2 built by
homebrew.
But I've tested using ffmpeg-2.3.2 built by hand on Centos 6.5 -- with the
same result.

Thanks again,
Steven


ffmpeg -y -i sample.mxf -codec:v libx264 -vprofile main -vlevel 3.1
-pix_fmt yuv420p -preset fast -crf 23 -vf movie=overlay-hd.png
scale='trunc(oh*a/2)*2:min(in_h,720)' [wm]; [in]
scale='trunc(oh*a/2)*2:min(in_h,720)' [v]; [v][wm] overlay [out] -codec:a
libfdk_aac -cutoff 18500 -b:a 128k -ar 44100 -ac 2 -movflags +faststart
sample-TMP.mp4

ffmpeg version 2.3.2 Copyright (c) 2000-2014 the FFmpeg developers
  built on Aug 15 2014 08:59:38 with Apple LLVM version 5.1
(clang-503.0.40) (based on LLVM 3.4svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.3.2 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-nonfree
--enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang
--host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac
--enable-libmp3lame --enable-libxvid --enable-libvpx --enable-libfdk-aac
  libavutil      52. 92.100 / 52. 92.100
  libavcodec     55. 69.100 / 55. 69.100
  libavformat    55. 48.100 / 55. 48.100
  libavdevice    55. 13.102 / 55. 13.102
  libavfilter     4. 11.100 /  4. 11.100
  libavresample   1.  3.  0 /  1.  3.  0
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc    52.  3.100 / 52.  3.100
Guessed Channel Layout for  Input Stream #0.1 : 7.1
Input #0, mxf, from 'sample.mxf':
  Metadata:
    modification_date: 2013-10-10 00:32:13
    uid             : 1e028667-4331-11e3-a19b-0025906721f1
    generation_uid  : 1f028667-4331-11e3-a19b-0025906721f1
    company_name    : AmberFin Limited.
    product_name    : iCR
    product_version : 8.8.0.51944
    product_uid     : 84ae5ffc-4710-11dd-a6fe-0010c629ec73
    application_platform: D210004 (Windows Server 2008 R2)
    timecode        : 10:00:00:00
  Duration: 00:06:14.08, start: 0.000000, bitrate: 62566 kb/s
    Stream #0:0: Video: mpeg2video (4:2:2), yuv422p(tv, bt470bg), 720x608
[SAR 608:405 DAR 16:9], max. 50000 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
    Stream #0:1: Audio: pcm_s16le, 48000 Hz, 8 channels, s16, 6144 kb/s
[libx264 @ 0x7fb10280ba00] using SAR=608/405
[libx264 @ 0x7fb10280ba00] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX
[libx264 @ 0x7fb10280ba00] profile Main, level 3.1
[libx264 @ 0x7fb10280ba00] 264 - core 142 r2438 af8e768 - H.264/MPEG-4 AVC
codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options:
cabac=1 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=6 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0
cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6
lookahead_threads=1 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=1 keyint=250 keyint_min=25
scenecut=40 intra_refresh=0 rc_lookahead=30 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 'sample-TMP.mp4':
  Metadata:
    modification_date: 2013-10-10 00:32:13
    uid             : 1e028667-4331-11e3-a19b-0025906721f1
    generation_uid  : 1f028667-4331-11e3-a19b-0025906721f1
    company_name    : AmberFin Limited.
    product_name    : iCR
    product_version : 8.8.0.51944
    product_uid     : 84ae5ffc-4710-11dd-a6fe-0010c629ec73
    application_platform: D210004 (Windows Server 2008 R2)
    timecode        : 10:00:00:00
    encoder         : Lavf55.48.100
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p,
720x608 [SAR 608:405 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc
    Metadata:
      encoder         : Lavc55.69.100 libx264
    Stream #0:1: Audio: aac (libfdk_aac) ([64][0][0][0] / 0x0040), 44100
Hz, stereo, s16, 128 kb/s
    Metadata:
      encoder         : Lavc55.69.100 libfdk_aac
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (pcm_s16le (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
frame=   40 fps=0.0 q=0.0 size=       0kB time=00:00:01.57 bitrate=
0.2kbits/s     frame=   63 fps= 61 q=28.0 size=     248kB time=00:00:02.50
bitrate= 808.7kbits/s     frame=   87 fps= 56 q=28.0 size=     506kB
time=00:00:03.45 bitrate=1197.2kbits/s


                  frame=  113 fps= 55 q=28.0 size=     787kB
time=00:00:04.50 bitrate=1432.0kbits/s

                                    ...
frame= 9305 fps= 60 q=25.0 size=   53579kB time=00:06:12.19
bitrate=1179.3kbits/s

                  [mp4 @ 0x7fb10202ba00] Starting second pass: moving the
moov atom to the beginning of the file
frame= 9352 fps= 60 q=-1.0 Lsize=   54000kB time=00:06:14.09
bitrate=1182.5kbits/s
video:47849kB audio:5846kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 0.567262%
[libx264 @ 0x7fb10280ba00] frame I:81    Avg QP:20.80  size: 46192
[libx264 @ 0x7fb10280ba00] frame P:3864  Avg QP:23.99  size:  9688
[libx264 @ 0x7fb10280ba00] frame B:5407  Avg QP:26.38  size:  1447
[libx264 @ 0x7fb10280ba00] consecutive B-frames:  6.1% 40.6% 29.2% 24.1%
[libx264 @ 0x7fb10280ba00] mb I  I16..4: 25.3%  0.0% 74.7%
[libx264 @ 0x7fb10280ba00] mb P  I16..4:  2.8%  0.0%  4.3%  P16..4: 35.9%
15.8%  9.7%  0.0%  0.0%    skip:31.6%
[libx264 @ 0x7fb10280ba00] mb B  I16..4:  1.0%  0.0%  0.3%  B16..8: 13.3%
 3.6%  0.3%  direct: 5.5%  skip:76.0%  L0:29.8% L1:54.8% BI:15.4%
[libx264 @ 0x7fb10280ba00] coded y,uvDC,uvAC intra: 54.3% 67.2% 33.4%
inter: 12.9% 14.8% 1.2%
[libx264 @ 0x7fb10280ba00] i16 v,h,dc,p: 40% 23% 14% 23%
[libx264 @ 0x7fb10280ba00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 18% 17%  6%
 7%  9%  6%  7%  5%
[libx264 @ 0x7fb10280ba00] i8c dc,h,v,p: 51% 20% 21%  8%
[libx264 @ 0x7fb10280ba00] Weighted P-Frames: Y:5.3% UV:2.1%
[libx264 @ 0x7fb10280ba00] ref P L0: 73.9% 26.1%
[libx264 @ 0x7fb10280ba00] ref B L0: 82.1% 17.9%
[libx264 @ 0x7fb10280ba00] ref B L1: 95.7%  4.3%
[libx264 @ 0x7fb10280ba00] kb/s:1047.83



On 15 August 2014 02:22, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> Steven Marcus <steven.marcus <at> gmail.com> writes:
>
> > But no overlay is visible for mxf/prores sources.
> >
> > -vf movie=overlay.png, scale='trunc(oh*a/2)*2:min(in_h,720)'
> > [o]; [in] scale='trunc(oh*a/2)*2:min(in_h,720)' [v];
> > [v][o] overlay [out]
>
> Complete, uncut console output missing.
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list