ffmpeg -i e.mp4 -vcodec libx264 -crf 25 -y -vf scale=1280:-2 -acodec libmp3lame f.m4

  • frame=21472 fps=120 q=30.0 size= 80128kB time=00:14:55.96 bitrate= 732.6kbits/s dup=2 drop=0 speed= 5x
  • frame=21512 fps=120 q=30.0 size= 80128kB time=00:14:57.81 bitrate= 731.1kbits/s dup=2 drop=0 speed= 5x
  • [h264 @ 0x555c394403e0] Invalid NAL unit size (876 > 60).
  • [h264 @ 0x555c394403e0] Error splitting the input into NAL units.
  • [mov,mp4,m4a,3gp,3g2,mj2 @ 0x555c39332980] stream 0, offset 0x6f3f383: partial file
  • /home/wwwroot/myvideo.com/public/../app/../public//video/prebt/3e9a5b8e7d545773824d267f5f8d92fd.mp4: Invalid data found when processing input
  • [mov,mp4,m4a,3gp,3g2,mj2 @ 0x555c39332980] stream 0, offset 0x6f3f6bd: partial file
  • /home/wwwroot/myvideo.com/public/../app/../public//video/prebt/3e9a5b8e7d545773824d267f5f8d92fd.mp4: Invalid data found when processing input
  • [mov,mp4,m4a,3gp,3g2,mj2 @ 0x555c39332980] stream 1, offset 0x6f41806: partial file复制代码

........

然后视频就变短了