Using mplayer to determine length of audio/video file

后端 未结 5 2210
不思量自难忘°
不思量自难忘° 2021-02-14 00:21

The following works very nicely to determine the length of various audio/video files:

mplayer -identify file.ogg 2>/dev/null | grep ID_LENGTH
<
5条回答
  •  北荒
    北荒 (楼主)
    2021-02-14 00:43

    FFMPEG can give you the same information in a different format (and doesn't attempt playing the file):

    ffmpeg -i 
    

提交回复
热议问题