Skip to main content
Improved formatting. Minor fixes.
Source Link
Michael Liebman
  • 2.4k
  • 4
  • 20
  • 22

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

#!/bin/bash

FILEPATH="$1"
COMPRESSIONPATH="$2"

ffmpeg -i $FILEPATH -vcodec h264 -acodec mp2 $COMPRESSIONPATH
sudo rm $FILEPATH
curl -H "Content-Type:application/json" -X GET "http://localhost:3000/clovis/api/led"

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. It's almost as ffmpeg is cache that delete video and commissioningcompressing 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 won't work actually; compressedVideo#0-4.mp4 all won't work. Depending on the filename used it loads the corresponding video that was created and delete long ago.

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

#!/bin/bash

FILEPATH="$1"
COMPRESSIONPATH="$2"

ffmpeg -i $FILEPATH -vcodec h264 -acodec mp2 $COMPRESSIONPATH
sudo rm $FILEPATH
curl -H "Content-Type:application/json" -X GET "http://localhost:3000/clovis/api/led"

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. It's almost as ffmpeg is cache that delete video and commissioning 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 won't work actually; compressedVideo#0-4.mp4 all won't work. Depending on the filename used it loads the corresponding video that was created and delete long ago.

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

#!/bin/bash

FILEPATH="$1"
COMPRESSIONPATH="$2"

ffmpeg -i $FILEPATH -vcodec h264 -acodec mp2 $COMPRESSIONPATH
sudo rm $FILEPATH
curl -H "Content-Type:application/json" -X GET "http://localhost:3000/clovis/api/led"

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. It's almost as ffmpeg is cache that delete video and compressing 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 won't work actually; compressedVideo#0-4.mp4 all won't work. Depending on the filename used it loads the corresponding video that was created and delete long ago.

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

#!/bin/bash
FILEPATH="$1"
COMPRESSIONPATH="$2"
ffmpeg -i $FILEPATH -vcodec h264 -acodec mp2 $COMPRESSIONPATH
sudo rm $FILEPATH
curl -H "Content-Type:application/json" -X GET 
http://localhost:3000/clovis/api/led
#!/bin/bash

FILEPATH="$1"
COMPRESSIONPATH="$2"

ffmpeg -i $FILEPATH -vcodec h264 -acodec mp2 $COMPRESSIONPATH
sudo rm $FILEPATH
curl -H "Content-Type:application/json" -X GET "http://localhost:3000/clovis/api/led"

Whenever I save a compressed video with a filename of compressedVideo#0.mp4compressedVideo#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. ItsIt's almost as ffmpegffmpeg is cache that delete video and compressioningcommissioning any filename with compressVideo#0.mp4compressVideo#0.mp4 with the cached video. What might be the case here? How do iI clear ffmpegffmpeg cache? Changing the filename fixes this issue, but I wanted to use the filename compressedVideo#0.mp4compressedVideo#0.mp4. There are a few filenames that wontwon't work actually; compressedVideo#0-4.mp4compressedVideo#0-4.mp4 all wontwon't work. Depending on the filename used it loads the corresponding video that was created and delete long ago.

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

#!/bin/bash
FILEPATH="$1"
COMPRESSIONPATH="$2"
ffmpeg -i $FILEPATH -vcodec h264 -acodec mp2 $COMPRESSIONPATH
sudo rm $FILEPATH
curl -H "Content-Type:application/json" -X GET 
http://localhost:3000/clovis/api/led

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.

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

#!/bin/bash

FILEPATH="$1"
COMPRESSIONPATH="$2"

ffmpeg -i $FILEPATH -vcodec h264 -acodec mp2 $COMPRESSIONPATH
sudo rm $FILEPATH
curl -H "Content-Type:application/json" -X GET "http://localhost:3000/clovis/api/led"

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. It's almost as ffmpeg is cache that delete video and commissioning 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 won't work actually; compressedVideo#0-4.mp4 all won't work. Depending on the filename used it loads the corresponding video that was created and delete long ago.

Source Link

ffmpeg clear video cache

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

#!/bin/bash
FILEPATH="$1"
COMPRESSIONPATH="$2"
ffmpeg -i $FILEPATH -vcodec h264 -acodec mp2 $COMPRESSIONPATH
sudo rm $FILEPATH
curl -H "Content-Type:application/json" -X GET 
http://localhost:3000/clovis/api/led

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.