Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Calculate video runtime?

Featured Replies

I have to say I can't thank the users of this forum enough - as a noob, I wouldn't have gotten this far in the development of this database without the helpful feedback I've found here!

Kudos aside, I've got an interesting one I'm trying to accomplish, and I don't even know if it's possible.

I want to calculate the runtime of a video file and put it into a field. I imagine this would involve reading the metadata in the video file somehow, but I'm not even sure where to start!

The only thing I can think of is using an applescript to get the metadata and pass it into a FM field. I've integrated applescript into FM before, so that part's easy. I'll look into applescript a little later to see how to do it that way, but in the meantime...

Any suggestions?

Thanks!

:P

  • Author

I figured it out, and I'm rather proud of myself... :P

thought I'd post the solution in the hopes that it might help someone someday...

It uses an Applescript to get the filename and path to your video file from Filemaker. It then reads metadata information from the file and uses it to calculate the runtime and pass it back to Filemaker.

A few modifications to the Applescript and this could just as easily be used to get things such as image size and resolution from a jpg, length or bitrate of an audio track, or just about any metadata that you want to pull out of a media file.

File attached. Since it uses Applescript, it's Mac only...

Enjoy! :

get_runtime.zip

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.