2/18/2023 0 Comments Ffmpeg scale to 480pIn the above screenshot we can see a queue of videos (one in this example) to be processed with the same customised properties which includes transcoding for one or more of the next: For Audio Mobile Media Converter by Miksoft can be an easier way to do transcoding tasks. There is a great deal more to scaling with FFmpeg, I have included a reference at the base if you wish to dig a little deeper. Note that I have specified -2:480 for width and height, this allows FFmpeg to calculate a number for width that is divisible by 2 which will give more efficient encoding. Resize the video stream to 480p and export as an H.264 streamįor this use the following command line: ffmpeg -i input.mp4 \.Pretty cool :).īear in mind that you will need to also re-encode when you are resizing and your selected settings will depend very much on your source material. The scale filter uses width:height and you can see in my example that I have specified a height (vertical resolution) of 480 while the '-1' tells FFmpeg to resize the width (horizontal resolution) as necessary to maintain the existing aspect ratio. The basic syntax to resize your video is as follows: ffmpeg -i input -vf scale=-1:480 output The libavcodec-extra package will install some often-needed extra codecs for FFmpeg. So first install FFmpeg: sudo apt-get install ffmpeg libavcodec-extra The great news is that FFmpeg will do the calculations for the horizontal resolution for you as well as maintaining the required aspect ratio, it is only required for you to give the desired vertical resolution. Again the 'p' stands for progressive scan, i.e. 480p: Has a vertical resolution of 480 pixels, horizontal resolution usually of 640 pixels.The 'p' simply stands for progressive scan, i.e. 720p: Has a vertical resolution of 720 pixels, horizontal resolution usually of 1280px.Certainly under Xenial Xerus you have access to a quite reasonable copy of FFmpeg so the resize can be handled easily with FFmpeg from the command line.įirst some definitions to solve the endless confusion over terminology:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |