Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -50 err with AddMediaSample() and data size of 0



Milton,

Size 0 for codecs' output corresponds to "drop frame".
IMHO, the best way to deal with it, is to have AddMediaSample delayed by one frame,
then add duration of dropped frames to the last normal frame, before using AddMediaSample.
In this case, frame before "dropped" one will stay longer during playback .
That's the way Streambox Action deals with it.


Alex Telitsine
www.streambox.com


----- Original Message -----
From: "Milton Aupperle" <email@hidden>
To: "qtaPI List" <email@hidden>
Sent: Saturday, September 14, 2002 11:00 AM
Subject: -50 err with AddMediaSample() and data size of 0


> Before I file an official bug report and, I thought I'd ask here first.
>
> I was trying to compress some DV Video using the On2 VP3
> (version 3.2) codec in my application. In this case I do not use
> the QT Movie Export capabilities and am doing it manually (ie
> setting up CompressSequenceBegin() CompressSequenceFrame()
> CDSequenceEnd() and neccessary related calls). I've got a
> strange case where AddMediaSample() is failing with a -50 error
> under OSX 10.1.5 (5s66) with QT 6.0 but works fine under OS 9.22
> under QT 5. The same source code is being used (it's a Carbon
> Application) and so is the video footage (2.9 gigabytes of DV
> video of a collapsing 6 unit town house complex that was
> torched by an arsonist).
>
> Under OS X, for some odd reason the "* dataSize" parameter in
> the CompressSequenceFrame() call is returning a value of "0" on
> the 2184th frame of a 42thousandsth frame of the source clip.
> This is completely at odds with the "* similarity" parameters
> which is 1 and indicates it's almost completely different. Also
> CompressSequenceFrame() does not return 0 as an an error code
> when this happens.
>
> When AddMediaSample() gets called with a "size" parameter of
> "0" , it returns a -50 (QTParamErr) error.
>
> Note that under OS 9.2.2 - QT 5.02, "CompressSequenceFrame()"
> never returns a size of 0 with the exact same settings /
> application / footage.
>
> I also ran a few other tests and found that it also happens for
> the "SorenSon 3" (but not Sorenson or cinepak) codec too - but
> on a different frame. Both cases are 100% repeatable as to
> what "frame" number it occurs on after multiple attempts too.
>
> I'm wondering if this is an undocumented feature (yes I've read
> IM QT vol 1 both the hardcopy and the online version) rather
> than a bug and indicates that the compressed frame has exceeded
> my specified SetCSequenceDataRateParams() params - however the
> same problem does not exist under OS 9.2.2.
>
> Anyone know if this is expected behaviour or is this a genuine bug?
>
> Thanks in Advance..
>
> Milton J. Aupperle
> President
> ASC - Aupperle Services and Contracting
> Mac Software (Drivers, Components and Application) Specialist
> #1011 - 2995 Albion Road N.
> Ottawa Ontario Canada K1V8Z2
> 1-(613)-739-3274
> email@hidden
> www.outcastsoft.com
> _______________________________________________
> quicktime-api mailing list | email@hidden
> Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-api
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
quicktime-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-api
Do not post admin requests to the list. They will be ignored.

References: 
 >-50 err with AddMediaSample() and data size of 0 (From: Milton Aupperle <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.