====== Kodi ERROR: send packet failed: End of file ======
I got a very strange problem with some MKV video files ripped from DVD. The files contain one video track and several other audio and subtitle tracks.
During playback, at about 00:02:00, the video got stuck and only the audio continued to play. Into the kodi.log we can read the following error message:
T:1065 ERROR : CDVDVideoCodecDRMPRIME::AddData - send packet failed: End of file (-541478725)
T:472 INFO : Skipped 511 duplicate messages..
I started the playback again and pressed the **Ctrl+Shift+O** to display the **[[https://kodi.wiki/view/Player_process_info#Player_Debug_Info|Player Debug Info]]**. I turned out that near the critical time point the **video queue saturation** parameter (//vq//) drops to zero and does not recover.
Playing the same file in a GNU/Linux computer using **mplayer**, we receive the followgin error message:
Possibly bad interleaving detected.
Use -ni option if this causes playback issues and avoid or fix the program that created the file.
This was quite surprising because the encoding and muxing were done with **ffmpeg**.
Fortunately enugh it was possibile to fix the file files without re-encoding them. It was necessary to extract all the streams as single files and then re-mux them all together.