Modal dialog in Premiere Pro (using AE SDK)

Hello all,
I have a plugin that does some long, intensive processing inside a single render call. I show my own progress bar in a modal dialog while this happens.
This is working fine in After Effects, but it's causing a crash in Premiere Pro. I get a few messages through the WndProc but then they just stop coming. I've attached some code below. Does anyone have any idea what might be going on there?
many thanks for any help,
Hugh
Here's the code that creates the dialog:
//assume host window is foregrounded
hostWindow = GetForegroundWindow();
// also tried HWND hwnd; PF_GET_PLATFORM_DATA(PF_PlatData_MAIN_WND, &hwnd);
hDlg = CreateDialog(theDLL, MAKEINTRESOURCE(IDD_PROGRESS), hostWindow, reinterpret_cast<DLGPROC>(DlgProc));
SetWindowLongPtr(hDlg, GWLP_USERDATA, (LONG_PTR)this);
CenterDialog();
ShowWindow(hDlg, SW_SHOW); UpdateWindow(hDlg);
SetForegroundWindow(hDlg); BringWindowToTop(hDlg);
hProgress = GetDlgItem(hDlg, IDC_PROGRESS1);
SendMessage(hProgress, PBM_SETRANGE, 0, MAKELPARAM(0, total));
and here's the window proc:
static LRESULT CALLBACK DlgProc(HWND hWndDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
ProgressDialog *myOwner = (ProgressDialog*)GetWindowLongPtr(hWndDlg, GWLP_USERDATA);
switch(Msg)
case WM_INITDIALOG:
        case WM_WINDOWPOSCHANGING:
return TRUE;
case WM_NCLBUTTONDOWN: //prevent user moving the dialog box
if (HTCAPTION == wParam) return TRUE;
else return FALSE;
case WM_COMMAND:
switch(wParam)
case IDOK:
return TRUE;
case IDCANCEL:
myOwner->cancelled=true;
return TRUE;
break;
return FALSE;

Here's the code that is called periodically inside my processing to run the message pump, in case that's helpful:
SendMessage(hProgress, PBM_SETPOS, pos, 0);
HWND hProgText = GetDlgItem(hDlg, IDC_TEXT_PROG);
std::stringstream myStr;
myStr << "Frame " << pos << "/" << total;
SetWindowText(hProgText, myStr.str().c_str());
MSG Msg;
SendMessage(hostWindow,WM_ENTERIDLE,0,0L);
while (PeekMessage(&Msg, hDlg, 0, 0, TRUE)) {
if (!IsDialogMessage(hDlg, &Msg)) {
TranslateMessage(&Msg); DispatchMessage(&Msg);

Similar Messages

  • Is it possible to live capture into Premiere Pro using a Canon 1DX DSLR?

    Hello,
    We are trying to avoid capturing into the canon capture software, exporting, then importing back into Premiere Pro for editing. Is it possible just to capture directly into Premiere Pro using a Canon 1DX DSLR?
    Thank you in advance for your help.
    Amanda

    I have got FCE HD which I assume works in a similar way.
    Go to Easy Setup and select "DV - PAL DV Converter".
    When you have finished remember to return it to its original setting.
    Ian.

  • Odd graphics failure in Premiere Pro using Lion

    Just fired up Premiere Pro for the first time since the Lion update, and it's having some issues.
    See in the work panes at the bottom, that's one audio clip.
    When I move it about it ghosts like an old school Windows graphics error, and goes mental.
    If I press play and cause a new event to happen, like the playing cursor moving across the path of the image, it wipes it correct, but it's not exacty easy to work like this. Is it a compatability issue? Or is my Macbook about to fry or something? I need to know as I am meant to be working on a video for charity, which I volunteered to do, but now might not be able to if this is going to happen.
    Was thinking of going Final Cut Pro X, not sure if this 2009 MBP can handle it though.
    Anyway, if you have any ideas on why the above issue is happening, I'd be grateful, I need PP to work for me!
    Edit: apologies, I see there's already a thread on this. Can't see a way to delete :/

    ....I " second" Bill's motion !!! I too had to recently replace my laptop, and like Bill, was able to find a " refurbished" Asus G750JW for much less than normal cost.Yesterday, I saw some that  were selling for $1,000,but, I think you can do better than that. I have been amazed atthe performance increase over my previous Asus i7 laptop. Some of that was due to the software itself....the newest version of PPro CCloud 2014 contains improvements which eliminated problems editing certain DSLR footage and increased the amount of system memory being used. Having the 24 GB of memory certainly improves things along with the much faster Haswell 4700 HQ CPU......it normally "turbos" itself up to 3.2 to 3.4 Ghz under load, with ALL cores in use ! The 765M Nvidia  GPU  does very well....I overclock it too,using MSI Afterburner and it seems to result in faster exporting times, direct out of PPro, using the DSLR footage on a timeline with multiplevideo tracks and accelerated effects. I believe the biggest improvement came from using two newer high quality SSDs. I used the cheaper Crucial , slightly older SSDs than Bill's.....his Samsung Pro 850s are currently the best. I used a Crucial M500 forthe boot drive and an M4 for the media drive. Performance on my machine was slightly lower than Bill's because of his better SSDs.....but still amazing,for a laptop!

  • Editing AVCHD in Premiere Pro using laptop.  How to assign functions?

    We are about to purchase a fast gaming laptop computer with i7 quad core CPU and at least 8 gB of RAM.
    We will install our copy of CS5.5, with primary application being Premiere Pro.
    Being able to move the computer from place to place easily is very important to us, so we rule out a desktop or workstation.
    All-in-ones are not practical for us.
    We plan on spreading our Premiere functions out over 3 drives:
    One SSD drive, at least 128 gB.
    A pretty big 7200 rpm HDD.
    And a USB 3.0 link to a fast external hard drive.
    The graphics display card is quite good and the display is > 17 inches -- small by desktop standards but large for a laptop.
    We don't care if it takes slightly longer to boot up, launch Premiere, or open projects.
    We don't care much about render times/speeds. (We don't have a lot of effects to render as we edit or display in real time.)
    We don't need RAID for protection.  Given the seemingly very fast speeds of these SSD and HDDs, we don't seem to need the speed of RAID 0 (and it's not easily built into a laptop).
    Our largest challenge is displaying every frame of a 30 f/s imported AVCHD file in preview/play mode (without transcoding). That's what we value.
    Given our goals, can someone please help with our hard drive assignments and with some background?
    We are confused about Premiere preview and scratch files.  When we play the .mts clip in the source window or the timeline, are we looking at the previously-created preview file or is the source media (.mts) actually reading from a drive and processing through the CPU and/or the graphics card?  Unpacking an AVCHD file for smooth display is a computing challenge if I understand correctly.  If good, fast 30f/s AVCHD display is our primary goal as we edit, shouldn't we assign the preview/scratch files to the fastest storage?  Isn't that the SSD drive?
    And if I have enough RAM, how large does a timeline have to be before it is too large to read from 8 gB of RAM?  If we install 16, will that take care of the problem? 
    Unless the imported .mts file is playing directly from the HDD, is there any good reason not to store the media on the USB 3.0 external drive?  (There are some very good reasons to store it there.)
    Thanks much,
    Lance

    ....I " second" Bill's motion !!! I too had to recently replace my laptop, and like Bill, was able to find a " refurbished" Asus G750JW for much less than normal cost.Yesterday, I saw some that  were selling for $1,000,but, I think you can do better than that. I have been amazed atthe performance increase over my previous Asus i7 laptop. Some of that was due to the software itself....the newest version of PPro CCloud 2014 contains improvements which eliminated problems editing certain DSLR footage and increased the amount of system memory being used. Having the 24 GB of memory certainly improves things along with the much faster Haswell 4700 HQ CPU......it normally "turbos" itself up to 3.2 to 3.4 Ghz under load, with ALL cores in use ! The 765M Nvidia  GPU  does very well....I overclock it too,using MSI Afterburner and it seems to result in faster exporting times, direct out of PPro, using the DSLR footage on a timeline with multiplevideo tracks and accelerated effects. I believe the biggest improvement came from using two newer high quality SSDs. I used the cheaper Crucial , slightly older SSDs than Bill's.....his Samsung Pro 850s are currently the best. I used a Crucial M500 forthe boot drive and an M4 for the media drive. Performance on my machine was slightly lower than Bill's because of his better SSDs.....but still amazing,for a laptop!

  • Premiere Pro using over 100% CPU

    When I open up Premiere Pro, it is using about 6.5% CPU. I can cut, move around in the timeline and add effects ok. But when I play the video (even if its just one track with no effects) my computer starts running very hot and Premiere starts using over 500% CPU. the CPU cores heat to the 90s Celsius. Below are some specs, let me know if you need more to help answer. Thanks!!!
    MacBook Pro
    OS X 10.9.4
    2.2 GHz Intel Core i7
    Memory 4 GB 1333 MHz DDR3
    Adobe Premiere Pro CS 6 - version 6.0.0
    Here's the CPU and temps before Premiere plays anything...
    Here's while it is playing through a video...

    First of all, I strongly recommend that you update to 6.0.5. You'll reap the rewards of many bug fixes. I won't venture whether that alone will help with the temperature.
    As you probably know, video processing is one of the most processor-intensive activities you can ask your computer to do. Exactly how hard your CPUs will be pushed depends on at least four factors:
    The type of video, namely the codec. Those that use interframe compression are much more processor-intensive than intraframe compression.
    the resolution, or pixel dimensions, of the video: higher resolution = more pixels = more work
    the number of layers in your sequence. And be aware that if you're using nested sequences, you need to include all the layers in each of them.
    effects. Some effects like scaling and color correction require a lot of processing.
    One key data point you left out regarding your computer is the graphics card. A card that supports GPU processing will take a lot of the stress off of the CPU. From the system specs you provided, I gather you're on the Late 2011 MBP. If it has a 6750M or 6770M with 1GB of VRAM, then it's supported for CS6, but not if you have the 512MB version. (Here are system requirements for CS6: System requirements | Adobe Premiere Pro)

  • Bug and workaround: Transparent areas in After Effects are opaque in Premiere Pro using Dynamic Link

    There's a bug that causes transparent areas in dynamically linked After Effects CS5.5 compositions to be opaque in Premiere Pro in some circumstances. See this for details and a workaround:
    http://forums.adobe.com/message/3682118#3682118

    Thanx for that Todd
    I had experienced the issue just  yesterday and was wondering why ...and then what,  was I  going to do about it.

  • How much memory can Premiere Pro use on a new Mac Pro?

    I'm ready to upgrade memory on my Mac Pro Late 2013 6-core.  Does PP CC 2014 have a limit on how much RAM it can use?  Some apps never use more than a certain amount, so I don't want to buy a lot of memory if PP will never put it to work.  (I made that mistake when I was an FCP user.)  Is there a limit and if so, what?
    Also, are there any Mac Pro users who have an opinion on optimum RAM?  I currently have 16GB (4x4GB) with 10GB reserved for PP.  I am in the middle of a very large project and have noticed some irregularities and spinning balls.  I assume that they are from memory shortage since quitting all other apps and restarting PP seems to fix the issue.

    Not a Mac expert here ... but I do know there's folks running 64G ram and so going up from 16 will work fine. Now ... as to which is the "choke-point" ... that's a bit more techie than I can answer off the bat.
    The Adobe video apps can put a pretty good strain on all of the computer's hardware, and "balancing" the assets of the hardware to the usage patterns of the software is always the trick. Memory never hurts ... but if the spinning ball is a video-ram problem, changing mobo ram isn't going to do much. The various areas they go into great detail on within the pages of the "Tweakers Page" (found within these forums threads, check the hardware forum) are of course, mobo, chip/s & cores, ram, disc in-outs & arrays/layout of project/footage & program files, video card & ram.
    Your problem might be best solved by more RAM; it might be that it's a disc read/write issue and either more internal or eSATA II discs to spread read/write processes over would be best ... or taking an array of discs and using a fast multi-disk RAID array to speed things up even faster, or a video card upgrade.
    So ... where you might want to go is the the Hardware Forum and give your computers complete specs, including disc layout and usage, and see what folks there think needs tweaking.
    Neil

  • Why doesn't Premiere Pro use my GPU when rendering?

    Hello all,
    I bought two GTX 770s for the purpose of rendering super fast with premiere's wonderful Mecrury Playback Engine. The issue I'm having is, I'm rendering a project right now, but it's not making any use of my GPUs whatsoever. My CPU is hovering at 55-80% usage, so I was just wondering what was going on.
    Just kind of upsetting that my investment has gone to waste. Thanks!

    Tweakers Page - Exporting Style
    From that article:
    The video card and hardware MPE is not the holy grail. It helps in some circumstances to improve performance and rather significantly, but in other instances it does not help at all, as is indicated in the link above. People often think that installing a super fast video card will reduce export times by a significant amount of time. That is not true. It only helps in a limited number of situations.

  • Why isn't Premiere Pro using my renders in export?

    I have been clicking "Use Previews" in Media encoder to speed up export, but it doesn't seem to make a difference, it still takes half an hour to export 3 minutes no matter what I do. Since it is crashing when I try to export more then 3 minutes and also crashes when i try to render more than 3 minutes, I am really slogging through my long project an it's quite frustrating.

    Hi Steven,
    Here is some more detail on my project:
    ---what is your media,
    I am editing avi DV files (shot in 3x4 screen ratioo) layered with bmp file graphics (varied sizes) and avi animations, compositing to a standard DV widescreen NTSC format, lower field is chosen and if that is the mistake, I chose that on a whim. The dv was shot in 3x4 format and I am repositioning it.
    ---what are the rest of your settings, what are your preview files using for a codec?
    the previews are rendered in the codec "NTSC dv widescreen".
    When I choose the same for export, it accepts that. When I click on "use rendered previews" the codec changes to "custom". That seems fishy to me because the source film is the same codec too.
    I have set my preferences within the project.
    I have cleared the media cashe drawer within the preferences and rebooted the computer to no improvment except that it seems now I was able to update the program. Yesterday the updater wasn't working. But the updates did not fix my problems.
    As I am in the middle of a new export attempt I have not checked further but I will when it finishes and crashes again! Thanks for your input.

  • Can i hack gtx 560 ti speed up rendering in premiere pro using mercucy engine ??*

    I'm going to buy this card soon, msi gtx 560 ti oc version, i wonder if i can "hack" it to use mercucy to speed up rendering and playback ??? please tell me ??

    As Harm stated, yes, you can. However, there are currently two different MSI GTX 560 Ti OC cards on the market (the Twin Frozr II and the Twin Frozr III, the former being based on the regular 560 Ti with only 384 CUDA cores and 256-bit graphics memory bus, the latter with 448 CUDA cores and a 320-bit graphics memory bus). Between the two, go for the Twin Frozr III as the lesser Twin Frozr II (being based on the "regular" 560 Ti) can only achieve a score of 90 to 100 seconds (versus 60 to 70 seconds for the Twin Frozr III/GTX 560 Ti 448) in the MPEG-2 DVD portion of the PPBM5 benchmark even on a system with a heavily overclocked CPU. (This assumes that you're going to use the card in a system with an overclocked i7-2600K or higher CPU. If on the other hand you're going to use the new card in a system with only a limited-overclockable i5 CPU or an i7 CPU that's stuck at or near stock speed, then the regular Twin Frozr II would be sufficient as the Twin Frozr III's performance would not have been sufficiently faster in such a limited system to justify the higher price.)
    Remember, performance is affected not only by the number of CUDA cores, but also by the memory throughput. The latter is the very reason why the GTX 550 Ti is slightly slower than the GTX 260 despite both GPUs having the exact same number of CUDA cores (192, in this case) because 192-bit DDR5 memory (as used on the GTX 550 Ti) has slightly less total memory throughput than the GTX 260's 448-bit DDR3 memory.

  • Exported Interlaced Video by SDK Exporter plugin for premiere pro cs6

    Adobe Premiere Pro CS6 for Project Setting Sequence is XDCAM HD422 1080i25(50i)
    I tested the Plugin AVI(Uncompress) ,output interlaced video OK no problem.
    I use Premiere Pro CS6 r2 SDK
    I am trying to build a plugin for interlaced video.
    Problem occured when I modified by the program below:-
    SDK_Exporter.cpp at subroutine RenderVideoFrame
    for interlaced video with PrPixelFormat_BGRA_4444_8u or PrPixelFormat_VUYA_4444_8u
    and set
    renderParms.inRenderQuality = kPrRenderQuality_High;
    fieldType.value.intValue = prFieldsUpperFirst;
    mySettings->exportParamSuite->ChangeParam(exID, 0, ADBEVideoFieldType, &fieldType);
    renderParms.inDeinterlace = kPrFalse;
    renderParms.inDeinterlaceQuality =kPrRenderQuality_High;
    SequenceRender_GetFrameReturnRec renderResult;
        resultS = mySettings->sequenceRenderSuite->RenderVideoFrame(mySettings->videoRenderID,
                                                                    videoTime,
                                                                    &renderParms,
                                                                    kRenderCacheType_None,
                                                                    &renderResult);
        mySettings->ppixSuite->GetPixels( renderResult.outFrame, PrPPixBufferAccess_ReadOnly, &frameBufferP);
    In frameBufferP is only progressive frame not intelaced frame
    Please advise  what should I do in order to get interlaced frame.
    Regards,
    Putaporn

    Adobe Premiere Pro CS6 for Project Setting Sequence is XDCAM HD422 1080i25(50i)
    I tested the Plugin AVI(Uncompress) ,output interlaced video OK no problem.
    I use Premiere Pro CS6 r2 SDK
    I am trying to build a plugin for interlaced video.
    Problem occured when I modified by the program below:-
    SDK_Exporter.cpp at subroutine RenderVideoFrame
    for interlaced video with PrPixelFormat_BGRA_4444_8u or PrPixelFormat_VUYA_4444_8u
    and set
    renderParms.inRenderQuality = kPrRenderQuality_High;
    fieldType.value.intValue = prFieldsUpperFirst;
    mySettings->exportParamSuite->ChangeParam(exID, 0, ADBEVideoFieldType, &fieldType);
    renderParms.inDeinterlace = kPrFalse;
    renderParms.inDeinterlaceQuality =kPrRenderQuality_High;
    SequenceRender_GetFrameReturnRec renderResult;
        resultS = mySettings->sequenceRenderSuite->RenderVideoFrame(mySettings->videoRenderID,
                                                                    videoTime,
                                                                    &renderParms,
                                                                    kRenderCacheType_None,
                                                                    &renderResult);
        mySettings->ppixSuite->GetPixels( renderResult.outFrame, PrPPixBufferAccess_ReadOnly, &frameBufferP);
    In frameBufferP is only progressive frame not intelaced frame
    Please advise  what should I do in order to get interlaced frame.
    Regards,
    Putaporn

  • Premiere Pro CC error "...\src\core\Propertieslmpl.cpp-641" dumps program at start. First-time use.

    This error message displays:
    When I try to start Premiere Pro CC. This is the first time I have tried to use the program. I have a full CC subscription.

    Hi Paul,
    Have you tried resetting preferences? http://helpx.adobe.com/en/premiere-pro/using/preferences.html#change_preferences
    Thanks,
    Kevin

  • Adobe Premiere Pro Help | Using the Source Monitor and Program Monitor

    strJiveDescriptionhttp://helpx.adobe.com/premiere-pro/using/source-monitor-program-monitor.html

    Even back in the days of printed manuals, there were often sections, that repeated, as they had application to a few slightly different topics. I always found that better (then), than just having a note to "go to _____ for info on this." Probably used a few extra trees, but one did not have to constantly flip back and forth. Now that we're talking 1's and 0's, I can see where a limited bit of repetition would enhance the flow of knowledge, and understanding, even when hyper-linked.
    Just my observations,
    Hunt

  • Multicam Sync using audio in Premiere Pro CC

    Hi there,
    Just getting my head round the tons of stuff Premiere Pro CC can do.
    I saw this video and this I thought would be great and a wonderful time saver:
    http://www.tricedesigns.com/2013/06/18/my-favorite-new-feature-multi-cam-synch-in-premiere -pro-cc/
    In brief what we are intending to do is, using 2 identical cameras both with mics.
    Cam 1 records the whole presentation.
    Cam 2 at a different angle records smaller clips of the same presentation, some clips only a few seconds others a little longer.
    I select both videos > right click > synchronize > check Audio and ok.
    It processes both clips but then says 'no match found' even though I know there is. The audio is as clear as anything.
    As a test all I am trying to do is sync a small close up clip over the main video.
    From what Andrew Trice is saying it 'should' work.
    I can't find anything else to suggest what I'm doing wrong.
    Any thoughts greatly received. Pete
    [The term Premiere Pro uses is multicam sequence.  I've updated the thread title.]
    Message edited by Jim Simon

    Ok I am really beginning to think I am doing something wrong here
    Thinking I am not going to be able to sync using just audio I just watched this:
    Multi-Camera improvements in Premiere Pro CC
    http://helpx.adobe.com/premiere-pro/using/whats-new-7-1.html
    So gave multi cam a go. Added to video clips.
    intro.MTS is the main presentation
    intro1.MTS is the small clip but at a different angle.
    The quality of the audio is very clear and yet it could not be synchronized!
    I get the failure message below.
    Do the video clips have to be saved 'as' something other than what I have?
    It cant be coincidental that I can't sync using either method.
    I am using a trial of Pro CC, hope that makes no difference
    Thanks, Pete

  • Premiere pro Cs6 - use the arrowbuttons on the keyboard for keyframe motion.

    Hello,
    I've got a Question. I use Premiere pro for my motorcycle Videos... And usuall if there is a license plates of motorcycles .. i put some litte black bar on it. this was very easy with my mouse and Keyboard...   1st.. Picture (black bar) over the Scene, 2nd. activate the keyframe Motion.... KLICK AND HOLD the blackbar in the progamm-monitor and use the arrowbuttons on the Keyboard for Frame for Frame....  it was sooooooooo easy... and going so fast if there is a license plate you dont want to Show it.. 
    now in cs6 ...it dont works ?? is there a function i got to activate?? or is this function no longer usable??
    (hope you know what i mean...) but i dont want to use after effects tracker ...  or the 4 point mask from premiere pro...
    kind regards and hope you answer...

    I have a Canon Vixia HFS100, which saves AVCHD files to an SD card... exactly what model is your camera?
    If you are copying from an SD card to your hard drive, read these two links
    Metadata contained in folder http://forums.adobe.com/thread/1015001?tstart=0
    -and http://helpx.adobe.com/premiere-pro/using/transferring-importing-files.html

Maybe you are looking for

  • Inordinate delay in the repair of an Under Warrant...

    I had given my E90 Handset for repair vide Job Sheet No. 482434038/081209/9 on 9th Dec '08 at 11.47 AM at your Nokia Care Center, M/s Sheetla Communication, B-249, DLF Phase IV, Super Mart-1, Gurgaon. This handset is currently under warranty. Till da

  • Just purchased an 11" Mac Book Air, and I'm using it as a desktop. Is it ok to lea the power adapter connected all the time?

    I'm using my macbook air as a desktop unit, with an auxiliary flat panel display, as well as an external storage drive and a CD/dvd drive. Is it safe to leave the power adapter connected to the computer all the time? Will the battery life get affecte

  • Invoice Split its urgent

    Dear Friends, I have generated Delivery by clubbing 2 orders TC VL04. The delivery is generated but while creating billing doucment VF01, and putting the delivery reference, the system is giving an error message Split due to different header data Mes

  • Registering iPhone on more than one computer

    Is it possible to register my phone on two computers, I've done it on my home PC, but would like to use it with my laptop, has anyone been able to do this. Thanks in advance.

  • Error exporting catalog using bi_export.bat

    Getting error when exporting catalog using bi_export.bat version 9.2.0.2 bi_export -u BIBCAT -p BIBCAT -j thin -h localhost -po 1521 -sid mysid -x a catalogdump.xml Fri Feb 28 14:40:31 CET 2003 PROBLEM: In oracle.dss.persistence.administration.Export