1

How can I remove one, or multiple segments from a webm video using avconv (without reencoding)?

whtyger
  • 5,900
  • 3
  • 36
  • 48

1 Answers1

2

To remove a single segment of a webm file you can use the standard method of seeking to a particular section of your file and then specifying a time duration to extract.

For example the following will take a section from 1 minute into a file and copy 60 seconds following this into another file:

avconv -ss 00:01:00 -i video.webm -t 60 -c copy cut.webm

To extract multiple segments of a webm file you can use avconv's basic stream segmenter. For example the following will split a webm video into 60 second segments and generate a playlist file as well:

avconv -i test.webm -c copy \
       -f segment -segment_time 60 -segment_list list.pls \
       output%03d.webm

A few choices to make with the segmenter but the above examples covers the basics...

andrew.46
  • 39,359