Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6153757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:08:47+00:00 2026-05-23T20:08:47+00:00

Hello and thanks for your time, I am creating an application that moves video

  • 0

Hello and thanks for your time,
I am creating an application that moves video files around to be processed by other applications. In the past, I have used mediainfo, and ffmpeg, in ruby to obtain codec information about each file. I would however like to transfer all of this into one beautiful cocoa app. I have searched and searched and still can’t find a solution (without using ffmpeg) on how to do this. I am basically looking for the exact same info you get in the quicktime video inspector window (apple + i).
Any help would be greatly appreciated, sample code, even more so.
Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T20:08:47+00:00Added an answer on May 23, 2026 at 8:08 pm

    You can use Spotlight Queries (NSMetadataQuery), like the mdls command do :

    > mdls ~/Music/iTunes/iTunes\ Media/iTunes\ U/WWDC\ 2011\ Session\ Videos\ -\ HD/1-01\ Apple\ Platforms\ Kickoff.m4v 
    kMDItemAudioBitRate            = 103
    kMDItemAudioChannelCount       = 2
    kMDItemCodecs                  = (
        AAC,
        "H.264"
    )
    kMDItemContentCreationDate     = 2011-07-01 15:49:56 +0000
    kMDItemContentModificationDate = 2011-07-01 16:13:39 +0000
    kMDItemContentType             = "com.apple.m4v-video"
    kMDItemContentTypeTree         = (
        "com.apple.m4v-video",
        "public.movie",
        "public.audiovisual-content",
        "public.data",
        "public.item",
        "public.content"
    )
    kMDItemDateAdded               = 2011-07-01 16:13:39 +0000
    kMDItemDisplayName             = "1-01 Apple Platforms Kickoff.m4v"
    kMDItemDurationSeconds         = 2787.754421087755
    kMDItemFSContentChangeDate     = 2011-07-01 16:13:39 +0000
    kMDItemFSCreationDate          = 2011-07-01 15:49:56 +0000
    kMDItemFSCreatorCode           = "hook"
    kMDItemFSFinderFlags           = 0
    kMDItemFSHasCustomIcon         = 0
    kMDItemFSInvisible             = 0
    kMDItemFSIsExtensionHidden     = 0
    kMDItemFSIsStationery          = 0
    kMDItemFSLabel                 = 0
    kMDItemFSName                  = "1-01 Apple Platforms Kickoff.m4v
    kMDItemFSNodeCount             = 1147843844
    kMDItemFSOwnerGroupID          = 20
    kMDItemFSOwnerUserID           = 502
    kMDItemFSSize                  = 1147843844
    kMDItemFSTypeCode              = ""
    kMDItemKind                    = "Video Media"
    kMDItemLogicalSize             = 1147843844
    kMDItemMediaTypes              = (
        Sound,
        Video
    )
    kMDItemPhysicalSize            = 1147846656
    kMDItemPixelHeight             = 540
    kMDItemPixelWidth              = 958
    kMDItemProfileName             = "HD (1-1-1)"
    kMDItemStreamable              = 0
    kMDItemTotalBitRate            = 3287
    kMDItemVideoBitRate            = 3184
    

    Or you can check the AVFoundation framework.

    Sample code:

     -(NSDictionary *) metadataForFileAtPath:(NSString *) path {
        NSURL *url = [[[NSURL alloc] initFileURLWithPath:path] autorelease];
    
        MDItemRef itemRef = MDItemCreateWithURL(NULL, (CFURLRef)url);
        NSArray *attributeNames = (NSArray *)MDItemCopyAttributeNames(itemRef);
        NSDictionary *attributes = (NSDictionary *) MDItemCopyAttributes(itemRef, (CFArrayRef) attributeNames);
        CFRelease(itemRef);
    
        // probably it is leaking memory (attributeNames and attributes), better check with Instruments
    
        return attributes;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello everybody and thanks for your time. I'm developing some kind of monitoring application
Hello and thanks for your opinion. I am creating a webservice. This webservice will
Hello and thanks for your time. Consider the following scaled down example of a
Hello all and thanks for your time reading this. I need to verify certificates
Hello and thanks for your time! While trying to implement the Form Wizard I
Hello everyone and thank you very much for your time. Basically what I am
Hello and thank you for your time. I am new to Netbeans and I
Hello In my android application i would like to get Time since when the
Hello, this is the second time that I ask a question about this:( I
Hello and thanks to everyone for reading my question. I've been working on a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.