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

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -