[FFmpeg-user] ffmpeg filters

David Previs david.previs at twensoft.com
Fri Nov 15 17:53:06 EET 2019


 -y -i "c:\ffmpeg\Black.mp4" -i "C:\pw\temp\watermark99.png" -filter_complex
 "overlay=x=(main_w-overlay_w)/2:y=(main_h-overlay_h)/2",
 drawtext="fontsize=24:fontcolor=ffff00 at 0.5:fontfile=/Windows/Fonts/Arial.ttf
 :text='Huntley Film
 Archives':x=(w-text_w)/2:y=(h-text_h)-2","drawtext=fontfile='C\:\\WINDOWS\\F
 onts\\Arial.ttf'\:fontcolor=White\:fontsize=12\:timecode
 ='00\:00\:00\:00'\:r=25\:x=(w-text_w)/2\:y=(h-text_h)-2" -ac 2 -s 640x480
 -preset veryfast "c:\ffmpeg\Output.mp4"

The console output is

ffmpeg version N-93815-g181031906e Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8.3.1 (GCC) 20190414
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
  libavutil      56. 26.101 / 56. 26.101
  libavcodec     58. 52.101 / 58. 52.101
  libavformat    58. 27.103 / 58. 27.103
  libavdevice    58.  7.100 / 58.  7.100
  libavfilter     7. 50.100 /  7. 50.100
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'c:\ffmpeg\Black.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    creation_time   : 2019-10-23T15:56:50.000000Z
  Duration: 00:01:00.07, start: 0.000000, bitrate: 367 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 45 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2019-10-23T15:56:50.000000Z
      handler_name    : ?Mainconcept Video Media Handler
      encoder         : AVC Coding
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default)
    Metadata:
      creation_time   : 2019-10-23T15:56:50.000000Z
      handler_name    : #Mainconcept MP4 Sound Media Handler
Input #1, png_pipe, from 'C:\pw\temp\watermark99.png':
  Duration: N/A, bitrate: N/A
    Stream #1:0: Video: png, ya8(pc), 80x80 [SAR 2835:2835 DAR 1:1], 25 tbr, 25 tbn, 25 tbc
[AVFilterGraph @ 00000269be3ad680] No such filter: ''
Error initializing complex filters.
Invalid argument

-----Original Message-----
From: ffmpeg-user [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Michael Koch
Sent: Friday, November 15, 2019 10:45 AM
To: ffmpeg-user at ffmpeg.org
Subject: Re: [FFmpeg-user] ffmpeg filters

Am 15.11.2019 um 16:35 schrieb David Previs:
> Hello
>
>   
>
> I have the following Filters:
>
>   
>
> Watermark:
>
> "overlay=x=(main_w-overlay_w)/2:y=(main_h-overlay_h)/2"
>
>   
>
> Text Overlay:
>
> drawtext="fontsize=24:fontcolor=ffff00 at 0.5:fontfile=/Windows/Fonts/Arial.ttf
> :text='Test Overlay':x=(w-text_w)/2:y=(h-text_h)-2"
>
>   
>
> Time Stamp:
>
> ,"drawtext=fontfile='C\:\\WINDOWS\\Fonts\\Arial.ttf'\:fontcolor=White\:fonts
> ize=12\:timecode ='00\:00\:00\:00'\:r=25\:x=(w-text_w)/2\:y=(h-text_h)-2"
>
>   
>
>   
>
> The command line I send to ffmpeg is:
>
> -y -i "c:\ffmpeg\Black.mp4" -i "C:\pw\temp\watermark99.png" -filter_complex
> "overlay=x=(main_w-overlay_w)/2:y=(main_h-overlay_h)/2",
> drawtext="fontsize=24:fontcolor=ffff00 at 0.5:fontfile=/Windows/Fonts/Arial.ttf
> :text='Huntley Film
> Archives':x=(w-text_w)/2:y=(h-text_h)-2","drawtext=fontfile='C\:\\WINDOWS\\F
> onts\\Arial.ttf'\:fontcolor=White\:fontsize=12\:timecode
> ='00\:00\:00\:00'\:r=25\:x=(w-text_w)/2\:y=(h-text_h)-2" -ac 2 -s 640x480
> -preset veryfast "c:\ffmpeg\Output.mp4"
>
>   

please copy and paste the full console output.

Michael


_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".



More information about the ffmpeg-user mailing list