1

I used the answer(s) from this questions, however my video is not trimmed.

How to reproduce reproduce:

  1. The Video I am talking about was recorded via the Ubuntu 22.04 record / "Take a Screenshot" application.

  2. You can download a video here: https://sendanywhe.re/YVSW3OPL

The linked video is 23 seconds long; and I use:

ffmpeg -ss 10 -i linux_screencast.webm -c copy -t 10 shorter.webm

The output states:

rame=   24 fps=0.0 q=-1.0 Lsize=       2kB time=00:00:09.14 bitrate=   1.8kbits/s speed=1.25e+05x

However the output is 21 seconds long; in my original problem the length did not change at all.


  • Putting a smaller -ss value behind the -i as also recommended produces an empty output for me.
  • If I remove the -copy for re-encoding the shortening works but the video is squeezed to 1/5 of its size (resolution stays the same). The video looks like a 9:16 video squeezed onto the left of a 16:9.

What am I doing wrong? Is the .webm format produced by the Linux Screencast the problem, or something else?

Daraan
  • 129

1 Answers1

0

The time is probably wrong because your video has 10 seconds but on the metadata of the video it says it has 30 seconds, so maybe removing the metadata:

ffmpeg -ss 21 -i input.webm -map_metadata -1 -c copy output.webm