Pipe:0 - it is for stdin(standard input). | - To connect two command together so that the output of one program becomes the input of the next program Pipe:1 - it is for stdout (standard output) here what we are doing is for each frame we are calculating x axis Overlay_w is the second (logo) input width. N is number of input frames starting from 0. Overlay= x=(mod(3*n\,main_w overlay_w)-overlay_w) :10- means we want to scrolling position of logo to the left and 10px down, originating from the top left corner. is our overlay input, here /home/oodles/Desktop/logo.png. filter_complex - to recognize filtergraph You can also use -r instead of -framerate framerate - Set the framerate, here 25 fps. Rtsp://admin: :554/h264/ch1/main/av_stream - input live camera ip i - specifies the input file stored in local disk or live audio/video source. rtsp_transport - Set RTSP transport protocols, here tcp thread_queue_size - Allow to set the thread message queue size, here 32 Ffmpeg -thread_queue_size 32 -rtsp_transport tcp -i rtsp://admin: :554/h264/ch1/main/av_stream -framerate 25 -i /home/oodles/Desktop/logo.png -filter_complex "overlay=x=(mod(3*n\,main_w overlay_w)-overlay_w):10" -f flv pipe:1 | ffmpeg -i pipe:0 -vf "drawtext=text=oodlestechnologies :fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf: y=((h)/2):x=(mod(5*n\,w tw)-tw): fontcolor=red: fontsize=40: shadowx=-5: shadowy=-15" -vcodec libx264 -acodec aac -f flv -muxdelay 0.1 rtmp://oodles: :1935/live-demo/mstream
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |