Capturing frames in 64-bits arch

  • Hi All.

    I am working with QTKit.framework and I want to make my application
    works in 64 also.
    but I am having some troubles when capturing frames in 64bits arch
    (from iSight).
    I asked the same question in Quicktime-API list but no luck, so, maybe
    here I can get some help ;)
    ( http://lists.apple.com/archives/quicktime-api/2010/Apr/msg00069.html )

    The error:
    2010-04-18 03:18:51.608 QTCam[7689:c503] *** QTCaptureSession warning:
    Session received the following error while decompressing video: Error
    Domain=NSOSStatusErrorDomain Code=-12905 "The operation couldn’t be
    completed. (OSStatus error -12905.)". Make sure that the formats of
    all video outputs are properly configured.

    So, I suppose I have to change kCVPixelFormatType_24RGB from
    attributes, but 64RGB didn't not work also.

    mCaptureDecompressedOutput = [[QTCaptureDecompressedVideoOutput alloc] init];
    [mCaptureDecompressedOutput setPixelBufferAttributes:[NSDictionary
    dictionaryWithObjectsAndKeys:
                                [NSNumber numberWithDouble:320.0], (id)kCVPixelBufferWidthKey,
                                [NSNumber numberWithDouble:240.0], (id)kCVPixelBufferHeightKey,
                                [NSNumber numberWithUnsignedInt:kCVPixelFormatType_24RGB],
    (id)kCVPixelBufferPixelFormatTypeKey, nil]];

    So I am stucked here.

    BTW:numberWithUnsignedInt:kCVPixelFormatType_24RGB works in 32 bits.

    Thanks in advance.
  • Did you try kCVPixelFormatType_48RGB?

    On Apr 26, 2010, at 1:26 PM, Ignacio Enriquez wrote:

    > Hi All.
    >
    > I am working with QTKit.framework and I want to make my application
    > works in 64 also.
    > but I am having some troubles when capturing frames in 64bits arch
    > (from iSight).
    > I asked the same question in Quicktime-API list but no luck, so, maybe
    > here I can get some help ;)
    > ( http://lists.apple.com/archives/quicktime-api/2010/Apr/msg00069.html )
    >
    > The error:
    > 2010-04-18 03:18:51.608 QTCam[7689:c503] *** QTCaptureSession warning:
    > Session received the following error while decompressing video: Error
    > Domain=NSOSStatusErrorDomain Code=-12905 "The operation couldn’t be
    > completed. (OSStatus error -12905.)". Make sure that the formats of
    > all video outputs are properly configured.
    >
    > So, I suppose I have to change kCVPixelFormatType_24RGB from
    > attributes, but 64RGB didn't not work also.
    >
    > mCaptureDecompressedOutput = [[QTCaptureDecompressedVideoOutput alloc] init];
    > [mCaptureDecompressedOutput setPixelBufferAttributes:[NSDictionary
    > dictionaryWithObjectsAndKeys:
    > [NSNumber numberWithDouble:320.0], (id)kCVPixelBufferWidthKey,
    > [NSNumber numberWithDouble:240.0], (id)kCVPixelBufferHeightKey,
    > [NSNumber numberWithUnsignedInt:kCVPixelFormatType_24RGB],
    > (id)kCVPixelBufferPixelFormatTypeKey, nil]];
    >
    > So I am stucked here.
    >
    > BTW:numberWithUnsignedInt:kCVPixelFormatType_24RGB works in 32 bits.
    >
    >
    > Thanks in advance.
  • Yes I did. It didn't work.
    I wonder what I am missing. maybe other additional setting?

    On Tue, Apr 27, 2010 at 4:14 AM, douglas welton
    <douglas_welton...> wrote:
    > Did you try kCVPixelFormatType_48RGB?
    >
    > On Apr 26, 2010, at 1:26 PM, Ignacio Enriquez wrote:
    >
    >> Hi All.
    >>
    >> I am working with QTKit.framework and I want to make my application
    >> works in 64 also.
    >> but I am having some troubles when capturing frames in 64bits arch
    >> (from iSight).
    >> I asked the same question in Quicktime-API list but no luck, so, maybe
    >> here I can get some help ;)
    >> ( http://lists.apple.com/archives/quicktime-api/2010/Apr/msg00069.html )
    >>
    >> The error:
    >> 2010-04-18 03:18:51.608 QTCam[7689:c503] *** QTCaptureSession warning:
    >> Session received the following error while decompressing video: Error
    >> Domain=NSOSStatusErrorDomain Code=-12905 "The operation couldn’t be
    >> completed. (OSStatus error -12905.)". Make sure that the formats of
    >> all video outputs are properly configured.
    >>
    >> So, I suppose I have to change kCVPixelFormatType_24RGB from
    >> attributes, but 64RGB didn't not work also.
    >>
    >> mCaptureDecompressedOutput = [[QTCaptureDecompressedVideoOutput alloc] init];
    >> [mCaptureDecompressedOutput setPixelBufferAttributes:[NSDictionary
    >> dictionaryWithObjectsAndKeys:
    >> [NSNumber numberWithDouble:320.0], (id)kCVPixelBufferWidthKey,
    >> [NSNumber numberWithDouble:240.0], (id)kCVPixelBufferHeightKey,
    >> [NSNumber numberWithUnsignedInt:kCVPixelFormatType_24RGB],
    >> (id)kCVPixelBufferPixelFormatTypeKey, nil]];
    >>
    >> So I am stucked here.
    >>
    >> BTW:numberWithUnsignedInt:kCVPixelFormatType_24RGB works in 32 bits.
    >>
    >>
    >> Thanks in advance.
    >
    >

    --
    ________________________________
    慶應義塾大学大学院 理工学研究科
    開放環境科学専攻 斎藤英雄研究室
    修士2年 Guillermo Ignacio Enriquez G.
    e-mail :  <nacho4d...>
    ________________________________
    _____________________________________________
previous month april 2010 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today