这里是ffmpeg给图片上加文字说明。root135@root135:~/Pictures/Wallpapers$ ffmpeg -i wolfgang-hasselmann-WrVvYxq11Yk-unsplash.jpg -vf "drawtext=fontcolor=white:line_spacing=5:fontfile=/usr/share/fonts/msyh.ttf:text='Can change system':fontsize=h/8:x=(w-text_w)/3:y=(h-text_h*3)" -f image2 wolfgang-hasselmann-WrVvYxq11Yk-unsplash-0.jpg
root135@root135:~/Pictures/Wallpapers$ ls -lth
total 232K
-rw-r--r-- 1 root135 root135 144K Jul 31 09:13 wolfgang-hasselmann-WrVvYxq11Yk-unsplash-0.jpg
lrwxrwxrwx 1 root135 root135 40 Mar 31 2022 abc-123.jpg -> /usr/share/wallpapers/deepin/abc-123.jpg
lrwxrwxrwx 1 root135 root135 40 Mar 31 2022 abc-124.jpg -> /usr/share/wallpapers/deepin/abc-124.jpg
root135@root135:~/Pictures/Wallpapers$ sudo cp wolfgang-hasselmann-WrVvYxq11Yk-unsplash-0.jpg /usr/share/wallpapers/deepin/wolfgang-0.jpg
[sudo] password for root135:
Verification successful
root135@root135:~/Pictures/Wallpapers$ rm -rfv wolfgang-hasselmann-WrVvYxq11Yk-unsplash-0.jpg
removed 'wolfgang-hasselmann-WrVvYxq11Yk-unsplash-0.jpg'
这个地方没用到别的技巧,只用到了一个'ln -s'表示软链接。root135@root135:~/Pictures/Wallpapers$ ln -s /usr/share/wallpapers/deepin/wolfgang-0.jpg ./walfgang-0.jpg
root135@root135:~/Pictures/Wallpapers$ ls -lth
total 88K
lrwxrwxrwx 1 root135 root135 43 Jul 31 09:25 walfgang-0.jpg -> /usr/share/wallpapers/deepin/wolfgang-0.jpg
lrwxrwxrwx 1 root135 root135 40 Mar 31 2022 abc-123.jpg -> /usr/share/wallpapers/deepin/abc-123.jpg
lrwxrwxrwx 1 root135 root135 40 Mar 31 2022 abc-124.jpg -> /usr/share/wallpapers/deepin/abc-124.jpg