FFmpeg stucks for few seconds on start

后端 未结 1 1130
一生所求
一生所求 2020-12-12 03:23

I\'m trying to cut and resize video on Android(but it is similar on MacOS) , but when I run the ffmpeg command it returns me

frame= 0 fps=0.0 q=0.

相关标签:
1条回答
  • 2020-12-12 04:08

    Use of -ss after the input performs a decoded frame seek, which is slower. Switch to demuxer seek

    ffmpeg -y -ss 00:01.82 -to 00:02.94 -i input.mp4 -vf scale=500:1024 -c:v libx264 -c:a aac -b:v 500k -b:a 96k output.mp4
    

    -to for demuxer was only recently added, so get a current git version. Else, use -t with the calculated duration.

    0 讨论(0)
提交回复
热议问题