Image to video stuck on linux
Estebangonzalezt opened this issue · comments
Hi, I'm needed to convert an image to video, but the library gets stuck running this command
-loop 1 -i myImage.jpg -s 1280x720 -c:v libx264 -t 3 -pix_fmt yuv420p -r 10.1 finalVideo.mp4
the video generation never ends this happens only on Linux also the library doesn't show me any log about that.
I'm searching the reasons and I found that another library that uses Chromium generates the problem, I installed the binaries on a different path, but this does not work, so I don't know if Ffmpeg cannot run if there is another library that uses Ffmpeg.
Thanks!!
Hello @Estebangonzalezt
Can you try to run that directly using ffmpeg?
FFmpeg can be run multiple times at once so it shouldn't be a problem.
Do you need to have "-loop 1" there? Before input?
I run the command directly on Ffmpeg on Linux and it works perfectly so I need -loop 1
before input because I need to create a video with 3 seconds long using a single image if I move the -loop 1
after the input it creates me a zero second video long. or there is a way using the library to create a video with n length but using a single image.
Thanks!!
Can you show me the code when you configure conversion?
Are you sure that the same input is passed to ffmpeg?
Also that can be related to that issue #435 - I'm already working on that.
Sure, I run the command -loop 1 -i myImage.jpg -s 1280x720 -c:v libx264 -t 3 -pix_fmt yuv420p -r 10.1 finalVideo.mp4
and pass as parameter to:
var strParam = "-loop 1 -i myImage.jpg -s 1280x720 -c:v libx264 -t 3 -pix_fmt yuv420p -r 10.1 finalVideo.mp4"
await new Conversion()
.AddParameter(strParam)
.UseMultiThread(true)
.Start();