[FFmpeg-user] Issue with watermarking a video -> result is garbled (pink and green lines)
David
david.ariens at gmail.com
Sun Apr 17 07:59:40 CEST 2011
Hi,
I have an issue with watermarking a video using ffmpeg and libavfilter.
This is my testvideo: www.coachteam.com/testvideo/paul.mov
This is the watermark: www.coachteam.com/testvideo/coachteamlogo.png
And this is the result: www.coachteam.com/testvideo/paul.mp4
As you can see the logo is wrongly added (pink, just parts are visible). The
command I use is this one:
"c:\ffmpeg\bin\ffmpeg.exe" -i %1 -pass 1 -passlogfile log_file -b 500k -vcodec
libx264 -vpre slow -vpre baseline -g 30 -y -vf "movie=coachteamlogo.png [logo];
[in][logo] overlay=10:main_h-overlay_h-10 [out]" "%~d1%~p1%~n1.mp4"
The complete output of ffmpeg (including release) is pasted at the bottom.
I tried changing formats (other video inputs, other images,...). I tried just
adding the watermark without further compression of the video.
But all without success...
Could anyone give me a hint what I am doing wrong?
Thanks!
David
C:\Users\David\Desktop\New folder>"c:\ffmpeg\bin\ffmpeg.exe" -i "C:\Users\David\
Desktop\New folder\paul.mov" -pass 1 -passlogfile log_file -b 500k -vcodec libx2
64 -vpre slow -vpre baseline -g 30 -y -vf "movie=coachteamlogo.png [logo]; [in][
logo] overlay=10:main_h-overlay_h-10 [out]" "C:\Users\David\Desktop\New folder\p
aul.mp4"
FFmpeg version git-N-28948-g9d4cb45, Copyright (c) 2000-2011 the FFmpeg develope
rs
built on Apr 8 2011 16:57:22 with gcc 4.5.2
configuration: --enable-gpl --enable-version3 --enable-runtime-cpudetect --ena
ble-memalign-hack --arch=i686 --target-os=mingw32 --cross-prefix=i686-w64-mingw3
2- --enable-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb -
-enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3la
me --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libsp
eex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --ena
ble-libxavs --enable-libxvid --enable-zlib --extra-cflags=-I/home/kyle/software/
ffmpeg/external-libs/32-bit/include --extra-ldflags=-L/home/kyle/software/ffmpeg
/external-libs/32-bit/lib --pkg-config=pkg-config
libavutil 50. 40. 1 / 50. 40. 1
libavcodec 52.117. 0 / 52.117. 0
libavformat 52.106. 0 / 52.106. 0
libavdevice 52. 4. 0 / 52. 4. 0
libavfilter 1. 77. 1 / 1. 77. 1
libswscale 0. 13. 0 / 0. 13. 0
Seems stream 1 codec frame rate differs from container frame rate: 1200.00 (1200
/1) -> 30.00 (30/1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\David\Desktop\New folder\paul.
mov':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2011-04-09 16:14:17
encoder : 4.3.1
encoder-dut : 4.3.1
date : 2011-04-09T18:13:43+0200
date-dut : 2011-04-09T18:13:43+0200
Duration: 00:00:11.63, start: 0.000000, bitrate: 755 kb/s
Stream #0.0(und): Audio: aac, 44100 Hz, mono, s16, 63 kb/s
Metadata:
creation_time : 2011-04-09 16:14:17
Stream #0.1(und): Video: h264 (Main), yuv420p, 480x272, 688 kb/s, 30 fps, 30
tbr, 600 tbn, 1200 tbc
Metadata:
creation_time : 2011-04-09 16:14:17
[buffer @ 0199FD70] w:480 h:272 pixfmt:yuv420p
[movie @ 01966FD0] seek_point:0 format_name:(null) file_name:coachteamlogo.png s
tream_index:0
[overlay @ 01967050] auto-inserting filter 'auto-inserted scaler 0' between the
filter 'Parsed filter 0 movie' and the filter 'Parsed filter 1 overlay'
[scale @ 01967010] w:100 h:60 fmt:bgra -> w:100 h:60 fmt:yuva420p flags:0x4
[overlay @ 01967050] main w:480 h:272 fmt:yuv420p overlay x:10 y:202 w:100 h:60
fmt:yuva420p
[overlay @ 01967050] main_tb:1/1000000 overlay_tb:1/25 -> tb:1/1000000 exact:1
[libx264 @ 01997520] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE
4.1 Cache64
[libx264 @ 01997520] profile Constrained Baseline, level 2.1
[libx264 @ 01997520] 264 - core 114 r1924 08d04a4 - H.264/MPEG-4 AVC codec - Cop
yleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=0 ref=5 deb
lock=1:0:0 analyse=0x1:0x111 me=umh subme=8 psy=1 psy_rd=1.00:0.00 mixed_ref=1 m
e_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chro
ma_qp_offset=-2 threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 constrai
ned_intra=0 bframes=0 weightp=0 keyint=30 keyint_min=16 scenecut=40 intra_refres
h=0 rc_lookahead=30 rc=abr mbtree=1 bitrate=500 ratetol=1.0 qcomp=0.60 qpmin=0 q
pmax=69 qpstep=4 ip_ratio=1.41 aq=1:1.00
Output #0, mp4, to 'C:\Users\David\Desktop\New folder\paul.mp4':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2011-04-09 16:14:17
date-dut : 2011-04-09T18:13:43+0200
encoder-dut : 4.3.1
date : 2011-04-09T18:13:43+0200
encoder : Lavf52.106.0
Stream #0.0(und): Video: libx264, yuv420p, 480x272, q=0-69, pass 1, 500 kb/s
, 30 tbn, 30 tbc
Metadata:
creation_time : 2011-04-09 16:14:17
Stream #0.1(und): Audio: aac, 44100 Hz, mono, s16, 64 kb/s
Metadata:
creation_time : 2011-04-09 16:14:17
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
Press [q] to stop encoding
frame= 349 fps= 25 q=-1.0 Lsize= 820kB time=11.57 bitrate= 580.8kbits/s
video:724kB audio:88kB global headers:0kB muxing overhead 0.976190%
frame I:12 Avg QP:21.75 size: 10397
[libx264 @ 01997520] frame P:337 Avg QP:24.11 size: 1827
[libx264 @ 01997520] mb I I16..4: 29.3% 0.0% 70.7%
[libx264 @ 01997520] mb P I16..4: 3.7% 0.0% 1.4% P16..4: 55.9% 11.9% 3.4%
0.0% 0.0% skip:23.7%
[libx264 @ 01997520] final ratefactor: 22.49
[libx264 @ 01997520] coded y,uvDC,uvAC intra: 45.7% 81.2% 23.4% inter: 11.6% 38.
5% 0.8%
[libx264 @ 01997520] i16 v,h,dc,p: 26% 22% 14% 38%
[libx264 @ 01997520] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 19% 14% 9% 11% 10% 11%
7% 6%
[libx264 @ 01997520] i8c dc,h,v,p: 47% 24% 18% 11%
[libx264 @ 01997520] ref P L0: 91.3% 5.4% 2.0% 0.7% 0.6%
[libx264 @ 01997520] kb/s:509.22
More information about the ffmpeg-user
mailing list