tnfe / FFCreator

A fast video processing library based on node.js (一个基于node.js的高速视频制作库)
http://tnfe.github.io/FFCreator/
MIT License
2.86k stars 405 forks source link

gif合成会报错,重启服务器后会合成成功 #350

Open Riveer01 opened 1 year ago

Riveer01 commented 1 year ago

image 0|app | 2023-04-23 11:37:53: FFCreator start 0|app | 2023-04-23 11:37:53: [FF] FFGif Gif preProcessing start: ffmpeg -i /mnt/sfs/video/server/public/resource/materials/youxiyuansu1.gif -y -vsync cfr -start_number 0 /mnt/sfs/video/server/cache/3UcszFOIt6d/it1rinpvdq9ykteu/gif5%d.png 0|app | 2023-04-23 11:37:53: [FF] FFGif Gif preProcessing errorffmpeg exited with code 1: av_interleaved_write_frame(): Input/output error 0|app | frame= 5 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.10 bitrate=N/A speed=19.6x
0|app | video:4kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown 0|app | Conversion failed! 0|app | 0|app | 2023-04-23 11:37:53: FFCreator error: ffmpeg exited with code 1: av_interleaved_write_frame(): Input/output error 0|app | frame= 5 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.10 bitrate=N/A speed=19.6x
0|app | video:4kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown 0|app | Conversion failed! 0|app | 2023-04-23 11:37:53: [FF] Creator production error. FFEvent { 0|app | type: 'error', 0|app | pos: 'preProcessing', 0|app | error: 'ffmpeg exited with code 1: av_interleaved_write_frame(): Input/output error\n' + 0|app | 'frame= 5 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.10 bitrate=N/A speed=19.6x \n' + 0|app | 'video:4kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown\n' + 0|app | 'Conversion failed!\n' 0|app | } 0|app | 2023-04-23 11:37:53: [FF] Synthesis synthesis start: ffmpeg -f rawvideo -framerate 30 -s 720x1280 -vcodec rawvideo -pixel_format bgra -video_size 720x1280 -i pipe:0 -y -hide_banner -map_metadata -1 -map_chapters -1 -c:v libx264 -profile:v main -preset medium -crf 20 -movflags faststart -pix_fmt yuv420p -r 30 -t 6 /mnt/sfs/video/server/public/resource/videos/3UcszFOIt6d/pbu29zo9x1y5ircm.mp4 0|app | 2023-04-23 11:37:53: [FF] renderFrame current frame - 0 0|app | 2023-04-23 11:37:53: [Error: Image given has not completed loading 有的gif文件会导致合成失败,进程被kill,服务器重启,然后再合成就会成功,请问这是什么原因导致的呢

wth1107 commented 1 year ago

遇到过相同问题,一直没找到解决方案

drawcall commented 1 year ago

mark 有点忙稍后查看