Open the video. Right-click the screen, go to Subtitle > Sub Track , and select your file. If it doesn't show up, you can simply drag and drop the .srt file onto the VLC window while the movie is playing.
Sites like Subscene or OpenSubtitles are standard for finding community-uploaded files. Look for versions that specifically mention "HDRip" or "XviD" in their title. 2. Prepare the Files subtitle Avengers-Infinity-War-2018-HDRip.XviD....
For most media players to recognize the subtitle automatically: Open the video