How to extract start timecode and duration/length metadata from a .mov file?

UnlimitedSprint picture UnlimitedSprint · Aug 13, 2009 · Viewed 7.5k times · Source

I have C# .NET client on Windows and need to extract the start timecode and duration/length metadata from a .mov file. Anyone out there who knows how to do it? I looked around on the internet but haven't found anything yet.

Answer

chris166 picture chris166 · Aug 13, 2009

I don't know of any C# library that is able to parse .mov files. Can you call unmanaged code in your environment? (requires FullTrust permissions)

It's really hard to parse the files yourself (we did that once in a DirectShow filter), so I recommend to use a library to do the job for you. Look for example at MediaInfo or ffmpeg

The MP4 container is very similar to .mov files, so you can also use MP4 tools like mp4box to extract very detailed information (e.g. for the start timecode)