B
B
batalov_artem2017-02-09 21:18:01
fmpeg
batalov_artem, 2017-02-09 21:18:01

Text overlay on ffmpeg stream, why not working?

While doing

ffmpeg -f v4l2 -s 352x288 -i /dev/video0 -filter_complex "drawtext=fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf: textfile=test.txt: y=25: x=25: fontcolor=red" -c:a copy http://localhost:8090/feed.ffm

Gives the following error:
Output #0, ffm, to ' localhost:8090/feed.ffm ':
Metadata:
creation_time : 2017-02-10 01:15:22
encoder : Lavf56.40.101
Stream #0:0: Video: mpeg1video, yuv420p, 352x288, q=2-31, 200 kb/s, 30 fps, 1000k tbn, 30 tbc
Metadata:
encoder : Lavc56.60.100 mpeg1video
Stream #0:1: Video: flv1 (flv), yuv420p, 352x288, q=1-5, 200 kb/s, 30 fps, 1000k tbn, 30 tbc
Metadata:
encoder : Lavc56.60.100 flv
Stream #0:2: Video: flv1 (flv), yuv420p, 352x288, q=1-5, 100 kb/s, 30 fps, 1000k tbn, 30 tbc
Metadata:
encoder : Lavc56.60.100 flv
Stream mapping:
Stream #0:0 (rawvideo) -> drawtext (graph 0)
drawtext (graph 0) -> Stream #0:0 (mpeg1video)
Stream #0:0 -> #0:1 (rawvideo (native) -> flv1 ( flv))
Stream #0:0 -> #0:2 (rawvideo (native) -> flv1 (flv))
Press [q] to stop, [?] for help
av_interleaved_write_frame(): Broken pipe
Last message repeated 2 times
frame = 7 fps=0.0 q=2.0 Lq=3.7 q=3.7 size= 52kB time=00:00:00.16 bitrate=2555.9kbits/s dup=5 drop=0
video:62kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!

What does this mean and how to overlay text on the stream.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question