More Video Editing Options Via API

More Video Editing

Over the past weeks we have explored many video editing possibilities in the Online-Convert.com API. Today, let’s wrap it up with a little collection of “everything else” video editing tools we have.

In order to use the API for your video editing needs, you do not need to be a developer. All you need is an API key for our API (you get that one after registering for free) and the Postman program or Chrome application. Check out how to use Postman to test our API and then lets go right to more video editing options!

 

Edit Your Video With Our API

So far, we have looked at how to edit videos with the API when it comes to the following things:

Now, lets have a look at a colorful selection of more video editing options.

 

All these operations are done using the options-part of your conversion command to our API. Following, we will first give you the specific option and talk about what it does. Then, you will get a complete command using a remote link for an example file for the conversion.

 

Remove Audio

This option allows you to remove the audio stream from a video. A video usually contains, among others, a video and an audio stream. Sometimes, however, the sounds or music are only distracting from the video and you want it removed. With this command, you can do this:

"remove_audio": true

For remove_audio, you need one of two possible values:

  • true or
  • false

False is always set as default, meaning that even if you do not specify this in your conversion, the audio will remain intact. Only when including the command and using the value true, the audio will be removed.

 

Here’s what a complete POST command could look like.

{
    "input": [{
      "type": "remote",
      "source": "http://cdn.online-convert.com/example-file/video/mp4/example_small.mp4"
    }],
    "conversion": [{
      "category": "video",
      "target": "mp4",
      "options": {
        "remove_audio": true
      }
    }]
}

 

Change Aspect Ratio

Depending on your screen, you might need to adjust the aspect ratio of your video for the black bars on the sides or top and bottom to disappear. Watching a video on a computer screen, TV or phone might make changing the aspect ratio necessary. The command for this looks like this:

"aspect_ratio": "16:9"

The value that can be set for the aspect ratio change can be chosen rather freely. Just keep in mind that it should be an existing or common aspect ratio. For example:

  • 4:3
  • 16:10
  • 16:9
  • 256:135

 

Here’s an example for a complete POST call:

{
    "input": [{
      "type": "remote",
      "source": "http://cdn.online-convert.com/example-file/video/mp4/example_small.mp4"
    }],
    "conversion": [{
      "category": "video",
      "target": "mp4",
      "options": {
        "aspect_ratio": "16:9"
      }
    }]
}

 

Change Audio Channel

As mentioned above, videos do not only contain video information, but also an audio stream. If you are vaguely familiar with audio, then you know that there are two possible channel modes: mono and stereo. Mono, in short, makes it sound like the sound or music is coming from one direction only, while stereo makes it seem like there are several sources for these sounds. And with the following command, you can change that for your video:

"channel": "mono"

Naturally, there are two values you can use here, mono and stereo. Always make sure to put them in between quotes though.

 

And here’s the full call:

{
    "input": [{
      "type": "remote",
      "source": "http://cdn.online-convert.com/example-file/video/mp4/example_small.mp4"
    }],
    "conversion": [{
      "category": "video",
      "target": "mp4",
      "options": {
        "channel": "mono"
      }
    }]
}

 

Mirror Video

In order to create cool effects or to correct a faulty taping, you can mirror your video with the help of our API. All you need for that is a command like this:

"mirror": "vertical"

There are three possibilities here:

  • vertical
  • horizontal
  • none

None is used as the default and if the mirror-option is not specified, it is – of course – not mirrored. Otherwise, you can use one of the other two values, just make sure to put them in between quotes.

 

A full POST would thus look like this if we want the video to be mirrored vertically:

{
    "input": [{
      "type": "remote",
      "source": "http://cdn.online-convert.com/example-file/video/mp4/example_small.mp4"
    }],
    "conversion": [{
      "category": "video",
      "target": "mp4",
      "options": {
        "mirror": "vertical"
      }
    }]
}

 

Rotate Video

Accidentally took a video with your phone horizontally? Or is it flipped on its head? No problem. Because with the API, you can rotate the video permanently instead of always having to choose the setting in your video player. What you need for this, is this conversion option:

"rotate": "180"

The rotation is measured in degrees and clockwise. This means your video is rotated clockwise (“to the right”) with regard to the degree you use. The degree can’t be chosen freely though. It has to be one of these values:

  • 90
  • 180
  • 270

