I am running a compression script to compress my large AVI files to small mp4 files. The script look like this

ffmpeg -i $FILEPATH -vcodec h264 -acodec mp2 $COMPRESSIONPATH
sudo rm $FILEPATH
curl -H "Content-Type:application/json" -X GET 

Whenever I save a compressed video with a filename of compressedVideo#0.mp4 and open it; the newly compressed mp4 file contains footage of a very old video that I recorded and deleted about a week ago. Its almost as ffmpeg is cache that delete video and compressioning any filename with compressVideo#0.mp4 with the cached video. What might be the case here? How do i clear ffmpeg cache? Changing the filename fixes this issue but I wanted to use the filename compressedVideo#0.mp4. There are a few filenames that wont work actually; compressedVideo#0-4.mp4 all wont work. Depending on the filename used it loads the corresponding video that was created and delete long ago.

1 Answer 1


Solved by clearing browser cache.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.