Sometimes you need to change aspect ratio when converting a videofile. For example, you have a widescreen (16:9 aspect ratio) video that you want to watch on your iPhone (which has a 4:3 aspect ratio screen). If you try to upload the video to your device without resizing, it will either not play at all on your device or it will be displayed incorrectly (probably with elongated images). You can fix the problem using Aviberry.
Step 1. Sign in to your Aviberry account.
Step 2. Set file source and file target.
Step 3. Choose the right preset.
Step 4. Click Advanced and check preset settings. Here you can check width and height, and select the resize method. There are three of them: strech, letter box, and crop.
Stretch – the original video frame is stretched (or condensed) to the specified frame size (width and height).
Letter Box – the original video frame is placed within the output frame. The aspect ratio stays the same, and the free space between the input and the output frames appears as black bars.
Crop – the original video frame is placed within the output frame. The aspect ratio stays the same, and the parts of the input frame that go beyond the output frame size are cut off.
With regard to resize quality, two options are available: Normal (Fast) and Best (Slow).
The other way to resize your video is to use Aviberry API:
{
"version":"1.1",
"method":"startConversion",
"id":1,
"params":
{
"source_url":"ftp:\/\/user:password@host\/path_to_file\/source_video.avi",
"target_url":"mailto:user@mail.ru",
"preset":
{
"format_id":"16505",
"preset_id":"920",
"preset_data":
"{
\"Width\":\"320\",
\"Height\":\"240\",
\"ResizeMethod\":\"1\",
\"ResizeQuality\":\"1\",
}"
}
}
}