Possible bug with SCC / closed captions?

Hi,
I just want to post this so that anyone else that runs into the same problem I did might be helped...
Like a lot of other people, I was having trouble getting Encore to properly encode closed captions. I tried over and over with no success. I tried placing the SCC in field 1, field 2, both at the same time, etc... I tried with and without re-encoding the already compliant MPEG-2 file being used as the source. Still no luck. No matter what I did I could not get Encore DVD to properly encode my SCC file on the new DVD.
However, I did have one clue that eventually helped me figure out a workaround. Although I was not seeing the closed captions from my SCC file, I was seeing the original closed captions from the original VHS videotape my source file was captured from (I should note that even then, I wasn't seeing the original closed captions on standalone DVD players...I could only see them with PowerDVD...) So, I began to ask myself why Encore DVD was not overwriting the original line-21 captions with my new SCC file. It was as if Encore DVD was completely ignoring the new SCC file.
Well, to make a long story short, I found that I could get the new captions to work perfectly if I removed the old captions from the original MPEG-2 source file first. Apparently, Encore DVD will not overwrite existing line-21 data (a bug, I'm guessing...) even if the user properly loads the new SCC file.
For anyone who is having this problem and wants to try my solution, download ReStream and remove the user data from the existing MPEG-2 file. The new file without user data has now worked for me every time I have tried it. Actually, to be honest, I'm not really sure if this bug pops up only when existing captions are detected or if just any user data will trigger it. So, anyone who is having trouble getting SCC to work with Encore DVD and successfully uses this workaround, post back here and maybe Adobe will do something about it.
Thanks.

Ok well I tested it by going VCR->DV converter->iMovie->iDVD, and the closed captions were lost at some point. The tape does have closed captions when played in the VCR, and I know my DVD player displays closed captions properly (I tested a commercial disc both in the Mac and in a standalone DVD player and those showed captions), but the DVD I created doesn't display closed captions either in the Mac DVD Player or the standalone unit.
So...anyone think maybe importing into Final Cut Pro and burning with DVD Studio Pro would work better for this than iMovie? I imagine there would be no difference (since iDVD uses the same Compressor app as DVDSP).
So I guess I'm stuck. At this point I can't even use the DVD/VCR dub machine since it won't allow dubbing of copy-protected tapes (even though this tape will likely never see a DVD release and it's crappy VHS quality anyway and it's just for my own personal use as a backup)...any suggestions?

Similar Messages

  • Can someone confirm a possible bug with Universal Access?

    Can someone confirm a possible bug with Universal Access?
    I have a Mac Pro 3,1, 10.7.1 but if you could confirm or not this possible bug with any model.
    In Energy Saver preference pane:
    Set Mac to never sleep.
    Set Display Sleep to ~2 minutes.
    In Desktop & Screen Saver:
    Set screen saver to start at ~1 minutes.
    In Universal Access:
    Check Enable access for assistive devices.
    Check radio button Zoom to On.
    Zoom in window not checked.
    Confirm that Zoom works by pressing:
    ⌥⌘= (option, command, =).
    Set screen back to normal by pressing ⌥⌘-.
    Let screen sleep after screen saver starts.
    Wake screen and see if ⌥⌘= still works.
    Thanks … Ken

    Other than the time intervals (smallest Screen Saver kick-in is 3 minutes), it works fine for me - at least I can still zoom in/out after waking the display.
    Tested on two different MacBook Pro models in 10.7.1

  • ?Where do I find films with Subtitles (Closed Captions) on itunes store

    Hi...
    Being hard of hearing, I have found that there is a limited choice of films on itunes store with subtitles (closed captions)!!
    Can anyone tell me how I find films with subtitles without having to click on every thumb nail and also can Apple explain why not subtitles for all films that are on offer.
    Thanks
    Fired

    On the iTunes Store home page, use the quick links section at the top right and click on Power Search. Then select Movies and check the "search for movies that contain closed captioning".

  • Is this possible to put a Closed Captioned in small movie file

    I ponder if this is doable, attainable and workable to do a small video file that a colleague of mine wanted me to put in a closed captioned into small movie - less than 2 to 4 minutes (three tiny small movie files). I try to explain that I don't think it is doable, attainable and workable to create a closed captioned into small movie file with Final Cut Pro X - especially with 320 in width by 240 pixel in length. My colleague insisted that I do it anyway.
    I ask my colleague that if he has original movie file that I can work, so I can export the movie file that is larger than 320 by 240 pixel. He said no.
    I told him that how is it possible for me to work with closed captioned into three tiny movie files for presentation-training purpose only.
    My gut feeling tells me that it won't do any good, especially with TINY movie file with only 320 by 240. I told my colleague that it is MUCH easier to work with original file that is much larger than what he gave me. I mean, it is easier to edit and put closed captioned or whatever in any video footage.. whenever I am done with it, then export the finished file with closed captioned in it. I also explain to my colleague that if I work with file that is already exported movie file.. then I edit and put closed captioned in that exported file... then export it out of Final Cut Pro X, the quality would be considerable degradation.
    Unfortunately, my colleague insisted that I proceed with the project. I hesistate that I'd waste my time for achieving nothing with no measureable result because my gut feeling tells me that my perspective is correct, no?
    Am I correct? Is it worth it? Otherwise I'd tell my colleague that my answer will be a resounding no.
    Please advise. Thanks!

    You are right that placing text subtitles on such a small size video is likely not great.
    By default, FCP X does not support such a small video size; you'd have to blow it up to a standard size and then scale the result back down.But you can use a workaround to do all the work on 320x240 (see this web page:
    http://library.creativecow.net/articles/payton_t/FCPX_Custom-Resolution-Timeline s/video-tutorial). That would lessen the losses.
    Still, definitely not great.

  • Converting VHS to DVD with preserved closed captions

    Can this be done via DV capture?
    I'm trying to convert some of my old out of print VHS tapes to DVD, since they are obscure enough to probably never see an official DVD release. I figured firewire/DV would be perfect for the job because...well, my Mac already has that built-in. My intended workflow is to capture via DV using an ADS Pyro A/V Link analog->DV converter box (see tip below if you're trying something similar by the way).
    Anyway, being the quasi-perfectionist that I am, I'd like to make as close a copy to the original as possible, preserving the closed captions. In researching this I've found that this data is stored in "line 21" which is normally not a viewable portion of the video signal, rather like metadata. I have read that DV does support this data in the "VAUX" data area, however before I even begin, I am concerned that any step of my intended workflow might not preserve this data (reencoding in the converter box, transferring into iMovie/FCP, reencoding onto DVD). I presume that any amount of editing to the captured video will hose the captions if they are preserved, but I'd only shorten the black padding at the beginning and ending of the program if anything, which I can't imagine would scramble it too bad.
    I have read many suggestions of just manually transposing the CC text to subtitles instead, however since the DVD spec does support true closed captions, I figure it's gotta be possible somehow.
    I'd like to be able to do this without purchasing a PCI capture card. And I'd also like to be able to do this without spending $6000 on a certain Mac captioning app (a ridiculous price for functionality which in my opinion should be free). I've seen some pretty cheap VCR+DVD combo standalone units on the market, but I'd like to think my Mac, as expensive as it was, will suffice.
    Am I asking too much? Should I just give it a try to see if everything magically works? And if my current setup is not up to this task, what sort of setup would I need to realize my goal?
    (Tip: By the way, if anyone is trying to convert VHS to DVD with a similar setup, be warned that the marketers of such analog->DV converter boxes generally don't mention that you'll also need a time base corrector (TBC) to do anything useful with less-than-perfect analog source video; I've found that without such a device, the video tends to drop frames like mad on rough spots of the source tape [I'm talking drops measured in seconds]. Too bad TBCs cost more than the converter box itself usually. Odd that those VCR+DVD combo boxes ostensibly must have a built-in TBC by definition, and yet often are cheaper than a standalone TBC...)
    Power Mac G4 dual 867 Mirrored Drive Doors   Mac OS X (10.4.4)  

    Ok well I tested it by going VCR->DV converter->iMovie->iDVD, and the closed captions were lost at some point. The tape does have closed captions when played in the VCR, and I know my DVD player displays closed captions properly (I tested a commercial disc both in the Mac and in a standalone DVD player and those showed captions), but the DVD I created doesn't display closed captions either in the Mac DVD Player or the standalone unit.
    So...anyone think maybe importing into Final Cut Pro and burning with DVD Studio Pro would work better for this than iMovie? I imagine there would be no difference (since iDVD uses the same Compressor app as DVDSP).
    So I guess I'm stuck. At this point I can't even use the DVD/VCR dub machine since it won't allow dubbing of copy-protected tapes (even though this tape will likely never see a DVD release and it's crappy VHS quality anyway and it's just for my own personal use as a backup)...any suggestions?

  • Possible Bug with Drag-and-Drop Being Published via HTML5 - Getting "Undefined" Error When Dragging Object

    Hello,
    I came up with a way to use drag-and-drop interactions that will take advantage of file input so that I may create a drag-and-drop interaction that uses one draggable object over and over allowing multiple scoring/tracking possibilities.  Example use...is having the draggable object be dynamic in that it randomly changes its text so that a learner can drag a term it's possible classification.........thus allowing the possibility of having many terms easily loaded without having to redo a drag-and-drop interaction for each needed terms/classifications updates/changes.
    My Issue: When using a variable to represent the text for a draggable Smart Shape object, I'm getting the error message "undefined" when, clicking/pressing on the object, as well as during the drag of the object. This issue occurs when publishing the project in an HTML5 format.  Flash interestingly enough seems to work perfect...but we are not interested in publishing via Flash any longer.
    To better help you explore this error message, I've set up a test project so that you can see when and how the "undefined" message shows up during a drag-and-drop interaction.  I've also included the Captivate 8 project file used to make the exploration project I'm sharing in this post.
    Link to Captivate project I created for you all to explore "undefined" error message": http://iti.cscc.edu/drag_and_drop_bug/
    Link to this Captivate 8 Project file: http://iti.cscc.edu/drag_and_drop_bug.cptx
    It's pretty interesting how things react in this demo, please try the following actions to see some interesting happenings:
    Drag the Yellow (or variable drag box) to the drag target.
    Drag Black Hello square to Drag target and click undo or reset - watch the undefined message come up on the Yellow (or variable drag box).
    Drag the Yellow (or variable drag box) to the drag target and then use the undo or reset.
    Move both draggable boxes to the drag target and use the undo and reset buttons...
    Anyhow, I know you all are sharp and will run the demo through its paces.
    I'd really be very honored if anyone help me figure out how I could (when publishing out to HTML5) no longer have the "undefined" error message show up when using drag-and-drop with a variable for shape text. This technique has been well received at the college I work at...and I have many future project requests for using such an idea on a variety of similar interactions. I'd love see a solution or see if this might be a bug Adobe may be able to fix!
    I tried to find a solution to the issue documented here for quite some time, but I was not able to find anyone with this problem much less attempting the idea I'm sharing in the help request -  save the darn "undefined" message that comes up!
    Many thanks in advance for any help and/or direction that you all may be able to provide,
    Paul

    Hello,
    I just wanted to supply a minor update related to my drag-and-drop question/issue stated above:
    I did another test using Captivate 7, and found that the undefined error (publishing as HTML5) does not appear and the variable data remains visible - except the variable data turns very small and does not honor any font size related settings.
    I did go ahead and submit this to Adobe as a possible bug today.
    Thanks again for any help related to this issue.  If the issued documented above is solved, it will allow many amazing things to be done using Captivate's drag-and-drop for both regular type projects as well as interaction development for iBooks! 
    Matter of fact if this issue gets fixed, I'll publish a Blog entry (or video) on way's I've used Captivate's drag-and-drop to create dynamic learning activities for Higher Ed. and for use in iBooks.
    ~ Paul

  • Best way to create an ".scc" closed-caption file?

    *I merely need to create an ".scc" file. I do NOT need to embed it myself.*
    My project is a 98-minute movie in English that needs closed captioning. I'll be delivering the .scc file to a post-production house who will make the final merger of .scc file to the already-created tape. So MY QUESTION IS what software options do I have?
    I hear about MacCaption. I try surfing the web to find a purchase page but I only find Demos or strangely cheap prices (like $5.00). I read all these posts that hint at its high price. Maybe I'm totally missing an obvious link but can someone tell me what is a good cheap program for creating ".scc" files for FCP? And if MacCaption is the best choice, what's the best way to download it?
    Shanked

    Michael,
    I've been to the link you pointed out, for MacCaption. I must be missing something but I cannot find any price anywhere on that site. I emailed them and have yet to hear a direct quote.
    As for Annotation Edit, thanks. That's a good tip. Seems like it's a steep $300 US, but that's better than the $980 I'd have to pay a lab for the service.
    If anyone else knows of a cheap alternative (for this one-time usage), please LET ME KNOW!
    thanks,
    Shanked

  • Possible bug with iTunes 11 ?? (with Smart Playlists)

    Hi folks
    New to Apple Support, but after upgrading to iTunes 11 earlier today (on my Mac Mini) I've discovered a potential bug / difference in the way it operates compared to earlier versions. Can someone else try something similar and see if they get the same result - I think I read somewhere that v11 is not available on Windows yet, so I cant compare what happens there
    I've imported all our CD's into iTunes, and we've set up several Smart Playlists (SP). Using the Rating setting for the songs, we can break them up into groups, eg
    Rating 0 = not yet processed
    Rating 1 = not interested in listening to again
    Rating 2 = kids songs (for our children)
    Rating 3 = christmas songs
    Rating 4 = songs i like, but my wife probably wouldnt
    Rating 5 = songs we both like - good for background music etc
    Using Home Sharing to our iPad's rocks !!
    Now, onto the bug.
    Using the SP that has just songs with Rating 0, I could play any song, set the Rating to whatever, and naturally once set, that disappears from the SP
    In all earlier versions of iTunes, playback would continue with the next song, so I could set that Rating, etc etc. Worked really well to churn through a chunk of songs in say 15 minute blocks
    With iTunes v11, playback stops as soon as I set the Rating.
    How can you help ?????????? Set up a smart playlist with whatever criteria you like - make sure you have a number of songs returned and ensure Live Updating is set, have a song playing, and make that song no longer valid for that SP. Anyone doing this in earlier versions of iTunes should have the next song begin, and if this is a bug, then those using iTunes 11 will have playback stop
    Sorry for the long post, but in order to determine a potential bug, you need to describe the situation and how to test it.
    Thanks for reading
    PS I'm on a 2010 Mac Mini with OSX v10.7.x (whatever the current release of that is) and just upgraded to iTunes 11

    Soo, maybe it isnt possible bug, but the way Apple have changed iTunes when going to v11. Stooopid
    Anyway, found this link about downgrading to an earlier version. I've just completed it and found one or two "errors" in the method, which I'll detail below
    http://www.emacconsulting.com/apple/itunes/downgrade-itunes-11-to-itunes-10-7/
    In the latter part of the instructions
    11) Open your iTunes Music Folder.
    If you never moved your iTunes folder it’s located here:
    Your HD/Your User/Music/iTunes
    Or go to the Finder type:  Command + Shift + G
    Paste this into the the dialog:  ~/Music/iTunes
    If you moved it to another hard drive, you will know where to locate your iTunes folder.
    12) Open the “Previous iTunes Libraries” folder.
    13) Find the most recent copy of the “iTunes Library 2012-xx-xx.itl” file.
    Normally it will the last file at the bottom of the list.
    14) Drag a copy of the file into the iTunes folder.
    15) Delete the “iTunes Library” file.
    16) Change the name of the “iTunes Library 2012-xx-xx.itl” to ”iTunes Library” with no .itl extension.
    In #11, I simply went to "My HD"/Users/"My User"/Music/iTunes
    Copied the latest .itl and moved it up a directory level
    The old file in #15 is called "iTunes Library.itl" - which I renamed, and renamed the copied version back to "iTunes Library.itl" = though I do have extensions showing, some people may not and hence wont see the .itl
    Anyway all is fixed in my world, and when I launched v10.7, it asked me if I wanted to upgrade to v11 - I said No and not to prompt me again. Playcount issue is resulved, as is changing SmartList criteria with playback continuing
    Apple - please correct these bugs before releasing any new versions of iTunes... you've made a very large number of people unhappy

  • Possible bug with Triggers tab

    Hi there,
    I'm using 1.0.0.12.15 and think there is a bug with the triggers tab. When I navigate to my table (which has one trigger on it), and then click on the Triggers tab, the trigger shows up multiple times. It's probably not a coincidence that it shows up the same number of times that there are columns :)
    Looks like a missing join condition somewhere.
    Hope this helps

    Tracked this one down too...
    SQL Developer is getting the triggers like this:
    Select dt.trigger_NAME, dt.trigger_type, dt.triggering_Event, dt.status, do.object_id , do.owner sdev_link_owner, dt.trigger_NAME sdev_link_name,'TRIGGER' sdev_link_type
    from all_triggers dt, all_objects do
    where do.owner = :OBJECT_OWNER
    and dt.owner = :OBJECT_OWNER
    and dt.trigger_name = do.object_name
    and dt.table_name = :OBJECT_NAME
    However, we got other objects (mainly tables) with the same name as the trigger. Not specifying the object type will identify them the same way as the trigger, resulting them all to be included in the select!
    Adding "and do.object_type = 'TRIGGER'" will solve the problem.
    K.

  • QT file with embedded closed captioning created in Premiere converted to MPEG2

    Having successfully added closed captioning to a half hour show, we now need to convert it to MPEG2 file. What is a good program to accomplish this (the cc must be embedded).  I tried Sorensen, but it just locks up. Any help is appreciated.

    Hello, You could try MacCaption / CaptionMaker. PPRO embeds to MOV and MXF. Good luck! C

  • Optimistic Locking - Possible bug with Weblogic

    After extensive testing of a j2ee application Im involved with, it would appear their exists a problem with using Weblogic's Optimistic Concurrency (OL) mechanism.
    The exact problem is as follows:
    The ejbCreate and ejbRemove methods of a particular entity bean are as follows:
    public abstract class ProductBean implements javax.ejb.EntityBean {
    ejbCreate(){
    FolderEntityHome folderEH = FolderComponent.getFolderEntityHome();
    folderEH.create(getId());
    ejbRemove(){
    FolderEntityHome folderEH = FolderComponent.getFolderEntityHome();
    try {
    FolderBean folderEH.findByProductId(getId());
    catch(InvalidAccessRightsException iare)
    throw new RemoveException();
    Previously before OL was added when a RemoveException was thrown, this would cause the ejbRemove exception to fail, thus both the product and folder would still exist.
    After adding OL, when an InvalidAccessRightsException occurs giving rise to a RemoveException being thrown, weblogic simply ignores the RemoveException and deletes the Product even though the Folder could not be deleted. This causes system errors when users try to access the folder which contains a link to a product which no longer exists!
    Is anyone aware of this particular problem? Is it indeed a bug with Weblogic? For clarity, I believe I am using version 8.1 and the way in which I have implemented OL is to use an additional version column in the underlying tables for all entity beans.

    In case anyone's interested, it appears from further testing that the problem I've been having in the way the RemoveException behaves is down to the difference in which version 6.0 treats this exception compared to version 8.1!
    In version 6.0, if you threw a RemoteException at any point in the ejbRemove(), the entity would not be removed!
    In version 8.1, something wierd happens. If a RemoteException() is thrown in the ejbRemove() and sometime during the same transaction at the point of commit, the entity on which the exception is thrown is attempted to be accessed (through a finder), then the entity continues to be deleted! If on the other hand, a RemoveException is thrown and no access/modification is attempted on that entity within the same transaction, then at the point of commit, the entity is not removed!
    Seems this is indeed a problem which needs to be addressed in future releases.
    Message was edited by:
    rotan_imretxe
    Message was edited by:
    rotan_imretxe

  • Possible bug with replace on clobs?

    I couldn't find this documented anywhere, and wanted to check if I had data corruption or if there indeed is a bug with replace on long clobs.
    Best I can figure, if you are replacing before the 32768 border and a previous replace in that clob moves the new location to be after 32768, then your clob gets clobbered in that area.
    I'd like to know if this is a verifiable bug so that I feel better about having written my own replace using instr/substr.
    Oracle 10g (10.2.0.1.0)
    Test procedure:
    ======================================
    declare
    vclob clob;
    tempc1 clob;
    tempc2 clob;
    pos number;
    ch char(1);
    begin
    vclob := rpad('*', 32749, '*') || '****12345./~\.12345*' || rpad('*', 10000, '*');
    for vi in 1..5 loop
    ch := to_char(vi);
    tempc1 := vclob;
    pos := instr(tempc1, ch);
    while (pos > 0) loop
    tempc1 := substr(tempc1, 1, pos-1) || 'BUGS' || substr(tempc1, pos+1);
    pos := instr(tempc1, ch, pos+1);
    end loop;
    tempc2 := vclob;
    pos := instr(tempc2, ch);
    while (pos > 0) loop
    tempc2 := substr(tempc2, 1, pos-1) || 'BUGGY' || substr(tempc2, pos+1);
    pos := instr(tempc2, ch, pos+1);
    end loop;
    dbms_output.put_line('Replace ' || ch || ' at ' ||
    instr(vclob, ch) || ' and ' ||
    instr(vclob, ch, instr(vclob, ch)+1));
    dbms_output.put_line(': 32750 32760 32770 32780');
    dbms_output.put_line(': 67890123456789012345678901234567890');
    dbms_output.put_line('Original: ' || substr(vclob, 32746, 50));
    dbms_output.put_line(ch || '->BUGS : ' ||
    substr(replace(vclob, ch, 'BUGS'), 32746, 50));
    dbms_output.put_line('Correct : ' || substr(tempc1, 32746, 50));
    dbms_output.put_line(ch || '->BUGGY: ' ||
    substr(replace(vclob, ch, 'BUGGY'), 32746, 50));
    dbms_output.put_line('Correct : ' || substr(tempc2, 32746, 50));
    end loop;
    end;
    /======================================
    Output: (changed slightly for formatting)
    ======================================
    Replace 1 at 32754 and 32764
    : _______ 32750 ___ 32760 ___ 32770 ___ 32780
    : _______ 67890123456789012345678901234567890
    Original: ********12345./~\.12345***************************
    1->BUGS : ********BUGS2345./~\.BUGS2345*********************
    Correct : ********BUGS2345./~\.BUGS2345*********************
    1->BUGGY: ********BUGGY2345./~\.BUGGY2345*******************
    Correct : ********BUGGY2345./~\.BUGGY2345*******************
    Replace 2 at 32755 and 32765
    : _______ 32750 ___ 32760 ___ 32770 ___ 32780
    : _______ 67890123456789012345678901234567890
    Original: ********12345./~\.12345***************************
    2->BUGS : ********1BUGS345./~\.1BUGS345*********************
    Correct : ********1BUGS345./~\.1BUGS345*********************
    2->BUGGY: ********1BUGGY345./~\.¿¿¿5************************
    Correct : ********1BUGGY345./~\.1BUGGY345*******************
    Replace 3 at 32756 and 32766
    : _______ 32750 ___ 32760 ___ 32770 ___ 32780
    : _______ 67890123456789012345678901234567890
    Original: ********12345./~\.12345***************************
    3->BUGS : ********12BUGS45./~\.1¿¿5*************************
    Correct : ********12BUGS45./~\.12BUGS45*********************
    3->BUGGY: ********12BUGGY45./~\.¿¿¿5************************
    Correct : ********12BUGGY45./~\.12BUGGY45*******************
    Replace 4 at 32757 and 32767
    : _______ 32750 ___ 32760 ___ 32770 ___ 32780
    : _______ 67890123456789012345678901234567890
    Original: ********12345./~\.12345***************************
    4->BUGS : ********123BUGS5./~\.1¿¿5*************************
    Correct : ********123BUGS5./~\.123BUGS5*********************
    4->BUGGY: ********123BUGGY5./~\.¿¿¿5************************
    Correct : ********123BUGGY5./~\.123BUGGY5*******************
    Replace 5 at 32758 and 32768
    : _______ 32750 ___ 32760 ___ 32770 ___ 32780
    : _______ 67890123456789012345678901234567890
    Original: ********12345./~\.12345***************************
    5->BUGS : ********1234BUGS./~\.1234BUGS*********************
    Correct : ********1234BUGS./~\.1234BUGS*********************
    5->BUGGY: ********1234BUGGY./~\.1234BUGGY*******************
    Correct : ********1234BUGGY./~\.1234BUGGY*******************======================================

    Correct me if I'm wrong. What this lines does (if there isn't a space between the two single-quotes) is removing the string represented by xmlnsVal from the string xmlDoc. I've been using this method in some situations.
    But I don't know why it won't work either. However, isn't it necessary to do conversion from CLOB to varchar2 before calling replace? Maybe the implicit conversion isn't so reliable. I've seen someone did the following:
    -- clobvar is CLOB
    -- stringvar is varchar2(4000)
    stringvar := cast(clobvar as varchar2(4000));      -- not testedAfter that you can use stringvar in your replace function.
    Or alternately, if exists in 9i, you can try the function regexp_replace() instead. Good luck.

  • Possible bug  with af:selectOneChoice (Server Exception during PPR, #1)

    Hi,
    I have a big problem and it goes like :
    I have a master-detail form (two very simple View Objects linked by a view link, usual stuff...) and I use popup windows for adding new detail records .
    On the popup window for inserting new detail records I have a return ('Cancel') button (with the standard fuctionality of giving up the inserting, closing popup etc..)
    In the same popup, I have some LOV-s as af:selectOneChoice.
    Everything works fine, as expected, except in the case when there are no existing detail records, and user tries to insert the first detail record
    (by calling CreateInsert operation), and then decides to cancel operation by clicking the Cancel button.
    Then, NullPointerException raises with following stackTrace:
    P.S. We are discovered that the problem is in the af:selectOneChoice, when there are no such one component in the popup,
    all works without problems. The problem raises in a lot of JSF pages which contains af:selectOneChoice
    So, stackTrace is:
    [2008-04-03T12:16:47.773+02:00] [adfinternal] [ERROR] [] [view.faces.config.rich.RegistrationConfigurator] [tid: 13] [ecid: 192.168.67.109:9382:1207217807679:36,0] [APP: current-workspace-app] Server Exception during PPR, #1[[
    java.lang.NullPointerException
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding$1.size(FacesCtrlListBinding.java:115)
         at java.util.AbstractList$Itr.hasNext(AbstractList.java:416)
         at oracle.adfinternal.view.faces.renderkit.rich.SelectItemUtils.addSelectItems(SelectItemUtils.java:206)
         at oracle.adfinternal.view.faces.renderkit.rich.SelectItemUtils.getSelectItems(SelectItemUtils.java:77)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleSelectBaseRenderer.getSelectItems(SimpleSelectBaseRenderer.java:239)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleSelectBaseRenderer._renderContent(SimpleSelectBaseRenderer.java:192)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleSelectBaseRenderer.renderNonElementContent(SimpleSelectBaseRenderer.java:100)
         at oracle.adfinternal.view.faces.renderkit.rich.FormInputRenderer.encodeAllAsNonElement(FormInputRenderer.java:241)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleSelectOneChoiceRenderer.encodeAllAsNonElement(SimpleSelectOneChoiceRenderer.java:204)
         at oracle.adfinternal.view.faces.renderkit.rich.FormElementRenderer.encodeAll(FormElementRenderer.java:129)
         at oracle.adf.view.rich.render.RichRenderer.delegateRenderer(RichRenderer.java:846)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.renderFieldCellContents(LabeledInputRenderer.java:153)
         at oracle.adfinternal.view.faces.renderkit.rich.LabelLayoutRenderer.renderFieldCell(LabelLayoutRenderer.java:495)
         at oracle.adfinternal.view.faces.renderkit.rich.LabelLayoutRenderer.encodeAll(LabelLayoutRenderer.java:299)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.encodeAll(LabeledInputRenderer.java:140)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:815)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:208)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:733)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:287)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeFormItem(PanelFormLayoutRenderer.java:958)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeFormColumns(PanelFormLayoutRenderer.java:831)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeChildren(PanelFormLayoutRenderer.java:326)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer.encodeAll(PanelFormLayoutRenderer.java:195)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:815)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:208)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:733)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:287)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:304)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelWindowRenderer.encodeContent(PanelWindowRenderer.java:269)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelWindowRenderer.encodeAll(PanelWindowRenderer.java:190)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:815)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:208)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:733)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:287)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:304)
         at oracle.adfinternal.view.faces.renderkit.rich.PopupRenderer.encodeAll(PopupRenderer.java:225)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:815)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:208)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:733)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:287)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:304)
         at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:136)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:815)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:208)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:733)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:287)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:304)
         at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:374)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:815)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:208)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:733)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive(UIXComponentBase.java:1271)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeAll(UIXComponentBase.java:753)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
         at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:244)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:175)
         at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:178)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:174)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:619)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:241)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:201)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)If there are at least one detail record, all works as expected
    Any idea why this happens ? Sounds like a u bug to me....

    Hi,
    good news first: The behavior you describe doesn't reproduce in a later build that we use to verify TP4. I didn't test with TP3 but observed two wrong PPR references that I fixed before running the app
    the corrected PPR entries are
    partialTriggers=":::saveAndCreateOrderItemsBtn :::cancelInsertOrderItemsBtn">
    and
    partialTriggers="::ordersPanelCol:ordersTable">
    Also, on the panel Splitter I removed the inline style width:100% height:100% with AFVisualRoot as the style class property. Its a minor cosmetic correction that had nothing to do with the behavior
    Again, thanks for your cooperation. I really apreciate good testcases
    Frank

  • Possible bug with AlphaComposite.Src?

    While this is possibly a bug, it's more likely a misunderstanding on my part which is why I want to post it here first for comment.
    I have a BufferedImage (type BufferedImage.TYPE_INT_ARGB) with some graphics drawn in it that I want to clear out with a transparent white background (argb=0x00ffffff). That is, I want to replace every pixel in the image with a color of (new Color(255,255,255,0)). FWIW the reason for this is that after clearing and then drawing some new stuff onto the BufferedImage, it will be written out as a 32-bit PNG with a "canvas" color that will render as transparent on Mozilla and opaque white on MSIE (which ignores the 32-bit PNG alpha channel).
    In order to clear the BufferedImage (img), I tried the following:
    // img is a BufferedImage with stuff drawn in it
    g2 = (Graphics2D)img.getGraphics();  
    g2.setComposite(AlphaComposite.Src);
    g2.setPaint(new Color(255,255,255,0));
    g2.fillRect(0,0,w,h);  // w=image width, h=image height
    g2.setPaintMode();
    (draw stuff)The javadocs on AlphaComposite.SRC indicate that the destination pixels should be replaced by the source pixels, so I'd expect the image to be filled with color 0x00ffffff after the fillRect operation. However, I've found that the preexisting contents of img remain unchanged.
    What leads me to suspect that this may be a bug is that if I change the setPaint line to
    g2.setPaint(new Color(255,255,255,1));the contents of img are cleared out. Why should an increase in alpha of only 1/256 make such a difference? The javadocs say that AlphaComposite.SRC should ignore the destination image altogether.
    I'd like it if someone could either 1) explain to me why this is the correct behavior or 2) verify that this could be a bug.
    Thanks
    Ryan Olson

    Ok, I've isolated the bug, I think. It has to do with setting the RenderingHints for a BufferedImage's Graphics2D context, strangely enough. The following test case illustrates the problem:
    import java.awt.image.BufferedImage;
    import java.awt.*;
    public class AlphaCompositeSrcTest {
        private static final Color TRANSPARENT_COLOR = new Color(255,127,255,0);
        /** Creates a new instance of AlphaCompositeSrcTest */
        public AlphaCompositeSrcTest() {
            BufferedImage canvas = new BufferedImage(100,100,BufferedImage.TYPE_INT_ARGB);
            Graphics2D g2 = (Graphics2D)canvas.getGraphics();
            // turning on anti-aliasing here doesn't seem to matter
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
            for (int i=0; i<10; i++) {
                drawOnImage(canvas);
            System.out.println("All done");
        private void drawOnImage(BufferedImage canvas) {
            Graphics2D g2 = (Graphics2D)canvas.getGraphics();
            // the following line will cause an assertion failure at [1] if not commented out
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); // [1]
            g2.setComposite(AlphaComposite.Src);
            g2.setPaint(TRANSPARENT_COLOR);
            g2.fillRect(0,0,100,100);
            // entire image should now be the transparent color
            assert canvas.getRGB(50, 50) == TRANSPARENT_COLOR.getRGB(); // [2] <-- fails if [1] is present
            g2.setPaintMode();
            g2.setPaint(Color.BLUE);
            g2.fillRect(10, 10, 80, 80);
            // should now be an opaque blue square in center of image with edges still
            // in transparent color
            assert canvas.getRGB(5, 5) == TRANSPARENT_COLOR.getRGB();
            assert canvas.getRGB(50, 50) == Color.BLUE.getRGB();
        public static void main(String[] args) {
            new AlphaCompositeSrcTest();
    }

  • Please help with a closed caption or subs solution!

    Hi all,
    I have been reading up on the various methods of including cc or subs with QT movies but am still a bit stumped as to the best solution for my situation.
    We have a desktop application that allows customers to purchase educational videos through branded client catalogs. The videos are downloaded to the customer's Mac or PC and then play back, within our program, utilizing QT player (and we also have the option to switch to MPlayer for older PCs).
    Our clients have begun asking if they can also offer alternate versions of their videos with subtitles in various languages. My first thought was this would be a snap, just by adding properly-named and formatted .srt files to the proper directories, and while it seems like this will work if they are using MPlayer, the vast majority of our customers are using QT. Is there a type of text file we can have our clients supply us with that will work automatically in this sense? If not, is there any sort of command-line client we might be able to use to quickly and easily mux mp4 files with cc or subs?
    The key here is simplicity, and ideally we would really like to not have to have multiple versions of the mp4s themselves, just having various cc or sub txt files would make everything so much easier!
    Is this possible? Am I totally missing an obvious solution?
    Thanks so much for any help you can offer!
    Best,
    Jeff

    http://www.macosxhints.com/article.php?story=20071103080237904
    http://forums.macrumors.com/showthread.php?t=282408
    NicePlayer mentions subtitle support in the help menu

Maybe you are looking for

  • 3rd Party Support?

    I'm doing alittle research on Flex vs Silverlight - and i was wondering what level of support does Flex have from 3rd party vendors? I know there's ILOG Elixor UI components, and this Salesforce.com toolkit for Web Service API - is there a central pl

  • Short name changing

    Hi everyone, I've read quite a bit of the bumf on here about changing the short name. To be honest I thought it would be really simple to do, and now I'm concerned, as I setup an original machine and cloned/imaged it to another 15 (using super duper)

  • Multiple Oracle Connexions In A Script

    Hi, I am actually encounter some problems with my oracle connexions. I need to have multiple opened connexions with differents user logons on a same database in a script . When I configure the second connexion, I could no more make request on the fir

  • HT4623 Why I cannot activate cellular data network after updating to iOS 6.0?

    Why I cannot activate cellular data network after updating to iOS 6.0?

  • I am not getting the firefox menu button on version 4

    I just downloaded and installed the new version 4 of firefox. When I open firefox it does not show the orange firefox menu button. What do I do?