ChurchApps / FreeShow

FreeShow is a free and open-source, user-friendly presenter software.
https://freeshow.app
GNU General Public License v3.0
523 stars 83 forks source link

[Feature Request] Adding a codec information tab for H264 and H265 encoded videos #901

Closed Phantom-Matt closed 5 days ago

Phantom-Matt commented 1 week ago

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.

vassbo commented 1 week 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?!

Phantom-Matt commented 6 days ago

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.

vassbo commented 5 days ago

I found this package that I could use to get the codec info: https://www.npmjs.com/package/mp4box