Hi, I have a problem when I generate an animated gif from a movie.avi using ffmpeg from python in Win7. If I open a cmd window and execute this line:
"C:\ffmpeg\ffmpeg.exe" -i "C:\ffmpeg\video.avi" -pix_fmt rgb24 -r 10.0 -loop_output 0 -ss 5 -t 10 -s 352x288 -f gif "C:\ffmpeg\video.gif"
ffmpeg.exe generates a gif perfectly from the video. I want to use ffmpeg.exe from my code in python for do the same but, when I execute this code from my python program:
argList = ["-i", "C:\\ffmpeg\\video.avi", "-pix_fmt", "rgb24", "-r", "10.0", "-loop_output", "0", "-ss", "5", "-t", "10", "-s", "352x288", "-f", "gif", "C:\\ffmpeg\\video.gif"]
os.spawnv(os.P_DETACH, "C:\\ffmpeg\\ffmpeg.exe", argList)
Something really rare happends: My video.avi lose all its size, now is a blank file with 0 bytes and the movie.gif is a blank file with 0 bytes too so, the same code in cmd windows works fine and into my python program modifiques my movie.avi file and erase all its content (but the file movie.avi doesn't dessapear, the file still exists but now is a blank file) and generates a blank movie.gif file. Someone know why this happens? Thanks in advance.