FFmpeg文字未显示在我的流式视频中

时间:2017-02-18 21:06:56

标签: video ffmpeg arm orange-pi

在orangepi PC(armbian os)上安装了Ffmpeg。我在之前的一篇文章中关注了如何将文本添加到流中的示例,但我的视频中没有任何文本..

ffserver.conf

HTTPPort 8090
HTTPBindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 10000
CustomLog -

<Feed monitoring1.ffm>
File /tmp/monitoring1.ffm
FileMaxSize 50M
ACL allow 127.0.0.1
ACL allow 192.168.0.0 192.168.255.255
</Feed>

<Stream monitoring1.mjpg>
Feed monitoring1.ffm
Format mpjpeg
VideoCodec mjpeg
VideoFrameRate 22
VideoBufferSize 80
VideoSize 720x264
NoAudio
</Stream>


# Redirect index.html to the appropriate site

<Redirect index.html>
URL http://www.ffmpeg.org/
</Redirect>

我开始了一个ffmpeg:

#!/bin/bash
# My first script
ffmpeg -i rtsp://mpv.cdn3.bigCDN.com:554/bigCDN/definst/mp4:bigbuckbunnyiphone_400.mp4 -vf drawtext="fontfile=/home/projekt/StreamTest/DejaVuSans.ttf: \
text='Stack Overflow': fontcolor=white: fontsize=36: box=1: boxcolor=black@0.5: \
boxborderw=5: x=(w-text_w)/2: y=(h-text_h)/2" -codec:a copy http://localhost:8090/monitoring1.ffm

enter image description here

这是结果,但缺少文字

enter image description here

谢谢

0 个答案:

没有答案