Do you know what modules were compiled in the Kaltura version of NGiNX? I want to know if the same modules found in this users configuration are enable on the Kaltura CE version. He seems to have gotten RTSP streams to encode through NGiNX and stream back out as RTMP through NGINX.
Either, I am not able to create the proper syntax to make the stream work or the configuration for Kaltura's version of NGiNX is properly configured to allow ingestion or reply of RTSP streams. Here is the detectives I have tried on my system.
# RTMP configuration
rtmp {
server {
listen 1945; # Listen on standard RTMP port
listen 5554;
notify_method get;
record off;
chunk_size 4000;
# This application is to accept incoming stream
application kLive {
live on; # Allows live input from above
exec_options on;
# Static pull is started at nginx start
exec_pull ffmpeg -rtsp_transport tcp —i rtsp://usr_name:pswd@LIVE_CAMIP:IP_CAM_PORT/axis-media/media.amp?camera=1 -vcodec libx264 -vprofile baseline -g 10 -acodec libfaac -ar 44100 -ac 1 -f flv rtmp://NGiNX_HOST:PORT/$name name=camone;
exec_push ffmpeg -rtsp_transport tcp —i rtsp://usr_name:pswd@LIVE_CAMIP:IP_CAM_PORT/axis-media/media.amp?camera=2 -vcodec libx264 -vprofile baseline -g 10 -acodec libfaac -ar 44100 -ac 1 -f flv rtmp://NGiNX_HOST:PORT/$name name=camtwo;
dash on;
dash_path /var/tmp/dashme;
hls on; # Enable HTTP Live Streaming
hls_cleanup on;
hls_sync 100ms;
hls_fragment 2s;
hls_path /var/tmp/hlsme/;
}
}
Neither, of the directives work for this instance of NGINX configured and complied by Kaltura. As you can see this specific instance would have to ingest a live RTSP stream and then encode it in a format that can be process by Kaltura CE to distribute to end uses. The source does not have enough bandwidth to server multiple connections.
If you have any suggestions or a solution you can integrate in the next or future version of Kaltura CE please advise.