Advertisement
Guest User

Untitled

a guest
Sep 5th, 2015
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement