I'd like to play short videos in my application, but I haven't figured out how to make that work by now. I have tried Direct Show to load and play multiple files in .mp4, .avi, .mkv, .mpeg format and I only get the audio for some of them (it's also inconsistent within the formats - some .mp4 will give me the audio, some won't).
Am I doing something wrong: When a button is pressed, the Direct Show loads the video which I have selected with a file explorer (so we can rule out the expression errors).
When another button is pressed, the Direct Show object plays the video, and this is when I get the audio - sometimes; but never any video.
Are there any formats or specific codecs I should consider when exporting these files? I make these videos and export them from Adobe Premiere or sometimes directly with OBS, in case they don't require editing.
Thank you for reading