FFMPEG hanging when encoding from Avisynth script?
I am trying to encode a video from Avisynth to FFMPEG but the video hangs each time, whether I encode directly to mp4 or to HUFFYUV. I have tried increasing the buffer size but the video still hangs, at a random frame of the video each time. One time it was frame 150, next time it worked until frame 44,000.
To mp4: Code:
ffmpeg -i input.avs -c:a mp3 -qscale:a 0 -c:v libx264 -preset slower -crf 18 -profile:v high -pix_fmt yuv420p -tune grain output.mp4 Code:
ffmpeg -i input.avs -acodec copy -c:v huffyuv -bufsize 500000k output.avi Here is my Avisynth script: Code:
Import("C:\Program Files (x86)\AviSynth+\plugins64+\ReplaceFramesMC2_AD.avsi") Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz. 16 GM RAM |
With the debug level of error handling in FFMPEG, this is where it froze last, on the last line:
[rawvideo @ 0000018edd397740] PACKET SIZE: 3110400, STRIDE: 2880ate=664721.4kbits/s speed=0.132x Last message repeated 4 times [rawvideo @ 0000018edd397740] PACKET SIZE: 3110400, STRIDE: 2880ate=664722.7kbits/s speed=0.132x Last message repeated 4 times [rawvideo @ 0000018edd397740] PACKET SIZE: 3110400, STRIDE: 2880ate=664724.1kbits/s speed=0.132x Last message repeated 4 times [rawvideo @ 0000018edd397740] PACKET SIZE: 3110400, STRIDE: 2880ate=664725.5kbits/s speed=0.132x Last message repeated 4 times [rawvideo @ 0000018edd397740] PACKET SIZE: 3110400, STRIDE: 2880ate=664726.8kbits/s speed=0.132x Last message repeated 4 times [rawvideo @ 0000018edd397740] PACKET SIZE: 3110400, STRIDE: 2880ate=664728.2kbits/s speed=0.132x Last message repeated 4 times [rawvideo @ 0000018edd397740] PACKET SIZE: 3110400, STRIDE: 2880ate=664729.5kbits/s speed=0.132x Last message repeated 4 times [rawvideo @ 0000018edd397740] PACKET SIZE: 3110400, STRIDE: 2880ate=664731.2kbits/s speed=0.132x Last message repeated 3 times |
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.