Closed Phantom-Matt closed 5 days ago
Okay, I'll see if I can find a way to read the codec type. In that case I guess I could alert the user if there is an unsupported file type?!
Sure, a quick advice is always welcome instead of just a black screen. The program that I used for getting the info was mediainfo and I believe that there's a wrapper on npm for him, although I'm not sure (because of my lack of knowledge) if it will help.
I found this package that I could use to get the codec info: https://www.npmjs.com/package/mp4box
I tried to play an MP4 video in our program, but it wasn't working correctly. After doing some further investigation, I found that the problem was related to the refered video using the H.265 codec, which is not supported by Electron.
This made me think that it would be useful to add a tab showing whether a video is encoded with either H.264 or H.265. This would help identify similar issues and allow the operator to take corrective action, either requesting another format or doing a quick rendering in H.264.