![]() ![]() ![]() You can not resize a video without re-encoding, but you can copy the audio as shown in the encoding example. Is there a way to simply scale the video without touching it's format.? ![]() FFmpeg guesses the output format based on your file name extension, so if you prefer not to use an extension you will have to tell FFmpeg what to use with the -f option, such as -f mp4. When you use the mp4 extension, FFmpeg wants to use a disabled encoder (probably libfaac specifically in your case), but since it is not enabled you receive an error. Users must enable these manually and compiling FFmpeg will do just that. This occurs because FFmpeg from the Ubuntu repository does not have every encoder enabled by default. If i don't give that mp4 extension, it says unable to determine format. The -1 tells the scale filter to use a height value relative to the width that will maintain the aspect ratio.Īlso, i don't like putting extensions on my file. HOWTO: Install and use the latest FFmpeg and x264 ()įfmpeg -i input -acodec copy -vf 'scale=320:-1' -qscale 4 output.mp4 Unfortunately, FFmpeg from the Ubuntu repository is too old to take advantage of some of the newer FFmpeg features such as scale which can accept either width or height and automatically scale the other. Like, if aspect ratio is 4:3, then it will scale into 320x240Įlseif aspect ratio is 16:9, it will scale it to 400x224 and so on.? Is it possible to make a script that will scale a video, preserving its aspect ratio, to match any of the boundaries. ![]() However, it only supports a maximum resolution of 400x240. I have a lot of videos that I want to put in my mobile. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |