Today I played around with a Axis camera.
I wanted to stream different resolutions and qualities without editing the settings in the administration panel. I found the following solution:
You can add these params to the ‘streamname’:
videocodec=h264
resolution=640x480
compression=50
fps=15
videokeyframeinterval=30
videobitrate=1024
videomaxbitrate=1024
videobitratepriority=framerate (or quality)
Example:
_ns.play('rtsp://cam-ip:port/axis-media/media.amp?videocodec=h264&resolution=640x480&videobitrate=1024&videomaxbitrate=1024&videobitratepriority=quality');
Another hint:
In the Application.xml I set the StreamType to ‘rtp-live-lowlatency’ which gives me better results than ‘rtp-live’