Video configuration ONVIF 5 min read

Media profiles for
ONVIF cameras

A media profile defines how your ONVIF camera processes and streams video: resolution, encoding format, bit rate mode, frame rate, and bandwidth budget. Getting this right for your specific scenario is the difference between clear usable footage and a bloated, laggy stream.


What a media profile controls

Every ONVIF camera exposes one or more media profiles in its configuration interface. Each profile is a named bundle of five settings that together determine the quality, smoothness, and bandwidth cost of the video stream. Banalytics reads these profiles at connection time, so choosing the right one helps performance immediately.

Video encoding: five codecs

The encoding format determines how raw video frames are compressed for transmission. More efficient codecs produce smaller files and lower bandwidth usage at equivalent quality, but require more processing power to encode and decode.

H.265
Most efficient. Best quality/size ratio. Requires modern decoder.
H.264H
High profile. Good quality. Widely compatible.
H.264M
Main profile. Balanced. Broad device support.
H.264B
Baseline profile. Lower CPU. Constrained networks.
MotionJPEG
Frame-by-frame JPEGs. High bandwidth. Legacy / PTZ use.
Efficiency ladder: H.265 > H.264H > H.264M > H.264B > MotionJPEG. Use H.265 when your hardware and VMS support it. Fall back to H.264H or H.264M for broad compatibility.

Encoding mode: CBR vs VBR

The encoding mode controls how the camera allocates its bit budget. CBR locks to a fixed rate regardless of scene complexity; VBR adapts by using more bits for complex scenes and fewer for static ones.

ModeQuality levelBest use
CBR
Fixed
Consistent streams, remote monitoring, predictable bandwidth
VBRBest
Highest
Recording where quality is paramount
VBRBetter
High
PTZ cameras, motion-heavy scenes, good networks
VBRGood
Good
Low-light and general surveillance
VBRNormal
Normal
Motion detection, background monitoring
VBRPoor
Minimum
Severely bandwidth-constrained feeds

Resolution, frame rate & bit rate

These three parameters work together. Raising any one increases bandwidth consumption, so set them as a group based on your network budget and use case requirements.

Resolution
1920x1080
1280x720
640x480
Frame rate
25 FPS
20 FPS
15 FPS
10 FPS
Bit rate
4096 kbps
2048 kbps
1024 kbps
512 kbps
Trade-off rule: Total bandwidth roughly follows resolution x frame rate x per-frame cost. Use frame rate reduction first when possible, because it often has less visual impact than lowering resolution.

Media profile reference

Six pre-defined profiles cover the most common ONVIF surveillance scenarios. Each includes the five parameters, trade-off indicators, and when to use it.

01
MD
Motion detection
Event-based capture, battery-friendly, bandwidth-efficient triggers
Resolution1280x720
EncodingH.264B
ModeVBRNormal
Frame rate10 FPS
Bit rate1024 kbps
02
RM
Real-time remote monitoring
Live viewing over the internet, browser dashboards, Banalytics remote access
Resolution1920x1080
EncodingH.264H
ModeCBR
Frame rate15-20 FPS
Bit rate2048 kbps
03
HQ
High-quality recording
Evidence-grade footage, detailed scene review, compliance archiving
Resolution1920x1080
EncodingH.265
ModeVBRBest
Frame rate25 FPS
Bit rate4096 kbps
04
LB
Low-bandwidth environments
Remote sites, cellular connections, minimal infrastructure
Resolution640x480
EncodingMotionJPEG
ModeVBRPoor
Frame rate5 FPS
Bit rate512 kbps
05
NT
Nighttime & low-light surveillance
After-hours monitoring, IR-assisted cameras, low-noise capture
Resolution1280x720
EncodingH.264M
ModeVBRGood
Frame rate10 FPS
Bit rate1024 kbps
06
PTZ
PTZ control
Moving cameras, remote pan/tilt operations, dynamic scenes
Resolution1280x720
EncodingMotionJPEG
ModeVBRBetter
Frame rate20 FPS
Bit rate2048 kbps

Profile summary at a glance

ScenarioResolutionCodecFPSBit rate
Motion detectionHD 720pH.264B - VBRNormal101024 kbps
Real-time remote monitoringFHD 1080pH.264H - CBR15-202048 kbps
High-quality recordingFHD 1080pH.265 - VBRBest254096 kbps
Low-bandwidthSD 480pMJPEG - VBRPoor5512 kbps
Nighttime / low-lightHD 720pH.264M - VBRGood101024 kbps
PTZ controlHD 720pMJPEG - VBRBetter202048 kbps
Starting point: Profile 02 is the recommended default for most Banalytics remote monitoring deployments. It balances image quality, stream stability, and network predictability.

Configuring ONVIF media profiles in Banalytics?

Media profiles are selected per camera in the Banalytics camera setup interface. See the audio profiles article for the companion audio configuration guide.