4
ffmpeg –i test.mkv -vf "movie=watermark.png [watermark]; [in][watermark] overlay=10:10 [out]" outputvideo.mkv
I'm trying to simply add a watermark to a video to start testing with ffmpeg. But it simply does not work although I can't see any error.
I also tried
ffmpeg -i test.mkv -i watermark.png -filter_complex 'overlay=10:main_h-overlay_h-10' output.mkv
But no success there either.
Output:
ffmpeg version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers
built on Jan 20 2013 23:05:28 with gcc 4.7.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 52. 13.100 / 52. 13.100
libavcodec 54. 86.100 / 54. 86.100
libavformat 54. 59.106 / 54. 59.106
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 32.100 / 3. 32.100
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Input #0, matroska,webm, from 'test.mkv':
Metadata:
creation_time : 2012-11-01 02:35:10
Duration: 00:00:59.74, start: 0.000000, bitrate: 5821 kb/s
Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
Stream #0:1: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
Input #1, image2, from 'watermark.png':
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #1:0: Video: png, rgba, 1600x200, 25 tbr, 25 tbn, 25 tbc
[Parsed_overlay_0 @ 00328000] Overlay area (10,510)<->(1610,710) not within the main area (0,0)<->(1280,720) or zero-sized
[auto-inserted scaler 0 @ 03da0f60] Failed to configure input pad on Parsed_overlay_0
2Please include the complete ffmpeg console output(s). Otherwise we can only guess. Your second command is the recommended version (
-vf
is for simple filtergraphs: one input and one output). – llogan – 2013-06-10T20:05:25.640I tried echo and > output.txt for my output but it didn't work.
So I took a small screenshot from my output. – Milanezi – 2013-06-11T06:55:31.763
Maybe Windows doesn't like the single quotes. Try removing the single quotes or replacing them with double quotes:
"
. – llogan – 2013-06-11T07:02:49.723You need to redirect output with 2> output.txt – slhck – 2013-06-11T07:25:14.523
The 2> output.txt did the trick, thanks!
@LordNeckbeard I think you are right. I get a new error now but I think that's because my dimensions of my watermark are bigger than my videos dimensions:
I think the command -s in ffmpeg can fix the dimension problem when i put it after the logo input. – Milanezi – 2013-06-11T07:41:58.290
To quote the output please use
Ctrl-K
or the{}
code button, not the blockquote format. This way it'll be rendered as preformatted text. Thanks! – slhck – 2013-06-11T08:46:45.917