User Tools

Site Tools


ffmpeg

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ffmpeg [2025/04/10 23:33] – note on what copy means. rjtffmpeg [2025/07/22 01:10] (current) – [Editing] Rotation rjt
Line 20: Line 20:
  
 <code>ffmpeg -i [input].webm -acodec copy -vcodec copy [output].mkv</code> <code>ffmpeg -i [input].webm -acodec copy -vcodec copy [output].mkv</code>
 +
 +A more compact way is to use ''-c'', which will copy over all streams (there's also ''-c:a'' (audio) ''-c:v'' (video) ''-c:s'' (subtitles)…:
 +
 +<code>ffmpeg -i [input].webm -c copy [output].mkv</code>
  
 So if you wanted to copy the video stream and just reencode/change the audio, for example: So if you wanted to copy the video stream and just reencode/change the audio, for example:
Line 86: Line 90:
  
 === Rotation === === Rotation ===
-Rotate 90°.+Rotate 90°. This will reencode the video.
  
 <code>ffmpeg -i inputfile.ext -vf "transpose=1" outputfile.ext</code> <code>ffmpeg -i inputfile.ext -vf "transpose=1" outputfile.ext</code>
 +
 +To rotate -90° is ''transpose=2''.
 +
 +(The easiest, tidiest way to rotate a phone video is to just edit the metadata with [[exiftool]])
  
 === Trimming === === Trimming ===
ffmpeg.1744292024.txt.gz · Last modified: 2025/04/10 23:33 by rjt