Bits (bitvector) Attributes on integer...

Well... i wish to have certain attributes in an object (integer).
I want to be able to easily do:
setbit(blabla)
removebit(blabla)
isset(bblabla)
A "flag" could have for example
FLAG0 = (1 << 0)
Flag10 = (1 << 10)
Then do setbit(FLAG0) on the object (integer).
To check for attributes on the object. Preferably this would only need to be stored in an integer (using a 32 bit system, i can have 32 different "flags"/ integer).
Is there some default java stuff for handling "bits" and setting "flags" on a simple integer? Or should i implement this on my own?

While it makes a fun exercise to do it on your own, an API class for this does exist. It is called java.util.BitSet.
http://java.sun.com/j2se/1.4.1/docs/api/java/util/BitSet.html

Similar Messages

  • How to change raw char string to 16-bit 2's complement integer?

    Hi,
    Please see the following raw char sting
    óèóóóóþþóèþóóóþóþóóèþóóóó​óóóóóþóóóóóèóóóóóþóóþþóóó​þóèóóþóèþóèóþóóþóóèþóóóþè​óóþóþóþóóóþóóóþóèóþþèþóþó
    How could I converter it to 16-bit short signed integer 2's complement?
    Thanks,
    Ott
    Solved!
    Go to Solution.

    What do you expect for the output?  Something like this?
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    To I16 Array.png ‏20 KB

  • 32 bit integer size on 64 bit processor and OS

    Although not strictly a dbx question, I think the audience here is the correct one to bounce this off of:
    I'm curious: Why are 64 bit processes compiled with the -xarch=v9 switch having a 32 bit integer size, versus having 64 bit integer size?
    Although not cast in stone, and implementation dependent, an "int was originally intended to be the "natural" word size of the processor - to use the processor's "natural" word size to improve efficiency (avoid masking, etc).".
    I know you 'force' more 64 bit use (see some of Sun's doc on this below).
    ===============
    The 64-bit Solaris operating environment is a complete 32-bit and 64-bit application and development environment supported by a 64-bit operating system. The 64-bit Solaris operating environment overcomes the limitations of the 32-bit system by supporting a 64-bit virtual address space as well as removing other existing 32-bit system limitations.
    For C, C++, and Fortran software developers, this means the following when compiling with -xarch=v9,v9a, or v9b in a Solaris 7 or Solaris 8 environment:
    Full 64-bit integer arithmetic for 64-bit applications. Though 64-bit arithmetic has been available in all Solaris 2 releases, the 64-bit implementation now uses full 64-bit machine registers for integer operations and parameter passing.
    A 64-bit virtual address space allows programs to access very large blocks of memory.
    For C and C++, the data model is "LP64" for 64-bit applications: long and pointer data types are 64-bits and the programmer needs to be aware that this change may be the cause of many 32-bit to 64-bit conversion issues. The details are in the Solaris 64-bit Developer's Guide, available on AnswerBook2. Also, the lint -errchk=longptr64 option can be used to check a C program's portability to an LP64 environment. Lint will check for assignments of pointer expressions and long integer expressions to plain (32-bit) integers, even for explicit casts.
    The Fortran programmer needs to be aware that POINTER variables in a 64-bit environment are INTEGER*8. Also, certain library routines and intrinsics will require INTEGER*8 arguments and/or return INTEGER*8 values when programs are compiled with -xarch=v9,v9a, or v9b that would otherwise require INTEGER*4.
    Be aware however that even though a program is compiled to run in a 64-bit environment, default data sizes for INTEGER, REAL, COMPLEX, and DOUBLE PRECISION do not change. That is, even though a program is compiled with -xarch=v9, default INTEGER and REAL are still INTEGER*4 and REAL*4, and so on. To use the full features of the 64-bit environment, some explicit typing of variables as INTEGER*8 and REAL*8 may be required. (See also the -xtypemap option.) Also, some 64-bit specific library routines (such as qsort(3F) and malloc64(3F)) may have to be used. For details, see the FORTRAN 77 or Fortran 95 READMEs (also viewable with the f77 or f95 compiler option: -xhelp=readme).
    A: No program is available that specifically invokes 64-bit capabilities. In order to take advantage of the 64-bit capabilities of your system running the 64-bit version of the operating environment, you need to rebuild your applications using the -xarch=v9 option of the compiler or assembler.

    I think that this was basically to keep down the headaches in porting code (and having code that will compile to both 32bit and 64bit object files). int is probably the most common type, so by keeping it at 32bits, the LP64 model has less effect on code that was originally written for 32bit platforms.
    If you want to have portable code (in terms of the sizes of integral types), then you should consider using int32_t, int64_t etc from inttypes.h. Note that this header is post-ANSI C 90, so might not be portable to old C/C++ compilers.
    A+
    Paul

  • Generic Attribute in MXBean

    Hi,
    I'm trying to register an MXBean (using Java 1.6) that has a get attribute that returns a generic class with the type specified in the interface. I get a non-compliant mbean exception thrown indicating that the method in question returns a type that cannot be translated into an open type.
    Here is some code that illustrates what I am trying to do:
        public static class GenericValue<E>
            private final E val;
            GenericValue(E val) {
                this.val = val;
            public E getVal() {
                return val;
        public interface GenericHolderMXBean {
            public GenericValue<Float> getVal();
        public static class GenericHolder
                implements GenericHolderMXBean {
            @Override
            public GenericValue<Float> getVal() {
                return new GenericValue<Float>(1.0f);
        TestMbeanStuff.GenericHolder genericHolder = new GenericHolder();
        MBeanServer m = ManagementFactory.getPlatformMBeanServer();
        ObjectName name = new ObjectName("com.test:type=GenericHolder");
        m.registerMBean( genericHolder, name )Is there a way to make this work? It seems analogous to List working as an attribute in an MXBean, but perhaps support for collections is a special case made by JMX and it is not possible to use one's own generic types?
    Thanks,
    Ryan

    Thanks for your response Éamonn,
    I do have a bit of a follow-up question. My original question was a simplification of what I would like to do. What I'm really after is having my MXBean interface return a type that has a generic type nested as an attribute. eg:
        public static class GenericHolder {
            public GenericValue<Float> getVal() {
                return new GenericValue<Float>(1.0f);
        public interface NestedGenericHolderMXBean {
            public GenericHolder getVal();
        public static class NestedGenericHolder
                implements NestedGenericHolderMXBean {
            public GenericHolder getVal() {
                return new GenericHolder();
        }I would still like to make this work and can see a way to make it work. But, there are a couple of ugly things about my solution. I can probably live with them, but would like to verify that they're unavoidable before I do.
    NestedGenericHolder, as above, cannot be registered any more than my original example (for the same reason). My first thought is to make GenericHolder implement CompositeDataView and define how it should be converted to CompositeData. The modified GenericHolder looks something like:
        public static class GenericHolder implements CompositeDataView {
            public GenericValue<Float> getGenericVal() {
                return new GenericValue<Float>(1.0f);
            @Override
            public CompositeData toCompositeData(CompositeType ct) {
                try {
                    List<String> itemNames = new ArrayList<String>();
                    List<String> itemDescriptions = new ArrayList<String>();
                    List<OpenType<?>> itemTypes = new ArrayList<OpenType<?>>();
                    itemNames.add("genericVal");
                    itemTypes.add(SimpleType.FLOAT);
                    itemDescriptions.add("generic value");
                    CompositeType xct =
                            new CompositeType(
                                    ct.getTypeName(),
                                ct.getDescription(),
                                itemNames.toArray(new String[0]),
                                itemDescriptions.toArray(new String[0]),
                                itemTypes.toArray(new OpenType<?>[0]));
                    CompositeData cd = new CompositeDataSupport(
                            xct,
                            new String[] { "genericVal" },
                            new Object[] {
                                    getGenericVal().getVal()
                    assert ct.isValue(cd); // check we've done it right
                    return cd;
                } catch (Exception e) {
                    throw new RuntimeException(e);
        }This doesn't help anything though because introspection still seems to inspect this class' attributes. ie: Even though I've manually defined how to convert to CompositeData, it still seems to want to verify that it could do it automatically if it had to. Anyway, my next fix, is to change the name of the "getGenericValue" method to "genericValue" so that JMX doesn't expect that "genericVal" should be an attribute of my type. (And then I will add it to the CompositeData as an extra item - as described in the CompositeDataView JavaDoc).
    Registration now because (I believe) JMX refuses to convert an object to a CompositeData that contains no attributes. As a result, I attempt to fix this by adding another getter to my class:
        public static class GenericHolder implements CompositeDataView {
            // MXBean introspection rejects classes with no attributes.
            public Integer getOtherVal() {
                return 17;
            public GenericValue<Float> genericVal() {
                return new GenericValue<Float>(1.0f);
            @Override
            public CompositeData toCompositeData(CompositeType ct) {
                try {
                    List<String> itemNames = new ArrayList<String>(ct.keySet());
                    List<String> itemDescriptions = new ArrayList<String>();
                    List<OpenType<?>> itemTypes = new ArrayList<OpenType<?>>();
                    for (String item : itemNames) {
                        itemDescriptions.add(ct.getDescription(item));
                        itemTypes.add(ct.getType(item));
                    itemNames.add("genericVal");
                    itemTypes.add(SimpleType.FLOAT);
                    itemDescriptions.add("generic value");
                    CompositeType xct =
                            new CompositeType(
                                    ct.getTypeName(),
                                ct.getDescription(),
                                itemNames.toArray(new String[0]),
                                itemDescriptions.toArray(new String[0]),
                                itemTypes.toArray(new OpenType<?>[0]));
                    CompositeData cd = new CompositeDataSupport(
                            xct,
                            new String[] { "otherVal", "genericVal" },
                            new Object[] {
                                    getOtherVal(),
                                    genericVal().getVal()
                    assert ct.isValue(cd); // check we've done it right
                    return cd;
                } catch (Exception e) {
                    throw new RuntimeException(e);
        }It now works, but not without a few compromises:
    1. I have to implement toCompositeData(). This one isn't too big of a problem. I can certainly live with this.
    2. I have to avoid method names that JMX will interpret as attributes when the return type are ones that it doesn't know how to convert to an OpenType. (I then add them into my MXBean, by adding them into the CompositeDataView I build.)
    3. Such classes (GenericHolder) must contain at least one attribute with a type that can automatically be converted to an Open type.
    I'd just like to make sure there aren't better solutions to the problems I described above.
    Thanks and sorry for the overly long post,
    Ryan

  • Casting int to a byte -- retreiving the lowest 8 bits

    Yo, thought i'd try to open up some debate on this topic. I wrote a data feed that needed to grab the lower 8 bits out of an int, so i wrote what i believed to be the standard way of doing this, which was effectively
    public static byte intToByte( int c ) {
            return (byte) (c & 0xff);
    }A colleague looking through my code asked whether the & 0xff was necessary, and did i believe that there was any value of c for which it made a difference, as he believed that this was equivalent to just
    return (byte)c; My immediate thought was worrying about byte in java being signed, and having data screwed up, so i ran some tests.. and on every value i tried (byte)c is indeed equivalent to (byte)( c & 0xff ).
    My argument was to be that (byte)( c & 0xFF ); is great code to read as a maintainer, because it;'s immediately obvious that you are strictly interested in the lowest 8 bits of the int, and nothing else is of importance, and a simple (byte)c; can look naive and make every developer looking at the code for the first time think it's incorrect.
    However, i knew his comeback would be that the datafeed has an overriding need for speed, so i ran some tests comparing the repeated operation of (byte)c to (byte)(c & 0xff ) over a range of 100,000 numbers (test repeated several times to obviate startup times). It turned out that doing the & 0xff added about 30% to execution time on my machine (java 1.5 on WinXP). That's quite a severe penalty for a very common operation! I think i'm going to change the code to cast straight to a byte and leave a big comment beforehand explaining how it's equivalent to (byte)(c & 0xff );
    This got me wondering how it was implemented in the core java libraries though, since OutputStream has a method to write a byte that actually takes an int parameter. How does this work? Most of the lowest level OutputStream implementations seem to end up going to native to do this (understandably), so i dug out ByteArrayOutputStream. This class does optimise away the & 0xFF and is roughly
        public synchronized void write(int b) {
                �
                buf[count] = (byte)b;
                �
        }No problems with that, so writing to these babies will be fast. But then i started wondering about the methods of DataOutputStream, which is heavily used by use for serialising (a great deal of) internal data flow. Unfortunately in this class there are a lot of redundant & 0xFFs:
    public final void writeShort(int v) throws IOException {
            out.write((v >>> 8) & 0xFF);
            out.write((v >>> 0) & 0xFF);
            incCount(2);
    public final void writeInt(int v) throws IOException {
          out.write((v >>> 24) & 0xFF);
          out.write((v >>> 16) & 0xFF);
          out.write((v >>>  8) & 0xFF);
          out.write((v >>>  0) & 0xFF);
          incCount(4);
    }[The v >>> 0 seems to be optimised out at runtime and i get no execution time difference between ( v >>> 0)  & 0xff that and ( v & 0xff ) so i got no problems with that]
    which again seems ok on inspection because the code looks tidy and clean and easy to understand, but i need to hit these things very heavily so would rather they were 30% faster than easy to read. Interestingly they've taken an entirely different approach for writing out a long value:
    public final void writeLong(long v) throws IOException {
            writeBuffer[0] = (byte)(v >>> 56);
            writeBuffer[1] = (byte)(v >>> 48);
            writeBuffer[2] = (byte)(v >>> 40);
            writeBuffer[3] = (byte)(v >>> 32);
            writeBuffer[4] = (byte)(v >>> 24);
            writeBuffer[5] = (byte)(v >>> 16);
            writeBuffer[6] = (byte)(v >>>  8);
            writeBuffer[7] = (byte)(v >>>  0);
            out.write(writeBuffer, 0, 8);
            incCount(8);
    }both using a private buffer field for the writing before squirting it all out, and not bothering to mask the lower 8 bits. It seems strange that writeLong appears optimised, but writeInt and writeShort are not.
    What does everyone else think? Are there any other heavy users of DataOutputStream out there that would rather have things written faster? I guess i'm going to be writing my own version of DataOutputStream in the meantime, because we're writing so much data over these and i'm in an industry where milliseconds matter.

    To my knowledge, in your situation, the & 0xFF is not necessary. I believe that the most common use of the mask in this case is actually to treat the lower 8 bits as an unsigned integer. For example:
    int value = 65530;
    int anotherValue = value & 0xFF; // anotherValue == 250Anyway, the case space is small enough that I just brute forced your problem. Under v1.5.0_07 on Linux, (byte)i and (btye)(i & 0xFF) are definitely the same:
    for (int i=Integer.MIN_VALUE;i<Integer.MAX_VALUE;i++)
        byte a = (byte)i;
        byte b = (byte)(i & 0xFF);
        if (a!=b) System.out.println(i);
    byte a = (byte)(Integer.MAX_VALUE);
    byte b = (byte)(Integer.MAX_VALUE & 0xFF);
    if (a!=b) System.out.println(Integer.MAX_VALUE);Perhaps the & 0xFF was in response to some older bug or other behavior.

  • Attribute-Only Flag

    Guys,
            so I searched and found this thread which explains a little bit about Attribute only flag.
    https://www.sdn.sap.com/irj/scn/forums
    but I am still a little bit confused as to if I made some char. attribute only what consequences will I have to face?  I would appreciate if someone can explain it a bit with an example.
    Thanks,
    RG

    Hi ,
    An attribute of an info object cannot be made navigational if the attribute-only flag on the attribute info object has been checked.It will only behave as a display attribute and it cannot be used in design of cube ..but at infoobject level if you run a query it doesnt make  difference .
    Difference between attribute only flag,navigational and display attributes.
    regards,
    Shikha

  • How to change bit in U32 depending on state

    Hello,
    how can this be done:
    For example:
    U32_In is: 00000000000000000000000000000000 (32x 0)
    I32_Number: 4
    Bool_State. True
    Then U32_out should be 00000000000000000000000000010000
    Thanks for help
    Attachments:
    temp1.vi ‏6 KB

    That kind of operation is best done with using the Logical Shift. Connect a constant 1 to the x input, the I32 numer of bits to shift to y and you get your bit pattern output. Then if you want to change the bit in an incoming integer you have to use different boolean logic depending if you want to set or clear that bit.
    To set it you simply OR your input number with the bit pattern, to clear it you AND it with the inverse (Invert node on the Boolean Palette) of the bit pattern.
    If the shift (your number 4) is constant and does not need to be parametrized you can also replace the Logical Shift through a fixed numeric constant of in this case hexadecimal 0x10 or decimal 16.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Best practice for Logical OR pre-condition evaluation

    Greetings,
    I'm finding TS doesn't have basic features for decision making (imp) for execution. Any recommendations are welcomed and appreciated. Please see below scenario.
    I'd like to execute setup steps (custom step types) for a signal generator based upon the user selected "Test".
    To keep it simple for the signal generator let's say we have the following steps:
    Set Freq | Set PWR lvl | Set Modulation Type | Set Modulation ON/OFF | Set RF Power ON/OFF
    For User Selected Tests let's say we have Test A(0) | Test B(1) | Test C(2) (Test  A & C requires Modulation, B does not)
    Here's my issue:
    I can't get SET Freq | SET PWR lvl | Set RF Power ON/OFF to execute a pre-condition setup for evaluating Logical OR's. (i.e. locals.TestSelected ==0||1||2)
    Same for Set Modulation Type | Set Modulation ON/OFF (i.e locals.TestSelected ==0||2)
    Thanks in advance for any guidance provided.
    Chazzzmd78
    Solved!
    Go to Solution.

    Just want to clarify, there seems to be a misunderstanding about the difference between bitwise OR (i.e. the | operator) and logical OR (i.e. the || operator). Bitwise OR results in the combination of all of the bits which represent an integer stored as binary, while logical OR (i.e. what you really want in this case) results in a True, non-zero, value (usually 1) if either operand is non-zero.
    Also, the == operator has a higher precedence than either the bitwise OR or logical OR operators.
    So what this means:
    locals.TestSelected ==0||1||2
    is to give a result of True (i.e. 1) if either locals.TestSelected ==0, 1 is non-zero, or 2 is non-zero. Since 1 and 2 are always non-zero that expression will actually always result in a True value.
    Similarly, although the following will likely give you the behavior you want:
    (locals.TestSelected == 0) | (locals.TestSelected == 1) | (locals.TestSelected == 3)
    That's not really doing what you are probably thinking it does. It's actually getting the value True (i.e. 1) for each of the sub-expressions in parethesis and then bitwise OR'ing them together. Since the result for the == operand is always either 0 or 1, this ends up giving the same result as logical OR (i.e. the || operator), but what you really want in this case is logical OR and for other expressions using bitwise OR when you mean logical OR might give you incorrect results. So, you should really be using something like the following:
    Locals.TestSelected == 0 || locals.TestSelected == 1 || locals.TestSelected == 3
    The parenthesis don't really matter in this case (so can be left out, but also doesn't hurt anything so you can leave them in if you prefer) because the == operator has a higher precedence than the || operator so all of the == operations will be done first.
    Hope this helps clarify things,
    -Doug

  • 'file in use' problem

    Hello,
    I am trying to add all of my music to my iTunes library, but each time I do it, only about 5% of all of the music gets added (and it is the same 5% each time). After looking around a bit I thought that maybe the files that weren't being added were locked, so I unlocked them all and still iTunes won't add them to my library. After that, I tried manually opening each of the problematic files with iTunes by ctrl_clicking on them and selecting "open with iTunes". When I do this, I get an error stating "<file> is currently in use by another program ..."
    However, these files aren't being used by any other programs. I have tried restarting my computer, and even afterwards I get the same error. I've tried in a terminal running the cmd "lsof <file>" for several of the files and nothing is returned.
    Has anyone run into a similar problem? What should I try next?
    Thanks,

    Music is something I don't deal with, but if you download, for example, an mp3 file, will it start automatically in QuickTime?
    Several possibilities come to mind. If you're running 10.4.11, it's likely nothing done by you.
    Easy Fixes
    If you haven't shutdown your computer since placing music files on your hard disk, do so. QuickTime, iTunes, or another application that uses your files may still run part of the applications when the applications are turned off. You can see these in 'Activity Monitor' and shut them down manually, if you wish.
    If you have a laptop and your battery 'died' (at about 15% capacity), either a table in a temporary file needs erasing, or possibly a bit-sized attribute to those files 'in use' needs changing.
    If MacOSX uses tables to keep track of open files, install a good cleaning utility like 'Onyx' and erase all temporary files.
    If MacOSX uses attributes to keep track of open files, use 'list view' to open all the files in QuickTime, then shutdown your computer properly while they are open.
    One of the above should work.
    Slightly Deeper Fixes
    If not, use 'Activity Monitor' as described above: look for stray parts of audio processes still running (iTunes, I believe, had a 'quickstart' process at one time that was always running: placed by Apple in a StartUp folder.) Apple introduced with 10.4 a 'new' method for starting & stopping 'daemons', processes that always run (like that just described). A badly programmed one may not have stopped. You can stop it manually.
    If Apple uses attributes to label a file open, move your music files to a new volume (CDs, DVD+RW, iPod, &c), turn automatic running of files off, shutdown your computer, start it up, check 'Activity Monitor' for any unwanted audio files, then move your music back.
    Best of luck.
    Bruce

  • OIM 11g R2  - Issue while removing child data

    Hi,
    We are facing the following issue when we try to submit a "Modify Account" request by removing all the child form data.The issue is there only if the child form contains attributes which are of type integer ,date etc (non-string).
    Steps followed
    ==========
    1.Create a Parent process form with an attribute ( For e.g Firstname)
    2.Create a Child process form with 3 attributes ( EmpID --> Integer , Date of Joining --> Date, Address --> String )
    3.Created a resource object
    4.Created a process definition and attached this resource object and parent form
    5.Created some process tasks (Create user,Child Data insert etc) and attached tcCompleteTask
    6.Provision this resource object to an user with one entry for child data.Since tcCompleteTask is attached,the status of the account now is "Provisioned"
    7.Click on "Modify Account" button and remove the child entry (so that there is no child entry presents ) and click on submit
    8.Getting an error in the UI saying "IAM-2050061:Type mismatch for the attribute EmpID.The type passed is string but the corresponding type in dataset is integer".
    Any idea onhow to solve this issue?.Thanks.

    This could be a bug. Try raising an SR. Also more logs if you can.

  • What are the settings for exporting the best possible quality movies?

    I'm trying to export movies using imove 11, there are a ton of export setting, im wondering which are the best for exporting top quality movies? assuming file size doesnt matter. 

    ok so heres what the movie inspector says:
    Format: Photo- JPEG, 1024 x 576, Million Linear PCM, 24 bit little-endian signed integer, 2channels, 44100 Hz
    FPS: 17.80
    Data Rate:9.63 mbit/s
    Current Size:1024 x 576 pixels (actual)
    So do i want to somehow duplicate these settings?
    The other thing I was thinking about was opening the file in Quicktime and using the "trim" feature to edit it down that way, although its not as neat.  Would this preserve the quality? And would it get rid of the excess footage (which is what I want)? Or would it like keep that footage attached to the file somehow?
    Thanks

  • Time Constraint for Boundary Events

    Hi experts.
    I am pretty new to BPM (NetWeaver Developer Studio 7.1 SP04 BPM SP05) and I am just making a test process to try to get the time constraint concept right. So far I have three tasks in my process, very much like a textbook example. In my first task I have an input field in which you're supposed to type in your name, which is then saved to the context and triggers the second task when completed. That second task is nothing but a screen displaying "You successfully generated a second task, (with the name you entered in the first task here)."
    That works fine so far. Then there's the third task, which is linked to a boundary event on the second event with a start deadline which is critical exception. Here's the idea... You complete the first task (name input), then you fail to start the second task within a certain amount of time defined by an expression, so the process should go to the third task because of the deadline. By the way, it works fine when using a default time, so I must be doing something right so far, the problem is when trying to dynamically change the time with the expression.
    What I tried was to define a context attribute type time and date (I tried both) and assigning a time (current time plus whatever amount of minutes) to that attribute via Java coding at the time you click on the button which completes the task, then use that context element in the expression, but that didn't work. I also tried to make that context attribute an integer and set it to whatever amount of minutes I want to use for the deadline, then in the expression get the current time and add that afore mentioned integer to its minutes. That didn't work either.
    Please help, I have seriously done some research, and no success yet.
    Edited by: david.palafox on Jul 1, 2010 5:54 PM

    Figured it out.

  • Need to setup Premiere CS6 sequence for two file types with different field orders

    I have a client who has shot video for me using two cameras, one camera was set to progressive, and the other to interlaced upper field first. I need to use both file types in the edit and have been struggling to set up the sequence to get the best look for the end product, a DVD. I have several videos to do for her that were all shot in the same way, so I need a solution!
    I would appreciate help figuring out how to set up this work flow from beginning to end.
    Should I convert one of the files from the beginning so they match field orders before going into a sequence? Or do I just need to do some adjusting of the files once they are in the sequence? Is it just as simple as changing the transcode settings to favor the upper field first? I'm definitely having issues once the video is transcoded in Encore and you can see a lot of jagged edges and lines especially during movement. My client isn't happy and I've tried several workarounds, but to no avail.
    Here are the two file types I have:
    File extension: .MOV
    H.264, 1920x1080, Linear PCM, 16 bit little-endian signed integer, 48000 Hz, stereo
    FPS 29.97
    No Fields: Progressive Scan
    File extension: .MTS (my Mac finder can't read these files, but they are read in Premiere)
    Image Size: 1920 x 1080
    Frame Rate: 29.97
    Source Audio Format: 48000 Hz - compressed - 6 channels
    Pixel Aspect Ratio: 1.0
    Upper Field First
    I am using Adobe Premiere CS 6.0.2
    Encore 6.0.1
    Media Encoder 6.0.2.81
    I am running it on an iMac 27-inch, Mid 2011
    with Mac OS X Lion 10.7.5
    Processor  3.4 GHz Intel Core i7
    Graphics  AMD Radeon HD 6970M 1024 MB
    I've just been setting the sequence to match the .MOV files since they look much better than the .MTS files. I've done the opposite as well, setting the sequence to match the .MTS files and it doesn't seem to help. I've also changed the field order of the files once they are in the sequence by changing the field options and have tried converting the .MTS files in the Media Encoder, but nothing I've done has worked.
    Any help would be so appreciated! The client I have is a photographer, so she wasn't aware of this issue when she first shot these videos. So I have 10 videos with these issues I need to get back to her, hopefully issue free! I'm struggling as an editor because my last job I was using FCP and was working with videographers who knew what they were doing, so I've never faced such problems before. Plus I'm new to the Adobe software. Not a good combination. Please forgive me if I didn't give all the information you need. I will happily respond with whatever more information you may need to help me out!
    ~KTrouper

    I wonder if you could do your edit ignoring any visual issues of the interlaced footage but keeping the different sources separate ( checkerboard edit Vid 1/ Vid 2 )
    Lock it down then export the interlaced part of the edit as a Digital Intermediate.
    Maybe Export the other source as well to the same codec. DI
    Bring them back together in a New Sequence. You wold have to deal with the black spacing.

  • Header Error when importing Wav files

    The problem I'm experiencing is that Premiere CS6 will not import my Wav audio files. When I try to import them it gives the following message and fails to import the file:
    "The file cannot be opened because of a header error".
    The original audio file, which opened happily in FCP 7 (I'm migrating the project to Premiere from a previous Final Cut Pro project) is in the following format (as described in the Movie Inspector of QuickTime Player):
    Linear PCM
    16 bit little-endian signed integer
    2 channels
    48000 Hz
    Although the files won't open in Premiere, they will open in Adobe Audition, which gives their bit depth as 32 (it also describes the original format as "16 bit little-endian" - I confess that this technical side of sound files is unclear to me).
    Any suggestions of how I can coax Premiere into importing and opening these files?
    Thanks, Andrew

    Perhaps some of the suggestions in this thread: http://forums.adobe.com/message/4713932#4713932 will be helpful?
    Good luck,
    Hunt

  • FCP 7 won't import File

    Need Help: I'm recording with a Canon XHA1s camcorder in HDTV/24FPS to a Focus FS-CF Pro with CF Card..When trying to import into FCP 7.  I keep getting an error message. "File Error: 1 File(s) recognized, 0 access denied, 1 unknown."
    Open file in Quicktime and here the specs are:
    Format: HDV 1080p24, 1440 x 1080 (1888 x 1062)
    Linear PCM, 16 bit big-endian signed integer, 2 channels, 48000 Hz
    FPS: 23.98
    Data Size: 73.4 MB
    Data Rate: 26.53 Mbit/s
    Tried trashing FCP preferences
    Any help would be greatly appreciated: Hopefully I won't have to convert file each and every time

    This time I Tried importing contents of CF Card while in device and also tried copying contents to hard drive and same error message.."General Error"
    Before I just tried importing the .mov file and received  the other error message "File Error: 1 File(s) recognized, 0 access denied, 1 unknown."
    Open in Quick time and click Open Inspector and this is what the results are:
    Format: HDV 1080p24, 1440 x 1080 (1888 x 1062)
    Linear PCM, 16 bit big-endian signed integer, 2 channels, 48000 Hz
    FPS: 23.98
    Data Size: 73.4 MB
    Data Rate: 26.53 Mbit/s

Maybe you are looking for

  • How can I create a zip file with LabVIEW?

    I would like to compress my data (ASCII format) to an archive. I use LVZlib.vi to compress and decompress data but I would like to be able to read the output file with a software archiver such as PowerArchiver/WinZIP. Someone knows how I can create a

  • Cross-currency clearing problem

    Hi, Foreign cross-currency clearing btw USD & EUR is a business requirement for us (local currency is TRY). In order to do this right we maintain exchange rate table for cross currency rates btw USD & EUR. However in clearing transaction code (F-44),

  • Cap 3 Won't Launch

    Out of nowhere, I received the following error when trying to launch Captivate 3: "The application failed to initialize properly (0xc00000006). Click on OK to terminate the application." This never happened with Cap 2 and has not happened during the

  • Computer dying when it still has battery life?

    I don't know what's going on, my laptop is just shutting off without any warning and there is still about half of the battery life left. I will just be searching the web or chatting on AIM and it just shuts down. Any explanation for this or something

  • Latest iMac: USB power requirements unclear, Microsoft USB game pad stopped working

    Hello, I am sorry that the cut and paste information is in German. I am a long time Apple iMac user and used the Game Pad since years with no USB power issues. Now, I have just received my late 2014 iMac with Maverick OS X. Hardware-Übersicht:   Mode