Videos editing tasks

Tools

FFmpeg


ffmpeg -hide_banner -i input.avi

ffprobe


ffprobe -hide_banner input.avi

Tasks

Rotating videos from the command line

On Debian-based distros:


apt install ffmpeg


ffmpeg -i input.mp4 -vf "transpose=1" output.mp4

For better video quality for the output file, the following option might help:

-c:v libx264

Example:


ffmpeg -i input.mp4 -c:v libx264 -vf "transpose=1" output.mp4

Source:

Converting from mpeg to mkv


ffmpeg -i \*.mpeg -c copy \*.mkv

Converting from h265 to h264


ffmpeg -i input -c:v libx264 -c:a copy output.mkv

####Concatenating videos

Back to top

Index