我正在尝试向从 YouTube 获取的 FLV 文件添加叠加层。输入文件为 4.4MB,可通过 QuickTime 播放,因此似乎没有任何问题。
ffmpeg -i input.flv -vf drawtext="fontfile='arial.ttf':text='hello':fontsize=9" output.flv
Run Code Online (Sandbox Code Playgroud)
几秒钟后,我收到了以下输出:
ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers
built on May 15 2013 13:13:12 with Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-libfreetype --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid
libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / …
Run Code Online (Sandbox Code Playgroud)