Zend certified PHP/Magento developer

OS and video file gets corrupted with repeated playback

I want to have a video that is repeatedly played back. For this, I have a Raspberry Pi running Ubuntu, calling a terminal command that opens a video player with repeat flag and plays the 30-min video on repeat. Both OS and video file is located on a USB drive.

Terminal command to start playback: mpv /home/hvb/Desktop/video.mp4 --loop-file=yes --fullscreen=yes --stop-screensaver=yes

The issue is, that the USB repeatedly gets corrupted. The first 2-3 times this happened, only the video file got corrupted. The last time, also the OS got corrupted. I am a bit unsure about how many hours of playback that causes the error, but it is within the range 36h-87h.

I have tried two different USB drives of the same model, I have tried two different video players. The USB drive itself also seems fine as soon as everything is rewritten (reinstalling OS and recopying video file).

  • What causes the file corruption?
  • What can I do to lower the number of file corruption incidents?
  • Is it possible to completely get rid file corruptions during the repeated video playback?

I am clueless, as I have no idea what causes this issues, and as the video playback is only a read operation on the USB drive and no substantial wear would therefore occur. While the USB drive itself might be the cause, please list more causes and solutions, than to just change out the USB drive.