Guest User

Untitled

a guest
Sep 5th, 2015
70
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. text="Title 1 2 3"
  3. filter="-vf drawtext=fontfile=/tmp/freefont1.ttf:text=$text"
  4. ffmpeg -xerror -f lavfi -i testsrc -t 10 "$filter" out.mp4
  5. exit $?
  6.  
  7. ====================
  8. ffmpeg -f lavfi -i testsrc -t 10 '-vf drawtext=fontfile=/tmp/freefont1.ttf:text=Title 1 2 3' out.mp4
  9. ffmpeg version 2.7.2 Copyright (c) 2000-2015 the FFmpeg developers
  10. built with gcc 4.8.3 (GCC) 20140911 (Red Hat 4.8.3-9)
  11. configuration: --prefix=/tools --extra-cflags=-I/tools/include --extra-ldflags=-L/tools/lib --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libvpx --enable-libx264 --enable-libx265
  12. libavutil 54. 27.100 / 54. 27.100
  13. libavcodec 56. 41.100 / 56. 41.100
  14. libavformat 56. 36.100 / 56. 36.100
  15. libavdevice 56. 4.100 / 56. 4.100
  16. libavfilter 5. 16.101 / 5. 16.101
  17. libswscale 3. 1.101 / 3. 1.101
  18. libswresample 1. 2.100 / 1. 2.100
  19. libpostproc 53. 3.100 / 53. 3.100
  20. Unrecognized option 'vf drawtext=fontfile=/tmp/freefont1.ttf:text=Title 1 2 3'.
  21. Error splitting the argument list: Option not found
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×