Apropreate Throwable on contract violation?

I'm just wondering, can anyone suggest how to deal with an implementation returning an incorrect value.
Here's a simple example to show what I mean. Imagine I wanted to make an abstract class which allows you to roll dice and return the sum of the rolls, but the action of rolling one die is implemented by subclass.
public abstract class DiceRoller {
     * Returns a dice roll (a number randomly chosen from 1 to 6)
     * @return a number from 1 to 6
    protected abstract int rollOneDie();
     * Returns a the sum of two dice rolls.
     * @return a number from 2 to 12
    public final int rollTwoDice() {
        int die1 = rollOneDie();
        int die2 = rollOneDie();
        if (die1 < 1 || die1 > 6 || die2 < 1 || die2 > 6) {
            throw new AssertionError("implementation of rollOneDie() did something bad!");
        return die1 + die2;
}Is AssertionError apropreate here? I don't think IllegalArgumentException would be right because that would imply the programmer made a mistake in calling rollTwoDice(). Does anyone know what the convension should be in this case?
This isn't actually what I'm trying to code, but I thought I'd come up with a simpleexample rather than trying to explain my program.

I may not have explained correctly what I'm asking. I'm asking about this from an API point of view, where you would compile the abstract class DiceRoller withuot a concrete implementation, and then release it for clients to implement their own rollOneDie(). I want rollTwoDice() to check incase they screw up the implementation it's better to throw an exception at that point than let the program continue. (fast-fail) Yeh I could just miss out the test and hope the client reads the javadoc for the abstract method they are implementing, and if not that they spot their mistake.
Imagine for instance the client implemented rollOnedie() as such:
@Override
protected int rollOneDie() {
    return (new Random()).nextInt(6); // OOPS! That return 0 to 5!!! Should be 1 to 6.
}Then they unit test rollOneDie() a few times and it returns 3, 4, 2, 2, 4 and assume it to be okay, they they put it into their real application and it sometimes returns 0, meaning that rollTwoDice() (through no fault of it's own) can return 0 or 1 and can't return 11 or 12! But if I have the assertion in place, then when their implementation returns 0, they get an assertion error, find a stack trace and friendly message explaining that their rollOneDie() returned 0, outside of the expected range 1-6. e.g. a nicer version of what I suggested might look like this:
int die1 = rollOneDie();
int die2 = rollOneDie();
if (die1 < 1 || die1 > 6) {
    throw new AssertionError("A call to rollOneDie() returned "
            + die1 + ", expected number in the range 1 to 6!");
} else if (die2 < 1 || die2 > 6) {
    throw new AssertionError("A call to rollOneDie() returned "
            + die2 + ", expected number in the range 1 to 6!");
} else {
    return die1 + die2;
}- My unit testing rollTwoDice() wont be applicable here as the real implementation of the abstract method is, yes you can unit test rollTwoDice() to see how it behaves with a dummy implementation of rollOneDie(), but no ammount of testing rollTwoDice() can prevent the API client from writing an incorrect implementation of rollOneDie();
- I wouldn't want to use the assert keyword here because that's strictly for checking returns of private implimentations and cases which can never happen. Plus it can be disabled, which I don't want.
- IllegalArgumentException is defined as +"Thrown to indicate that a method has been passed an illegal or inappropriate argument."+ and and illegal arguments have been passed to anything here.
- enums are a good idea for the dice problem but the real problem returns a number between 0L to Long.MAX_VALUE, not just numbers 1 to 6, besides even if this were the real problem what would you do if rollOneDie() returned null?
Anyway, my question is, is AssertionError apropreate to use here?

Similar Messages

  • "Input contract violation" error message when trying to import a .wav file into AE?

    I am trying to import a .wav file into AE and keep getting an "input contract violation" message from the program followed by it shutting down. If it means anything, I bought the song online, but it has been paid for and I downloaded the .wav file after my purchase. Any idea of why this may be happening? Are there any particular settings which may be mandatory on the project timeline to import a 3min song? Thank you!

    YOu have not provided any system info, not told us what version of AE you use, your audio setting, what specifics in the audio file and a million other things. See how it may not be possible for anyone to tell you anything beyond "Your computter sucks!" ???
    Mylenium

  • CS3 Input contract violation error \src\MLFMediaSource.ccp-74 help

    I first successfully created a DVD image file from this project, then I changed only the target to Flash and set the build going again. When attempting to transcode the error above came up and the flash.swf build died.
    Any thoughts on what may have happened here?

    First, I have to say that I'm kind of dissapoint about the support Adobe has with this kind of errors. I know how hard is to develop software, and to make it perfect, but I think is the less Adobe can do for such expensive software. When this kind of errors appears, you don't know what to do; the software simply doesn't work.
    I had the same trouble with Encore. A "Input contract violation error \BEUtilities.ccp-254 help?" dialog showed up an the software simply didn't burn the DVD. I tried everything in this forum and it still didn't work. Not even in a HP with Intel Core Dup 3.146 Ghz, 2 Gb RAM, Microsoft Windows XP Professional, Service Pack 2.
    After hours of work, I managed to get a solution. Encore shows this error when you import a video which is not an .M2V video file. If you can manage to convert your .AVI, .Mp4 or whatever video file you have to .M2V, then Encore will be pleased to burn it. You better do it before making the timelines, since doing everything again will be very cumbersome.
    If you can't convert your video files with a program, Adobe Premier Pro will be pleased to send any video file to Encore as a .M2V (video) and .AWM (audio) by clicking on File >> Export >> Send to Encore. After selecting the folder where the new transcoded file will be, Premier Pro will do what Encore couldn't. Encore will open (if it wasn't open) and the option to open those files will show up. I suggest to first convert all your video files and then doing the timelines in Encore in order to spend less time. Then, burn the DVD will be piece of cake.
    I believe that everyone has mistakes. Surely my post won't resolve all the troubles about this matter and I'm no one to claim about this software. Yet, I lost too many hours I don't want that to be repeat by a trouble I don't even know how to fix or where to start. Adobe has been always an enterprise which software worths every penny you spent on it. Please check on this kind of mistakes.
    Sincerily
    Jose Jesus

  • ERROR: "an input contract violation has occurred"

    I was using Vista for some time with Encore CS3. I created dozens of projects. Now I'm using a clean install of Windows 7, and none of my Encore projects will open!
    I get the error message:
    [..\..\Src\Time.cpp-105]
    sometimes two or four times in a row, and sometimes this shows up:
    Runtime Error!
    Program: C:\...
    R6025
    -pure virtual function call
    or this:
    An input contract violation has occurred
    and it prompts me to open/create a new project.
    What contract violation? Everything I'm using is paid for, activated, legit!
    Any ideas?
    Thanks in advance!
    Encore CS3 (Production Premium CS3), fully updated
    Windows 7 64bit
    EVGA nForce 750i
    4gb ram
    GeForce 9800GT
    Creative X-Fi

    Search the forum for windows 7 or win7... MANY problem reports, especially with win7 64bit

  • Contract and defensive programming

    I'm exploring the differences between Contract and Defensive programming. I'm seeking any comments from the community on the subject of these two apparently opposing paradigms. (Or am I wrong? Do they oppose?)
    Contract Programming, or Design by contract, is a programming paradigm whereby classes define their behavior and interplay by "contracts" which are defined in terms of pre-conditions, post conditions and class invariants. In this paradigm, the code must "fail hard", and resist verifying that the contract conditions are met.
    Defensive programming is an opposite strategy. In this paradigm, the assumption is made that the pre conditions of a method call ought to be tested within the method for assurance. This can lead to extra development and a potential veiling of errors elsewhere, such was where and how the call is made.
    My question is, which of these is the preferred method, or ideology of development and why?
    Thanks for any feedback and links to external sources which may be helpful.

    Just asking a clarifying question:
    I'm not sure of the difference between the 2, and my understanding is Java doesn't 'directly' support Design by Contract. I have only
    seen this in Eiffel (in school), but my question, aren't manually coded 'precondition checks' the way to support Design by Contract in Java?
    lance.walton wrote>
    <The important difference, which you've kind of alluded to, is that defensive programming tries to consider what contract violations might occur and provide <strategies for dealing with this. The result is more code that will ideally never be executed. This clutters the intent of what you're trying to achieve as well <as probably introduce more defects because of the clutter. It also suggests that the client code might make mistakes that you can help it with.
    <
    <Even if you don't do Design by Contract (hard to do properly in Java), I would not do defensive programming. It allows sloppy client code, and that <allowance then has to be maintained, which will get harder and harder as your code evolves until you start talking about a rewrite because it's such a <mess.
    If you want to protect yourself against poor client code, use precondition checks.

  • Encore Won't Open, Two Error Messages then "An input contract..."

    I've had nothing but issues with Encore, here's the newest one. It won't open, gives me the two messages listed below, I press continue on each, then displays "An input contract violation has occurred".
    The two errors are in the JPEGs attached.
    Thanks - does anyone have success with this program?

    I have had zero problems with Encore CS3 on my OLD computer http://www.pacifier.com/~jtsmith/ADOBE.HTM
    Premiere stuff, but may help
    Start with these links on the RIGHT SIDE of the Premiere Forum
    How to ask a question http://forums.adobe.com/thread/416679
    Premiere FAQS http://forums.adobe.com/thread/424418
    Premiere Tutorials http://forums.adobe.com/thread/424009
    PPro Wiki http://premierepro.wikia.com/wiki/Adobe_Premiere_Pro_Wiki
    PPro Help http://help.adobe.com/en_US/PremierePro/4.0/index.html
    Also, this is aimed at Premiere Pro, but may help
    A link with many ideas about computer setup http://forums.adobe.com/thread/436215?tstart=0
    And even more hardware discussion http://forums.adobe.com/community/premiere/hardware_forum
    Work through all of the steps (ideas) listed at http://ppro.wikia.com/wiki/Troubleshooting
    If your problem isn't fixed after you follow all of the steps, report back with the DETAILS asked for in the questions at the end of the troubleshooting link
    Plus, more reading
    Fix Encore Win7 Problem http://forums.adobe.com/thread/528582?tstart=0 or direct to
    http://kb.roxio.com/search.aspx?URL=/content/kb/General%20Information/000070GN&PARAMS
    Long File Names Cause Crashing http://forums.adobe.com/thread/588273
    Tutorial http://www.precomposed.com/blog/2009/05/encore-tutorial/

  • Audio balance greatly different in Encore CS3 after encoding 5.1 master track in Premiere Pro CS3

    Hello! I'm wondering if anyone can offer some advice for my DVD audio problem.
    I have a Premiere Pro CS3 project with a 5.1 master track that appears to behave correctly judging by the meters when I play it in PP. It also sounds reasonable (in a mixed-down fashion, I guess) on my PC system's speakers (L,R,LFE), and all rebalancing and panning seems to work well. However, once I export the master track to Encore using PP's SurCode Dolby Digital codec, the resulting audio mix is totally off. Here's what I get: both front channels play mainly out of the right front and center speakers, and the rear channels play mainly out of the left front speaker. I've tried all different settings, but I can't seem to change this. Well I've read that Encore just sends the audio mix straight through (the DVD trancode status is "Don't transcode"), but when I build the DVD and play it on both of my 5.1 surround systems, the results are just as bad as what my desktop PC speakers were hinting at. [Actually all DVDs that Encore builds are UNSUPPORTED on one of my set-top DVD players and they're both Panasonic! So first, I first have to copy the DVD using Nero and then the copy is accepted by all. That seems to have no bearing on my audio dilemma but I thought I'd mention it. I would love to know what Nero is doing right that Encore is doing wrong!)
    Anyway, here's some background: I began to notice this problem with the audio balancing whenever a .wav music source is imported into PP as a stereo source. [A side issue here - I don't seem to be able to explain - or control - how one .wav file gets imported as stereo while another is imported as 5.1!] Anyway, as one would expect, since my master track is 5.1, the stereo track is automatically set up with a rebalancing tray with the puck set in the middle. The meters show that the source is stereo and the sound has been rebalanced across the master track. If I drag the puck around, the master meters behave accordingly. Then I import my video (.avi video clip) and that sound is imported as a stereo track. For that track, I drag the puck to the rear. Again, the master meters respond correctly. So far so good. But when I export to Encore, the resulting audio mix so completely wrong it can't even be explained as a 5.1-to-stereo downmix situation. The sounds that were supposed to come out of the rear channels are in front left and center (and deafening), overpowering the music that is only coming out of front right. And the rear speakers are silent unless I turn on Pro-Logic on my amplifier, which just confuses the issue. I didn't bother to check LFE as things were bad enough.
    Where I DO NOT have the problem is when the audio file is imported as a 5.1 source (although it is just a stereo CD track ripped using Sony CD Architect). In that case, there is no rebalancing tray and the track meter shows only the L and R channels active, as expected. Ditto for the master track. Now if I go ahead and send the music to a stereo submix track and let that rebalance to the master, I see all channels active. But that results in the problem above after exporting to Adobe Media Encoder using SurCode and then importing the audio into Encore. If I don't remix to 5.1, the audio on the DVD is OK. But I would like to have the music come out of all speakers when there isn't a video soundtrack as there are many still pictures in the presentation.
    So the question is, if I can rebalance and pan channels in PP CS3, why are the results coming out all wrong in Encore using SurCode? And how can I hear my project on DVD the same way I mixed in PP?
    Any help would be greatly appreciated!
    Doug Herbst
    Holmdel NJ

    Problem solved everyone!!!
    Rebecca of Adobe support helped me identify the root cause: project was originally set up as standard (2-channel) and although it had evolved to a 5.1 project over time, it could never grow up to be anything other than a standard audio project. After you set up the new project, the setting that controls your audio is buried in the project somewhere. Changing your project settings to set up new 5.1 audio tracks for new timelines does NOT make the project 5.1! The real audio identity attribute set at birth is not alterable OR EVEN VISIBLE (even as a grayed-out project setting) although PP will allow you to set up and mix 5.1 audio tracks at will. So you may think you're working on a 5.1 project now, but you're only fooling yourself and PP goes right along with it. Even the .ac3 files you create via export are 5.1! But dare to build your DVD in Encore and all of your timelines are transcoded back to 2.0 instantly. Resistance is futile.
    A new feature in PP CS4 will allow you to view, and even CHANGE, your project's audio identify from standard to 5.1. How sweet!
    Well, I've devised a way to dig out myself out of this deep hole in CS3 and it worked, but I can't promise that it will work for everyone. (This assumes you own the Dolby Digital 5.1 codec from Minnetonka.)
    1. Create a new Premiere Pro project as 5.1 audio from the get-go.
    2. Import your suspected 2.0 project into this new 5.1 project and click each sequence to flesh out the timeline.
    3. Re-export all audio as elemental streams using Adobe Media Encoder. Make sure you export the audio component of each timeline as Dolby Digital 5.1 and exactly - and I mean EXACTLY - the same way. To deviate the audio settings for each timeline is to ask for trouble, so I recommend setting up an audio pre-set that you can just click when you need it.
    4. Create a new Encore project and import all original video assets and your new replaced and, hopefully, 5.1 audio assets into it.
    5. In Encore, create a separate timeline for each pair of assets (.m2v and .ac3 for example). DO NOT ATTEMPT TO PLACE MULTIPLE PAIRS OF ASSETS ON THE SAME TIMELINE! For some unexplained reason, the build process will transcode the audio back to 2.0, and if you continue pack new 5.1 audio assets on the same timeline, you will get an error message "an input contract violation has occurred" because you now have 2.0 and 5.1 assets on the same timeline, even though you really don't know that and didn't ask for that to happen anyway. (Thanks to Bill Hunt who mentioned his habit of keeping the asset pairs on separate timelines in another thread - that suggestion was absolutely essential to the solution here.)
    6. In Encore, check to make sure that all of your original video sychs up correctly with the new, true 5.1 audio. Link the end actions of each timeline with the next timeline to play in the correct sequence. Check your project for orphan timelines and other errors. Then, before you start building menus and start getting fancy, build a DVD and make sure it plays as 5.1 on your system.
    Tip #1: while you're re-exporting and replacing the audio files, don't have Encore running. I've seen it gracefully and automatically re-import the replaced file once the export is done, but I have also seen it choke with the terribly descriptive "Encore has encountered a problem" message upon discovered the asset is not available while it is being replaced. Encore then continues to mark the asset as offline.
    Tip #2: when re-exporting and replacing files, always select audio and video separately. For some reason, Encore will allow you to replace an .ac3 file when you perform an elemental audio export, but when you try to combine video and audio and both files exist, Encore will prompt you to replace the video, but immediately abort with an error that it cannot replace the .ac3 file, thus forcing you to delete the .ac3 component manually before trying again.
    Doug

  • Adobe After Effects CS4 Crashes After Reinstall

    Hello Adobe Community,
    I come to you asking for help, my After Effects CS4 stopped working after reinstalling Leopard, I already reinstalled my Suite and Runned the Clean Up Script and still not working, first I launch the App and shows me the following error: "After Effects has encountered an error: [/Chinchillada/pro/ext/adobe/MediaCore/MedialLayer/VideoFilterHost/Make/Mac/../../Src/AEP luginVideoFilterModule.cpp-107]" then I click continue and then it shows me another error: "After Effects can't continue: An Output contract violation has ocurred!" then it shows another error: "After Effects warning: Failed to initialize mediacore" then it shows this "After Effects warning: Media Core is not correctly initialized" then it launches and freezes and shows that the app quitted unexpectedly, I'm sure that the app is dead but I already reinstalled with no success.
    Im Running:
    Mac OS X Leopard 10.5.7
    Intel Core 2 Duo 2GHz
    1 GB Ram
    After Effects worked and runned perfectly Please Help!
    Mike

    Hi Mike,
    Sorry you are experiencing problems with After Effects.
    I have a couple of questions....
    - did you install from a download, or a CD? if from a download, please download again, as their may have been issues
    - did you update it to v 9.02?
    - did you have a previous beta version on your computer?
    - you said you reinstalled Leopard - did you do a clean install? (ie reformatting your harddrive and starting clean)
    I have experienced issues on the mac with a variety of different applications is I do a 're-install" vs a clean install.
    Finally, are you aware that the minimum RAM requirements for AE CS4 is2GB
    So since you only have 1GB, it could be a RAM  issue.
    If you decided you want to try reinstalling before doing the more difficult task (reformatting Mac OS X with a clean install), I would run the cleanup script first, redownload, install, and then update.
    Here's the link: <http://www.adobe.com/support/contact/cs4clean.html>
    good luck,
    elaine

  • Error:  [..\..Src\Time.cpp-105]

    Using Procoder 3:
    I used:
    MPEG2 - DVD - NTSC (mastering quality) preset.
    I have two files m2v and .wave that I tried to import into Encore CS3.
    It does not like my video. I get this error:
    Adobe Encore has encountered an error.
    [..\..Src\Time.cpp-105]
    An input contract violation has occurred!
    Any ideas?
    Thanks,
    Simon

    You need to watch out for Quicktime auto-updating itself.  I turn this feature off, but within a few days it is always back on.  A couple of months back I missed this and got this error.  I tried various ways to sort it, but eventually had to revert to an image made some weeks before.  This old image had the safe 7.5.5 version of Quicktime.
    I am not a cynic, but I share Hunt's suspicions about Apple's activities.  I wonder if Premiere is targeted due to Adobe re-entering the NLE market for Macs.

  • After Effects Plugin Error when launching

    I recently installed Red Giant Knoll Light Magic Pro plugin and get the following error when launching AE CS4 9.02 on a 2.53Ghz Intel Macbook Pro with 4Gb Ram and Snow Leopard.
    After Effects has encountered an error.
    [/Chincillada/pro/ext/adobe/MediaCore/MediaLayer/VideoFilterHost/Make/Mac/../../Src/AEPlug inVideoFilterModule.cpp-107]
    then I get:
    After Effects can't continue: An output contract violation has occured!
    then:
    After Effects warning: Failed to initialize mediacore
    I have also lodged a support ticket with Red Giant but wanted to see if anyone had experienced, or could shed any light on this error code.
    Thanks

    As a start, move the KLF plug-in out of the shared MediaCore folder (Library:Apllication Support:Adobe and something; not on my Mac ATM) to the conventional AE plug-in folder (Applications:Adobe After Effects CS4:Support Files:Plug-Ins) I've reminded my friends at RG a hundred times, but their installer stil luses bad default locations. If that doesn't fix it, then indeed you have a problem. Which version of the plug-in are you using? Most complaints revolve around v2.5's GPU usage, which is on by default and causes a lot of trouble. Older versions do not do this, so they are more stable....
    Mylenium

  • Scrumpy/main/MediaLayerFacade/build/mac...../BEUtilities.cpp-254

    The subject line is what I get when I try to build a DVD. This comes up when the encoding phase is finished. I also get a "Input Contract Violation" error. Any ideas? I'm stumped. I have burned DVDs on this MacBOOK Pro recently and had no problems. Any input is appreciated.

    I just tried to BUILD using CS4...still crapped out on me. I had high hopes for CS4, especially with Encore...looks like it still is trashy and no one reading this discussion seems to have had problems (or answers!) but you (Don) and I. Sigh...

  • Encore CS4 can't create a project with Snow Leopard

    After many crashes on a Windows XP 64Bit Dell workstation trying to render a project, I thought I would create the project from scratch on my MacBook Pro 17" with Snow Leopard installed. I get a strange string error message trying to create a new project. It goes back to the welcome screen and I try to open the project it just created. I get a second error message that the project was created with Windows and can't be opened with a Mac. Strange. Then I get a third message saying an input contract violation has occurred. I guess I'm in trouble somehow for this . I think I was successful at creating a service issue with this, but I only grabbed the first error message at that time.
    I'll attach the messages here....
    Rick

    Sorry to say, no I have not. I was able to complete the work on my Windows XP 64Bit system.
    The MacBook is my personal laptop, but I use it as backup to what I am doing on the workstation.
    I was sent some info on permissions and maybe starting in safe mode. I don't know that "safe mode" exists on a Mac, and I am the only owner/user on it. Permissions should not be an issue. No time right now to do an uninstall/reinstall, but that's what I was thinking of doing.
    It tells me I can't create the file, yet it appears in the folder. Then I try to open it and it says it was created with a Windows machine. Neat trick.
    I just tried again, no luck.

  • Debug error when changing blending modes

    Hi there,
    I get a Debug Error every time I use 2 Adjustment Layers one above each other, with the following effects applied:
    Adjustment Layer Above:
    - Tint, not keyframed
    - Opacity Blending Mode: Color Dodge
    Adjustment Layer Below:
    - Venetian Blinds, not keyframed
    - Offset, keyframed
    - Turbulent Displace, keyframed
    - Opacity Blending Mode: Normal
    Media layer below:
    - JPG, Canon 60D - 5184x3456 - no effects applied
    The error I get (option to 'Continue', but the program doesn't respond and needs to be closed):
    Premiere Pro Debug Event
    Premiere Pro has encountered an error.
    [..\..\Src\CutlistRenderer.cpp-717]
    Error in Events panel:
    An input contract violation has occurred!
    I first started to get this error, while working with various media files in 1440x1080/HDV 1080i mode (Sony Z7U native)/29.97fps/1.33 sequence. Trying to understand what it goes wrong, I created a new project and recreated the adjustment layers (AL) with same effects applied - the only thing changed was the JPG added as media under both ALs. Same debug errors every time the blending is changed from normal to any other blending mode. With normal blending on the AL above, everything is fine.
    After further testing, it looks like even with only one AL (no effects) above the JPG, get the same debug error when blending is changed from normal to any other mode.
    Important note: Same layer+effect configuration applied in 1920x1080/ARRI Cinema mode/24fps/1.0 sequence - it works with no debug error. Haven't tried any other editing modes yet.
    Layers, in order from top:
    - AL (Venetian Blinds, Tint, Offset, Turbulent Displace - Color Dodge blending)
    - AL (Venetian Blinds, Tint, Offset, Turbulent Displace - Normal blending)
    - AL (Timecode effect)
    - Title
    - media, MPEG (1440x1080, 29.97 frame rate, 1.3333 pixel aspect ratio)
    - After Effects composition (dynamic link) 1920x1080 - content: media file, MPEG (640x480, 30fps, 1.0 + various titles and effects, including color dodge blending
    I googled for similar error reports, there are none related to Premiere Pro.
    I don't know what else to do, rather than just avoid using this effect configuration.
    Does anyone else had this issue, even in different situations?
    Thank you very much for any feedback.
    Best,
    Mark
    Hardware:
    HP Z820
    Dual Xeon E5-2643 - driver 6.1.7600.16385
    Dual nVidia Quadro 4000 - driver 8.17.12.7628
    64GB RAM
    SSD 250GB for System
    HDD 3TB for Media
    Software (up to date):
    Adobe Premiere Pro CS6 - Version 6.0.3 (001 (MC: 264587))
    Windows 7 x64 - 6.1.7601 Service Pack 1 Build 7601

    I've never seen that error myself.  If you have a way to avoid it, might be best to just do that.

  • Error when trying to export as Flash

    I'm attempting to export my very small test project as Flash, but two errors occur:
    1. Adobe Encore has encountered an error. [..\..\src\AMEEncoder.cpp-2359]
    There is only a "Continue" button to click, so I click it and the Build Progress bar finishes and states "Completed". I then click "OK" and get this second error:
    2. "An input contract violation has occurred!"
    There is only an "OK" button to click, so I click it and that's it.
    I try to play the swf or index.html that was created and though the Flash build opens to my main menu, complete with correct navigation and highlights states, their respective videos do not playback when selected from the menu. Only a blank black screen appears. If I click Pause or Play respectively, nothing changes, but I can select the "Next" button and it initiates my set end action for that clip and correctly returns me to the main menu. So, some of the settings stick, but video playback does not.
    Some other info about this Encore project:
    From Premiere Pro CS3, I used the "Export to Encore" export option. I selected "Author With Menus", and changed my Encoding Settings to a custom setting of:
    NTSC, 720x480, 29.97 drop frame [fps], Progressive, Quality 5.0
    192 [kbps], 48kHz, 16 bit, Stereo, MPEG
    CBR, 9.00 [Mbps]
    It successfully encoded without error and opened Encore and such.
    Hope I have provided enough info...

    Hey Neil,
    Thanks for replying. When I author DVD's, I use the basic encoding standards you listed above.
    In this case, since the output is not written media, I was encoding in a way that would give me the best possible results (in theory at least) when planning on flv being the final encoded output, where lowest possible file size with best possible quality is the goal (since it's home will be on the web, not a DVD).
    As for my issue with the errors generated from the Export to Flash option, I have learned some things, and was able to successfully Export to Flash.
    One thing is that apparently the Flash encoder that EncoreDVD CS3 uses is not the same as the Adobe Flash CS3 Video Encoder or whatever Flash encoding engine Premiere uses. Encore's Flash output settings are limited, and so are the results.
    What I had to do was export my PP CS3 projects to Flash using Adobe Media Encoder and update the XML that Encore spits out accordingly to point to my newly encoded flv's, replacing the flv's that Encore created... not a big deal, but one extra step and little more waiting time.
    Now, the results are stunning! And since I'm not comfortable in Flash CS3 or coding ActionScript, having Encore create the menu interface, with all the navigation and interactivity and such, for me was a big BIG plus!

  • After Effects MediaCore error

    Hello,
    I was trying to install some .ffx package from a friend I know and I pasted it into my effects directory. I am running a Mac OS X Version 10.6.8 if this helps. I put it in there, I don't know whether I could've accidentally put it in a .plugin file and I opened After Effects. It says exactly these 3 things:
    After Effects has encountered an error.
    [/Chinchillada/pro/ext/adobe/MediaCore/MediaLayer/VIdeoFIlterHost/Make/Mac/../../Src/AEPlu ginVideoFilterModule.cpp-107]
    After Effects cannot continue: An output contract violation has occurred!
    After Effects warning: Failed to initialize mediacore.
    Please help me, I have to edit a film for school and I cannot do it if I don't have it fixed in around a weeks time.
    Thank you in advance.
    - CushendoHD

    Hi CushendoHD,
    Please refer :
    http://helpx.adobe.com/x-productkb/multi/startup-screen-hangs-premiere-after.html
    http://forums.adobe.com/thread/1025148

Maybe you are looking for

  • Firefox will not load.

    I installed Fedora onto my computer and the built in Firefox will not connect to the internet. I have turned off the Proxy, I have turned off IPv6. Nothing works, however when I run Windows on the same computer Internet Explorer connects and works ju

  • Wifi works for short time

    Dear readers, Since a few weeks my wifi / airport on my Macbook stops working after a few minutes. I can temporarily fix this problem by turning off and on the Airport function, but after a few minutes it kicks me out again. Other details: Cable work

  • Required transaction

    Hi Experts, We want to have this following journal entry created after vendor payment made to A/P invoice:   Db  Credit Card Payable   Cr    Cash / Bank I am referring to the credit card billing payment. Do I have to change the payable account so tha

  • Function iFS not found

    Hello All, Problem:- I am transporting my interface from Dev to QA using CMS transport method. Everything is fine in Dev system even mapping is checked correcetly, but when I am checking the mapping in QA system it it showing the error message in the

  • Smashed my keyboard, the screen went weird, I think my computer is broken.

    I accidentally smashed my keyboard with a lot of pressure and the screen went striped with a steady beeping sound. I closed the lid and unplugged the charger and that was when the beeping stopped. I'm too afraid to open my computer again in fear that