The following command will compress and reduce the output file's size. It is always a good idea to reduce the media files' size to lower size to save the disk space. This trick will help you to scale your video files to smaller display devices such as tablets and mobiles. Or, $ ffmpeg -i input.mp4 -s 640x480 -c:a copy output.mp4 Similarly, to convert the above file to 640x480 size, run: $ ffmpeg -i input.mp4 -filter:v scale=640:480 -c:a copy output.mp4 The above command will set the resolution of the given video file to 1280x720. Or, $ ffmpeg -i input.mp4 -s 1280x720 -c:a copy output.mp4 If you want to set a particular resolution to a video file, you can use following command: $ ffmpeg -i input.mp4 -filter:v scale=1280:720 -c:a copy output.mp4 Similarly, we can increase the volume like below: $ ffmpeg -i input.mp3 -af 'volume=1.5' output.mp3 5. $ ffmpeg -i input.mp3 -af 'volume=0.5' output.mp3 Change The Volume Of Audio FilesįFmpeg allows us to change the volume of an audio file using "volume filter" option.įor example, the following command will decrease volume by half. For best quality output, use bitrate value as 320k instead of just 320. This is because we have given 320 bits/second as bitrate which is very low. Bitrate 320 is extremely low, maybe you mean 320k The above command will display a warning message like below.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |