ffmpeg not working with filenames that have whitespace

前端 未结 6 777
小鲜肉
小鲜肉 2020-12-09 17:35

I\'m using FFMPEG to measure the duration of videos stored in an Amazon S3 Bucket.

I\'ve read the FFMPEG docs, and they explicitly state that all whitespace and speci

6条回答
  •  天命终不由人
    2020-12-09 18:38

    If you happen to have spaces in your file name, just quote them:

    ffmpeg -i "my video file.mov"
    

    In a URL, a space cannot be there. Most probably you have to replace every single space with a %20, so that you get:

    ffmpeg -i http://myurl.com/my%20video%20file.mov
                                 ^^^     ^^^
    

提交回复
热议问题