Tag: ffmpeg

  • Converting video in Linux system

    Converting video in Linux system from a smartphone to save space is very easy with ffmpeg:ffmpeg -i input.mp4 -c:v libx265 -crf 28 -preset medium -c:a aac -b:a 128k output.mp4 If you would like to additionally rotate the video clockwise you need to add -vf “transpose=1”, so: ffmpeg -i input.mp4 -c:v libx265 -crf 28 -preset medium…

  • Merge mp4 video file with mp3 music file

    If you would like to merge sound with video for you have separated files with these 2 media you can use ffmpeg: ffmpeg -i ‘inputsilentvideo.mp4’ -i ‘inputsound.mp3’ -c copy -map 0:v:0 -map 1:a:0 ‘outputvideowithsound.mp4’ The generated file will contain a video from inputsilentvideo.mp4 with a sound from inputsound.mp3. Happy watching!