They cover everything you might need quite nicely though. Converting with 90 degrees, will tilt the video one time to the right. 180 will rotate it two times so it’s flipped upside down. And so on.

 

A full POST command can look like this:

{
    "input": [{
      "type": "remote",
      "source": "http://cdn.online-convert.com/example-file/video/mp4/example_small.mp4"
    }],
    "conversion": [{
      "category": "video",
      "target": "mp4",
      "options": {
        "rotate": "180"
      }
    }]
}

 

Altogether

Of course these options can be combined in whatever way you need it to! Have a look at the following code that combines all options we have listed here:

{
    "input": [{
      "type": "remote",
      "source": "http://cdn.online-convert.com/example-file/video/mp4/example_small.mp4"
    }],
    "conversion": [{
      "category": "video",
      "target": "mp4",
      "options": {
        "aspect_ratio": "4:3",
        "mirror": "horizontal",
        "rotate": "180",
        "channel": "stereo",
        "remove_audio": false
      }
    }]
}

Want to get in touch with us? Hit us up on our social media channels!
  

Crop Videos Online – API Tutorial

Crop Video Files

Converting video files is one thing you can do with the powerful and RESTful API of Online-Convert.com – but there is more!

Easy video editing is something the API is capable of as well. In a past article, we have already shown how to change video and audio codecs using the API, but that’s not all. The feature or editing tool we want to introduce today is how to crop videos, not with regard to run time, but the actual screen or image dimension of the video.

 

Before we start, check out how to use our API with Postman, which is a free tool to create and send API calls. Depending on what you prefer, you can download it as a standalone program or zse the Google Chrome App. Once you got this down, lets go to the cropping!

 

How To Crop Videos

Cropping your video requires a few additions to the options part of your POST request to our API. Thee options are rather self-explanatory, making it easy to add and apply changes. Take a look at the following:

"options": {
        "crop_top": 10,
        "crop_bottom": 50,
        "crop_left": 150,
        "crop_right": 200
      }

As you can see, the options are named after what we want to do to our video screen, namely crop, and the edge or direction where you want to crop. Thus, crop_top will crop the noted value from the top of the video, crop_bottom from the bottom, and so on. The value given for the single crop options is given in pixels.

 

Of course you can choose to crop only from one or two sides. For example, in order to cut off black bars from the top and bottom of the video, you only have to use the respective crop options. The other ones, crop-left and crop_right, can be left out in the command:

"options": {
        "crop_top": 300,
        "crop_bottom": 3000
      }

 

As a whole, this would result in a POST command, including the input format as well as the format you want to convert to, that looks like this:

{
    "input": [{
      "type": "remote",
      "source": "http://cdn.online-convert.com/example-file/video/mp4/example_small.mp4"
    }],
    "conversion": [{
      "category": "video",
      "target": "mp4",
      "options": {
        "crop_top": 50,
        "crop_bottom": 50,
        "crop_left": 200,
        "crop_right": 200
      }
    }]
}

Want to get in touch with us? Hit us up on our social media channels!
  

How To Cut Video Files

Cut Videos

There are two easy and free ways to cut your videos. Shortening a video or cutting a part of a movie is easy and does not require installing any software. We will show you how.

The first way is using the one of the video converters of video.online-convert.com. The other is using our powerful and easy to use API.

 

How To Shorten A Video

Following, we will give you a step by step tutorial on how to easily shorten and cut videos using either our website or our API. All you need is your video and the Postman app for the latter.

 

Using Online-Convert.com

If you want to cut or shorten your video using the Online-Convert website, all you need is your video. Or even just a link to your video. The groundwork for cutting your video is to find out where you want to cut it though. Check your video and write down the time where you want the part you want to cut starts and ends.

 

1. Go to video.online-convert.com. There, you can choose any video converter you like. We suggest converting your videos to MP4 as it is the most supported and common video format nowadays.

2. Upload your video. You can browse your hard drive or phone, enter a link or choose a video you have stored on GDrive or Dropbox.

Cut Video

3. Go to the “Optional settings” and enter the start and end date of the portion you want to cut. The format used is a simple HH:MM:SS format. If you leave either field blank, the cut will start right at the beginning of the video or end at the very end of it.

