UDP Multicast is often used as a source signal in the service provider's environment. Noisypeak encoders support comprehensive set of parameters for handlig SPTS/MPTS streams as well as input channel reservation for better reliability in operator-grade systems.
Setup of broadcast from UDP multicast input to UDP output.
1. Create a video template for UDP output
Open the WEB UI of the encoder http://IP_address and login (the defaults login/pass are admin/2bechanged). In the main menu go to the “Templates” tab and click “Add New Template”. You will see “Add New Template” page (Pic. 1)
Enter the template name you prefer and select the “Codec” for the output stream. Then you need to setup “Resolution” and “Bitrate” for your first stream. It is recommended to set the lowest “Resolution” and “Bitrate” first. Enter “FPS” for the stream (usually 25).
Optimization can take one of three values: best speed, balanced, best quality. In most cases it is enough to setup “best speed”. If you set“best quality”, then the performance decreases and you will be able to setup less number of channels.
Set other codec parameters. If you don’t know what some parameters means, just set the following values in the output form for UDP output:
Codec profile – main
Codec level – 3
Rate control – CBR
Slice count – 0
GOP length – 25 or 50 (it must be equalFPS or FPSx2)
B-frames count – 2
IDR interval – 0
Reference frames number – 1
NAL HRD Conformance – Enabled
HRD Buffer Length =~ bitrate/10 (for example if you bitrate here is 4500, then you set 450)
HRD Initial Delay - it is equal HRD Buffer Length (bitrate/10)
Look Ahead – Disabled
Look Ahead Depth – 0
Aspect Ratio – static pixel aspect ratio from first source IDR
Deinterlace – Disabled(In most cases deinterlace operation perform by Set-Top Box or TV, you can enable it for other cases, enabling deinterlace function increases load of system and decreases performance)
Hardware acceleration – Enabled
You can create more streams if you want to have several bitrates per input channel in the output. When you have ready Stream 1 you can click “Add stream” (Pic.2). We recommend create each new stream with higher “Resolution” and “Bitrate” (other values can be the same).
2. Create an audio template
Go to the “Audio templates” tab on a WEB UI and click “Add template”. We recommend the following parameters for the most cases (Pic.3):
Codec – AACPlus
SampleRate – 48000 (or 44100)
Bitrate – 64
3. Set the default multicast interface
Go to the “Setting” tab on the WEB UI and click “edit” (pencil icon) on the interface which you want to make multicast input interface (Pic. 4)
Click “Save and reboot”. The device will not reboot if you did not change any other IP parameters.
4. Setup a channel
On the “Channels” tab click “Add New Channel”. Enter the channel name. For UDP multicast input please select from “Source protocol” drop down list “UDP TS stream”. Enter the values of “Source address” and “Source port” for the input multicast group. If your multicast group is not on the “default multicast interface” you should set the IP address of ingress interface of the device in front of the multicast group address, separated by a colon (for example 192.168.1.100:188.8.131.52). As soon as you have set the source address and the port, you can click "here" link above the drop-box to collect the information on all the services and tracks available. Wait a few seconds and if there are no error messages, you should see “Analyze completed” service message. Now you can click “Service” drop down to see the list (Pic.5)
Active services should have the status “on the air”. In case of MPTS multicast input stream you have to select the service you need. If you have only one service in the multicast group you can select “auto”. If you have several audio tracks at the input, select the one or several you need, otherwise leave "auto" as well.
Set “Data track” to disabled if the input stream has no any subtitles or teletext.
You can setup a backup source for the channel if you have one available. You should setup it on the same way as the main input stream.
“Audio Gain” allows you to adjust the gain level if required.
“Video Cropping” allows you to crop the picture. You can type four numbers via the space (left right top bottom) in pixels to crop the picture from four sides. The first value (left) can’t be zero.
“Overlay” allows you to mix the output from the other channel in order to make a PIP effect.
Click “Save”. Your channel setup is completed.
5. Setup an Output stream
Go to the “Output streams” tab and click “Add New Output Stream”. Enter the description if you wish. Then fill-in the following information:
Start mode – auto (if you want to start the output with the channel start)
Channel – select your channel from the drop down list
Template – choose the template you have created earlier for UDP output
Audio template – select the audio template
Encryption key provider, Key providerURL, Key request interval (minutes), DRM content ID – these parameters are optional, they are used for content encryption (see the manual)
Segment length – 8 (recommended value)
Type – CBR
Interface – choose the output multicast interface
Next you will see so many strings of parameters (Multicast group – Port – Output bitrate) how much bitrates are in the selected template.
For each bitrate in the template you should specify Multicast address, Port and Output bitrate (Pic. 6). Each bitrate should has unique pair address:port. Usually the address leave the same for all output bitrates for a channel but the port numbers set to different values.
Each Output bitrate you should set as corresponding stream bitrate in a template +~ 20%.
6. Starting the channel and checking the output
On the “Channels” page click the start icon. After a few seconds if all settings are correct the state of channel should be “started”
Now you can check the output with some STB or VLC. The URL for playback with VLC will be looks like this:
If you change any setting in templates, output streams, channels setup, you need to restart this channel after that.