How-to publish to Wowza using FFMPEG

A simple way to publish a file or live stream to Wowza is to use FFMPEG. This guide will show you some basic steps in doing so.

Note: Using ffmpeg version 2.3.3 on linux (CentOS).

From a connected webcam:

ffmpeg -f video4linux2 -r 25 -s 640×480 -i /dev/video0 -acodec copy -vcodec libx264 -f flv “rtmp://[wowza-ip]:1935/live/test”

From a IP camera:

ffmpeg -i “rtsp://user:pass@[axiscamera-ip]:554/axis-media/media.amp” -f flv “rtmp://[wowza-ip]:1935/live/test”

Include some transcoding properties for video:

ffmpeg -i “rtsp://user:pass@[axiscamera-ip]:554/axis-media/media.amp” -acodec copy -vcodec libx264 -f flv “rtmp://[wowza-ip]:1935/live/test”

Using sample.mp4:

ffmpeg -i sample.mp4 -f flv “rtmp://[wowza-ip]:1935/live/test”

Comments are closed.