I want to figure out what Windows does when you right-click a video file and check properties and I would like to write a similar piece of code in C++.
I should be able to figure out how to read the file type and size, but I'm lost in how to get details of the video like resolution and runtime.
Which API commands does Windows use there?
Thomasio 0 Newbie Poster
Recommended Answers
Jump to PostIt's open source, meaning one could look into the code
That's the way I learn...
There is no real Windows API to read video info, as this info is different for each video format. With the Windows Property System you can read some information, but it is not …
Jump to PostIf you want to know what windows is up to when you do something, then try using https://learn.microsoft.com/en-us/sysinternals/downloads/procmon
Jump to PostThe Windows Media Foundation API is probably what you are thinking of. You also can just use my example, using the ffmpeg library. Just change the filename.
extern "C" { #include <libavformat/avformat.h> #include <libavformat/avio.h> } int main() { AVFormatContext* …
All 9 Replies
pritaeas 2,194 ¯\_(ツ)_/¯ Moderator Featured Poster
Thomasio 0 Newbie Poster
pritaeas 2,194 ¯\_(ツ)_/¯ Moderator Featured Poster
rproffitt 2,588 "Nothing to see here." Moderator
Thomasio 0 Newbie Poster
rproffitt 2,588 "Nothing to see here." Moderator
Salem 5,138 Posting Sage
toneewa 81 Junior Poster in Training
Thomasio 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.