3

I am using the following command to cut a FLAC file:

ffmpeg -i input.flac -ss 10s -t 10s -c copy output.flac

output.flac contains the correct duration of audio. However, all media players show its duration as the duration of input.flac.

The only other mention of this issue is an open ticket from 5 years ago.

How do I correct the timestamp of the output file?

George Tian
  • 401
  • 7
  • 16

1 Answers1

3

A suboptimal workaround is to re-encode by removing -c copy:

ffmpeg -i input.flac -ss 10 -t 10 output.flac

Since FLAC is lossless there will be no quality loss, but it will take longer than stream copying.

llogan
  • 121,796
  • 28
  • 232
  • 243