Video timecode using RTMP / AVCONV (ffmpeg) / NGINX -
to insert time code in video use
avconv -y -i in.mp4 -vf "drawtext=fontfile=/usr/share/fonts/truetype/droidsans.ttf: fontsize=22: timecode='00\:00\:00\:00': r=25: x=(w-tw)/2: y=h-(2*lh): fontcolor=white: box=1: boxcolor=black@0.5" -an -y out.mp4
when reading video
ffplay out.mp4
everything ok when using pipe feed rtmp server , reading stream ffplay time code won't display. due flv conversion ?
for example streaming raspberry pi camera
/opt/vc/bin/raspivid -n -hf -vf -fl -mm matrix -w 800 -h 600 -fps 25 -g 80 -t 0 -b 6000000 -o - | avconv -re -i - -nostats -c copy -vf "drawtext= ..... -f flv rtmp://myserver/cam/live
doesn't output timecode.
Comments
Post a Comment