title: Video timecode using RTMP / AVCONV (ffmpeg) / NGINX
body: <p>to insert a time code in a video I use </p>
  
  <pre><code>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
  </code></pre>
  
  <p>when reading the video </p>
  
  <pre><code>ffplay out.mp4
  </code></pre>
  
  <p>everything is ok but when using a pipe to feed the rtmp server and then reading the stream with ffplay the time code won't display. Is it due to the flv conversion ?</p>
  
  <p>for example streaming from a raspberry pi camera</p>
  
  <pre><code>/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
  </code></pre>
  
  <p>doesn't output the timecode.</p>