How to determine webm duration using ffprobe

前端 未结 3 820
[愿得一人]
[愿得一人] 2021-01-11 23:58

My goal is simple , I have several webm files need to be concated, but first I need to determine their durations.

It seems webm file are played as streams, so there

3条回答
  •  猫巷女王i
    2021-01-12 00:55

    I faced the same issue with some files that does not contain the Duration nor Bitrate on it and found the following solution:

    1- Repackage the files with: (Note that this won't transcode the files, just will copy them)

    ffmpeg -i source.webm -vcodec copy -acodec copy new_source.webm
    

    2- Take the duration from the new copied file:

    ffprobe new_source.webm | grep Duration
    

提交回复
热议问题