Transcoding Engine
The Transcoding Engine can help you in many ways. Here are a few useful use cases:
Downscaling Videos
It may be the case that the majority of your user base will record/upload videos using Android and the Mobile Native Recording Client. This combo will produce high-resolution videos (iOS compresses recordigns). In this case, most of the videos will have at least a full HD resolution (1920x1080).
These high-resolution videos will have a large size on disk which can cause a variety of issues (slower processing, larger storage being needed, buffering on playback, etc.). Setting the proper transcoding options can help you downscale the videos, making them smaller in size so that you can avoid those issues.
You can easily do this by following the steps:
- Go to the Transcoding section in the Pipe Account Dashboard
- Make sure Enable MP4 output is turned on
- For the resolution choose Scale down if needed to a maximum resolution and input the desired height, 720 for example.
- Save
In this case, any video with a higher height than 720px will be downscaled to 720px. The aspect ratio will be left unchanged unless set otherwise. Videos with a lower resolution won’t be downscaled.
Fitting Videos into a Fixed-size Player
You may need your videos custom-fitted for a certain type of display/player.
This can easily be achieved with a few settings:
- Go to your transcoding section
- Make sure you have Enable MP4 output selected.
- Choose the aspect ratio that fits your use case and select to obtain that aspect ratio either by cropping the video or by adding black bars to it.
- Finally you can select I want every video scaled (up or down) to a fixed resolution and set a custom height to make sure the videos will always have the same resolution.
- Save the settings.
This kind of setup will always produce videos of constant aspect ratio and resolution.