4. Afterwards, click on “Convert file”. After a while, your now cut video is ready for download!

Cut Video

 

Using The API

Using the Online-Convert API is something not only developers can do. Check out our tutorial on how to use Postman to test our API and start cutting your videos!

What you need is an input file and the following POST command for Postman. In the example, we used a remote file link, but of course you can also upload a file with the according commands. We have added a tutorial on how to upload files in Postman as well.

Here’s the command that you can use. Simply change the remote URL and the start and end times to your liking:

{
    "input": [{
      "type": "remote",
      "source": "http://cdn.online-convert.com/example-file/video/mp4/example_small.mp4"
    }],
    "conversion": [{
      "category": "video",
      "target": "mp4",
      "options": {
        "start": "00:00:06",
        "end": "00:00:11"
      }
    }]
}

Want to get in touch with us? Hit us up on our social media channels!

Editing Videos using a Video Converter

Video editing
image by mobilechina2007 http://bit.ly/1vYmf8T

The basic usage of an online video file converter is – as the name most probably told you already – converting different types of video file formats. From MOV to MKV, from AVI to MP4, or any other possible combination. But there are several other features a video converter can offer!

In earlier blog entries we have looked at how to extract a still image from a movie, or how to rip music from a video clip very easily. But that’s not all you can do by using an online video converter!

This article will give you an overview over what is possible using the Online-Convert.com video converter in the means of editing video clips or movies.

Changing the Screen Size

Some videos are recorded with a very big screen size to make it appealing to watch it on a big or wide screen. Yet, if the screen size is too high, there may be problems when watching the clip on a smaller laptop screen or on a phone. It may stop, stutter, or even be unable to play at all.

Changing the screen size is an easy way how to avoid such problems. On our website, you have the option to enter the desired screen size in pixel for the converted video. Simply add a smaller number than the original screen size in the form width x height and the converted video will have the inserted dimension in terms of screen size.

Change the File Size

Another problem occurring when transferring a video from a computer to a phone, or even more evidently when sending a video clip over the internet, is the file size of the video file in question. Large files can’t be attached to an email because they exceed the sending limit of your email provider. Equally, videos that are too large in file size take up too much space on a phone or can possibly even exceed the space available on the SD card or the internal memory.

Our service provides a few options on how to reduce the file size of the target video.

Bitrate

By changing the average video bitrate by using the optional parameter available when converting a video, you automatically reduce the file size of your video. Sure, by lowering the bit rate, the quality of the video will be lessened as well, yet when watching it on a smaller screen (like on a phone), it doesn’t fall into account that much.

Audio Quality

Likewise, the quality of the audio data of the original video can be altered to have a resulting file with a lower file size. This parameter gives you a variety of options, ranging from 8 to 320 kbps. The resulting and converted video will have the audio quality chosen.

Change File Size directly

Another way to decrease the file size of a movie or video clip is to enter an approximate value in MB. During the conversion, our service will try to reduce the file size to the set parameter as closely as possible without applying great changes to screen size and bitrate.

Change the Frame Rate

There are several reasons why you may want to change the frame rate of your video. Cameras record videos in different frame rates, depending on the setting. When editing videos and merging two videos that have been recorded in a different frame rate, this could become a problem. Furthermore, there exists a difference across digital television broadcast standards. The American standard ACTS supports an approximate frame rate between 24 and 60 pictures per second, while the standard DBV-T which is used especially in Eruope, or DTMB which is common in China, use different frame rates.

To change the frame rate in general or to get the same frame rate for several videos, all that has to be done is to fill in the desired number of pictures or frames per second for the conversion of the video.

Cutting

A very easy and fast way to cut your video or to only select a certain part of a longer video is converting it while using the according parameter. Filling in the start and the end time of the target video in the form 00:00:00 will result in the converted video only containing the content of the section you selected in this way.

Rotating, Mirroring, and Flipping

Especially with the new phones, it can happen that videos are recorded vertically even though they shouldn’t. Or sometimes, videos come out upside down because of the preferences of the camera. Instead of having to install some editing software just to rotate or flip a video, toggling the preferences with our online video converter can do the trick.

For rotation, you have the options of rotating the video to 90°, 180°, or 270°.
Or you can flip your video horizontally or vertically.