Answers.Body: <p>Solved by clearing browser cache.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-08-10T22:04:23.173Z
Answers.Text: Sure? What's the relation between a bash script using ffmpeg with your browser? What if I have a lot of different browsers installed? Which one should its cache be cleared?
Answers.UserDisplayName: Pablo Bianchi
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-05T20:30:16.980Z
Answers.LastActivityDate: 2022-10-14T05:22:09.967Z
Answers.LastEditDate: 2022-10-14T05:22:09.967Z
Answers.UserDisplayName: sirshakir
Body: <p>I am running a compression script to compress my large AVI files to small mp4 files. The script look like this:</p>
  <pre class="lang-sh prettyprint-override"><code>#!/bin/bash
  
  FILEPATH=&quot;$1&quot;
  COMPRESSIONPATH=&quot;$2&quot;
  
  ffmpeg -i $FILEPATH -vcodec h264 -acodec mp2 $COMPRESSIONPATH
  sudo rm $FILEPATH
  curl -H &quot;Content-Type:application/json&quot; -X GET &quot;http://localhost:3000/clovis/api/led&quot;
  </code></pre>
  <p>Whenever I save a compressed video with a filename of <code>compressedVideo#0.mp4</code> 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 <code>ffmpeg</code> is cache that delete video and compressing any filename with <code>compressVideo#0.mp4</code> with the cached video. What might be the case here? How do I clear <code>ffmpeg</code> cache? Changing the filename fixes this issue, but I wanted to use the filename <code>compressedVideo#0.mp4</code>. There are a few filenames that won't work actually; <code>compressedVideo#0-4.mp4</code> all won't work. Depending on the filename used it loads the corresponding video that was created and delete long ago.</p>
  
Tags: <ffmpeg><mp4><compression>
Title: ffmpeg clear video cache
UserDisplayName: sirshakir
ThreadText: # ffmpeg clear video cache
  
  (Asked by: username_0 on 2019-03-05)
  
  I am running a compression script to compress my large AVI files to small mp4 files. The script look like this:
  
  ```sh
  #!/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.
  
  **Tags:** ffmpeg, mp4, compression
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-03-05. Score: 3
  
  Solved by clearing browser cache.
  
  > **Comments:**
  > **username_1**: Sure? What's the relation between a bash script using ffmpeg with your browser? What if I have a lot of different browsers installed? Which one should its cache be cleared?  
  
  ---
  
  