Another AVI Newbie Post (reposted from another thread)
Hi, this post answered a big question that I had...couple things I ran into when I tried to export to AVI.
Summary: Client wants to publish the screencaps as standalone vids in addition to the work that we're doing to sync the screencaps with video and ppt files. When I try and publish to AVI Captivate usually freezes up a short way into the publish and stops working. I've tried using several deifferent codecs in teh dropdown and they all are spotty.
Possible issues (to help diagnose my issue).
* I'm new to captivate and doing something stupid since I'm a newbie
* I'm waiting till the trial ends to actually purchase...so I am trying to do this using a trial version...a legit trial mind you...downloaded from Adobe...not a torrent site
* I'm on an AMD machine. Can this software really not run on an AMD machine? Do I need an intel processor? I'm coming from a Mac and not sure how this could be possible...but anything's possible!
* I'm bringing in projects from Captivate 3. I'm also having the issues with Captivate 4 files, but thought I'd bring this up.
* I'm using Vista
Any help would be greatly appreciated!!!
I was having the same problem until I let it sit for a while and noticed that it froze for about a minute, but then continued processing! So, it may not actually be frozen, it is just very slow and the encoding buffer fills up and needs to catch up or something like that. You may want to set it to start before you go to bed for the night and it might be done by next weekend...
However, I discovered other issues that made the .AVI exporting functionality almost completely useless:
1) Output codecs stink. One of them wouldn't even work, it just said "An Error Has Occurred!" and closed. The others suffered from issue #2
2) Large file sizes. Using the "Cinepak Codec by Radius" yielded a 4 slide, 40 second video (with no audio for it) with a file size of over 35 MB! So I tried using Xvid, which is generally considered to be a "good" video codec, yet somehow ended up with a 1.4 GB (yes, gigabyte) file! That is absolutely incredible!! I haven't even bothered trying to play it for fear that my system will run out of memory. (Using the Microsoft Video 1 codec yielded a slightly better result of 19 MB for the same video).
3) It always uses the C: drive for "working" swap or w/e. My video was actually much larger than 4 slides, but I cut out 36 slides in order to try and get a complete video after a few unsuccessful tries where it filled my C: drive. The first time I just let it run my C: drive quickly ran out of room! It filled 7 GB and wasn't even halfway done! So I made sure to change all my working and output directories to the D: drive (which has tons more space), but it still used the C: drive for working swap data, filling my drive again! (This happened with most of the codecs I tried.) The only positive thing I have to say is that once I hit "Cancel" it removed all of this data and freed up the space.
Anyways, I am giving up on publishing any movies as an .AVI through Captivate 4. The functionality appears to be almost completely broken.
For what it's worth, I am using Intel hardware running XP Pro.
And as always, YMMV.
Similar Messages
-
Receive POST data from another URL and process using Struts
Hi there
We have a website and as of now we are receiving some data from another URL which is received as an appended part of the URL. My application uses Struts and we process the received data and send back a response.
Now my question is, I have been asked to change this behavior because there are more parameters now which cannot be passed through the URL. I am supposed to get the data from the other URL as POST data (as a form) and I have to create a new Struts action to receive this data, process it and send the response back to the requesting URL.
Please explain me how to do this using some example code snippets.
Thanks a lotLookup in XI is used to call the target data storage system and get data from there to your mapping programme.
In XI you can do Lookup in Message Mapping, Java Mapping and in XSLT Mapping. Previously Lookup in XI was system dependent. But now what ever the system are i.e. SAP system or non-sap system(Oracle,MS SQL etc) lookup API are same.
Overview of Lookup
- Lookups are used to identify/request the data from mapping program.
- It interrupt the process and looking for data which was stored in target system.
- It get that data and comeback to process and continue with that data.
Types of Lookups in XI
- JDBC Lookup: JDBC lookup is used for accessing data from database (non SAP).
- RFC Lookup: RFC lookup is used for accessing the SAP Data.
- SOAP Lookup: SOAP lookup is used for accessing data from Webservice
Steps to perform Lookup in Mapping
Import package com.sap.aii.mapping.lookup.*;
Create connection to the target Database system.
// Determine communication channel created in ID
Channel channel = null;
channel = LookupService.getChannel("DB-SYSTEM-NAME","DB-CHANNEL-NAME");
// Get system accessor for the channel.
DataBaseAccessor accessor = null;
accessor = LookupService.getDataBaseAccessor(channel);
Build the Query String.
Getting Result
// Execute Query and get the values.
DataBaseResult resultSet = null;
resultSet = accessor.execute(Query); -
The factory installed weather app on my iphone suddenly has started using another state as my location. I tried resetting my location several times, but no go. Any ideas how to fix this?
Have a look at this it may help
http://support.apple.com/kb/TS4148
please confirm
You did purchase your unlocked iPhone4S from an Apple Retail store and I mean the Apple Store no where else sells unlocked iPhones in the UK regardless of their claims -
Results from another Query - not available
HI,
My environment is Business Objects XI 3.1 SP2 Edge series , i have below quereis with web Intelligence Reports
1. not available the functions/options Results from another Query(Any) or Results from another Query(ALL) at Query Level.
2. not getting list of Values for pronpt until i refresh values for prompt?
Please suggest me is there any fix packs available for the same to availle that functionality.
Best Regards,
Reddeppa Knot getting list of Values for pronpt until i refresh values for prompt?
There is option called "Automatic refresh before use" for the object properties available in the universe designer.
Please check the box for the object you are using for populating the list of values and export the universe.
not available the functions/options Results from another Query(Any) or Results from another Query(ALL) at Query Level.
There is a limitation for the query on query functionality that the both the queries can-not be from the OLAP universe.
I guess the query which needs to be filtered should be built on universe from the relational data base.
Regards,
Rohit -
How to refresh a JTable of a class from another thread class?
there is an application, in server side ,there are four classes, one is a class called face class that create an JInternalFrame and on it screen a JTable, another is a class the a thread ,which accept socket from client, when it accept the client socket, it deal the data and insert into db,then notify the face class to refresh the JTable,but in the thread class I used JTable's revalidate() and updateUI() method, the JTable does not refresh ,how should i do, pls give me help ,thank you very much
1,first file is a class that create a JInternalFrame,and on it there is a table
public class OutFace{
public JInternalFrame createOutFace(){
JInternalFrame jf = new JInternalFram();
TableModel tm = new MyTableModel();
JTable jt = new JTable(tm);
JScrollPane jsp = new JScrollPane();
jsp.add(jt);
jf.getContentPane().add(jsp);
return jf;
2,the second file is the main face ,there is a button,when press the button,screen the JInternalFrame. there is also a thread is beggining started .
public class MainFace extends JFrame implements ActionListener,Runnable{
JButton jb = new JButton("create JInternalFrame");
jb.addActionListener(this);
JFrame fram = new JFrame();
public void performance(ActionEvent e){
JInternalFrame jif = new OutFace().createOutFace(); frame.getContentPane().add(JInternalFrame,BorderLayout.CENTER);
public static void main(String[] args){
frame.getContentPane().add(jb,BorderLayout.NORTH);
frame.pack();
frame.setVisible(true);
ServerSokct ss = new ServerSocket(10000);
Socket skt = ss.accept()'
new ServerThread(skt).start();
3.the third file is a thread class, there is a serversoket ,and accept the client side data,and want to refresh the JTable of the JInternalFrame
public class ServerThread extends Thread{
private skt;
public ServerThread(Sokcet skt){
this.skt = skt;
public void run(){
OutputObjectStream oos = null;
InputObjectStream ios = null;
try{
Boolean flag = flag;
//here i want to refresh the JTable,how to write??
catch(){}
4.second is the TableModel
public class MyTableModel{
public TableModel createTableModel(){
String[][] data = getData();
TableModel tm = AbstractTableModel(
return tm;
public String[][] getData(){
}Use the "code" formatting tags when posting code.
Read this article on [url http://www.physci.org/codes/sscce.jsp]Creating a Simple Demo Program before posting any more code.
Here is an example that updates a table from another thread:
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=435487 -
Can i catch an exception from another thread?
hi,guys,i have some code like this:
public static void main(String[] args) {
TimeoutThread time = new TimeoutThread(100,new TimeOutException("超时"));
try{
t.start();
}catch(Exception e){
System.out.println("eeeeeeeeeee");
TimeoutThread will throws an exception when it runs ,but now i can't get "eeeeeeeeeee" from my console when i runs the main bolck code.
i asked this question in concurrent forums,somebody told me that i can't.so ,i think if i can do this from aspect of jvm.
thank you for your help
Edited by: Darryl Burke -- Double post of how to catching exceptions from another thread lockinguser5449747 wrote:
so ,i think if i can do this from aspect of jvm. What does that mean? You think you'll get a different answer in a different forum?
You can't catch exceptions from another thread. It's that easy. You could somehow ensure that exceptions from that other thread are always caught and somehow passed to your thread, but that would be a different thing (you would still be catching the exception on the thread it is originating from, as is the only way).
For example you can use setUncaughtExceptionHandler() on your thread to provide an object that handles an uncaught exceptions (and you could pass that uncaught exception to your other thread in some way). -
Start timer from another thread
I am working on a project which will receive command from telnet and start a timer.
In the sock function, I use form reference to call timer.start(), but timer control cannot start Tick event:
Here is code for sock functin after receive the command:
static void appServer_NewRequestReceived(AppSession session, StringRequestInfo requestInfo)
switch (requestInfo.Key.ToUpper())
case ("START"):
session.Send(requestInfo.Body);
changetimer(1, requestInfo.Body);
break;}}
Here is the function to call timer start:
static void changetimer(int action, string incomingmsg)
//timer1.Start();
Form1 frm = (Form1)Application.OpenForms["form1"];
switch (action)
case 1:
frm.timer1.Start();
break;
case 2:
frm.timer1.Stop();
break;
and this is timer tick :
private void timer1_Tick(object sender, EventArgs e)
TimeSpan result = TimeSpan.FromSeconds(second);
string fromTimeString = result.ToString();
label1.Text = fromTimeString;
second = second + 1;You should start the timer on the UI thread. You could use the Invoke method to access a UI element from another thread:
static void changetimer(int action, string incomingmsg)
//timer1.Start();
Form1 frm = (Form1)Application.OpenForms["form1"];
switch (action)
case 1:
frm.Invoke(new Action(() => { frm.timer1.Start(); }));
break;
case 2:
frm.Invoke(new Action(() => { frm.timer1.Stop(); }));
break;
Hope that helps.
Please remember to close your threads by marking helpful posts as answer and please start a new thread if you have a new question. -
How can I pass an exception from one thread to another thread
If I create a new class, that will extends the class Thread, the methode run() can not be use with the statement Throws Exeption .
The question now: Is there any possibility to pass an exception from one thread to another thread?
Thx.It really depends on what you want to do with your exception. Is there some sort of global handler that will process the exceptions in some meaningful way? Unless you have that, there's not much point in throwing an exception in a thread, unless you simply want the stack trace generated.
Presuming that you have a global handler that can catch exceptions, nest your Exception subclass inside a RuntimeException:
public class NestedRuntimeException extends RuntimeException
private final m_nestedException;
public NestedRuntimeException(final Exception originalException)
super("An exception occurred with message: " + originalException.getMessage());
m_nestedException;
public Exception getNestedException()
return m_nestedException;
}Your global handler can catch the NestedRuntimeException or be supplied it to process by the thread group. -
Copy variable from one thread to another
My program requires user to input a java file which contains the run() method.
In the input file, user can declare variables and use those variables inside the run method. User also need to enter the number of threads to be spawned.
The problem is how can I construct some method like "copy" which can copy the variable from one thread to another in my program? I can't do that since I don't know the name of the variables that the user inputted.
I've tried this:
class helloworld extends thread{
void run(){
String a="hello";
String b="world";
copy(0,1,a,b)
class myProgram {
Class c = Class.forName(fileName); // file name of user's file
Thread t[] = new Thread[p]; // p is number of threads
for (int i=0; i<p; i++){ // create threads
t[i] = (Thread) c.newInstance();
t.start();
public void copy(int sourThread, int destThread, String s1, String s2){
t[sourThread].s1=t[destThread].s2
But it doesn't work. It said "cannot resolve symbol s1 and s2".
please help. urgent. Thanks a lot in advance.You need to seriously reconsider what you're allowing the user to do. The short answer to your problem is to use a shared, synchronized associative array.
However, since the user can specify any number of threads, you will have to resolve deadlocks, and the fact that you're asking this question suggests you will have problems doing so until you have read up on threads and shared variables in more detail. (I don't mean to be dismissive. Deadlocks and shared variables have to be customized to the application, i.e., you have to figure out just when each thread will need access to the variable, what kind of access, and when.)
In the meantime, take a step back and take a look at the big picture.
From what you've said, I would guess a common example of your application is that I want to be able to read file "foo.dat", uppercase each letter in the file, and write it out to "fooXXX.dat" where XXX reflects the thread number. And specify any number of threads I want.
Threads would not be the best way to accomplish this. Do this serially.
Alternatively, I could interpret your problem as in you need to create a main() function that's capable of reading someone else's dot-class file, clone the object and start it. In which case, why do you want to share variables? If the user did his job correctly, then his file will already contain shared variables (or copy them as appropriate). All you have to do is clone the object via the new keyword, then call start() in it.
You cannot share something when you don't know what you're sharing.
The third option is that you're doing this as an academic exercise (i.e., homework). Granted, yes, your professor may ask you to do things illogically just to prove they can be done. Unfortunately, we're not supposed to help you in that case. People who read this forum generally try to find logical and efficient ways of doing things. -
Are you suppose to access UIView from another thread?
A lot of UI events in my apps take place in another thread. So in my uivewcontroller, it catches a button click for example, it launches a NSThread with some parameter. The reason I decided to use a thread is because if the duration takes long the UI completely locks up. The thread then fetches for some result and access a pointer to a UIView (a UILabel for example) and update it's content.
Now, is this model correct? I'm running in cases where setting the UILabel.text from the thread sometimes work, sometimes doesnt. I'm not sure how to debug. If I change the thread call to a standard method call (which blocks until results are ready) the text is updated correctly.
Any hints?http://developer.apple.com/documentation/Cocoa/Conceptual/Multithreading/ThreadS afetySummary/chapter950_section2.html
-
Trying to update UI with from another thread
Hi,
I start a JavaFX application from another class, and then I want to modify UI components from it. I have been trying to use Platform.runLater to do it.
But the GUI hangs initially (doesnt display anything) for the first 5 seconds (sleep time) and then modifies and shows it.
I want to display the GUI at first, and then after 5 seconds the GUI should update with the message, but with the below code it just hangs first and displays everything after 5seconds.
Here sampleGUI is a a javafx app with text fields in it.
+public class StartGame extends Application {+
+@Override+
+public void start(Stage stage) throws Exception {+
final sampleGUI gui = new sampeGUI();
gui.start(stage);
+Platform.runLater(new Runnable() {+
+@Override+
+public void run() {+
+try {+
System.out.println("Sleeping now...");
Thread.sleep(5000);
System.out.println("Sleep over!");
gui.updateText("New message");
+} catch (InterruptedException ex) {+
System.out.println("exception" ex);+
+}+
+}+
+});+
+}+
+}+Platform.runLater(new Runnable() {
@Override
public void run() {
});causes the Runnable's run method to be executed on the FX Application Thread. Since you put Thread.sleep(5000) inside your Runnable's run method, the sleep happens on the FX Application Thread.
The call to runLater(...) can be invoked from any thread, including the FX Application Thread.
So if you are not in the FX Application thread, you want to do:
// any long-running task, for example
System.out.println("Sleeping now");
Thread.sleep(5000);
System.out.println("Sleep over");
Platform.runLater(new Runnable() {
@Override
public void run() {
// update UI:
gui.updateText("New Message");
});If you are on the FX Application thread, which is the case in your Application.start(...) method, you need to create a new thread to execute your long-running code. You can do this "by hand", creating a Thread and a Runnable for it to execute, but it's probably better to use the JavaFX concurrency API, which has lots of useful hooks for updating the UI on the FX Application Thread.
In this case, the code would look like this:
public class StartGame extends Application {
@Override
public void start(Stage stage) throws Exception {
final SampleGUI gui = new SampleGUI();
gui.start();
final Task<String> waitingTask = new Task<String>() {
@Override
public String call() throws Exception {
System.out.println("Sleeping");
Thread.sleep(5000);
System.out.println("Sleep over!");
return "New Message" ;
waitingTask.setOnSucceeded(new EventHandler<WorkerStateEvent>() {
@Override
public void handle(WorkerStateEvent event) {
gui.updateMessage(waitingTask.getValue());
ExecutorService executor = Executors.newSingleThreadExecutor();
executor.submit(waitingTask);
}There are (probably dozens of) other ways to use a Task to do this. See the [url http://docs.oracle.com/javafx/2/api/javafx/concurrent/Task.html]API docs for Task for more. -
Getting all the threads running in one JVM from another JVM ...
I want to get all the threads running in one JVM from another JVM.
Is it possible ?
namancI am going to write a java application that prints all the java application running at the background. And this application has a control over all the threads. means killing the threads, restart the thread etc
namanc -
Killing an exec'ed process from another thread
Hi all,
I written an application that executes some external OS - processes. There is a dispatcher thread, that starts the execution threads for some jobs. Every execution thread creates a Processes by calling runtime.exec(), adds this object to a TreeMap ( member of the dispatcher ), creates two threads for reading the output of the process ( sdtout & stderr ) and calls p.waitFor(). From this moment this thread is blocked. After the process is done, the results will be processed by this thread etc. Now I want to go ahead and let the application user kill the process. For them I let the dispatcher - thread, that has also a reference to the executed process to call destroy of it if necessary during the execution thread is blocked by waitFor() and two output threads are reading stdout & stderr. The problem is however that destroy() - call from another thread doesn't kill the subprocess. The subprocess is running until it's done or terminated from out of jvm. Have you an idea or example?
Thanks a lot & regards
Alex>
I know you have been discussing your problem is that
you can't kill a "sleep" process. But just to be
sure, I tested your description by one thread exec-ing
a "not-sleep" program, and then another thread had no
trouble killing it.
I took your code and wrote a program around it such
that
Thread1 :
- creates a Job (but not a "sleep" job); creates a
JobMap ; puts Job in JobMap
- starts Thread2 (passing it JobMap)
- sleeps 15 seconds
- calls Job.kill() (your method)
Thread2 :
- gets Job from JobMap
- calls Job.execute() (your method)
It's quick and dirty and sloppy, but it works. The
result is when the kill takes place, the execute
method (Thread2) wakes from its waitFor, and gets
exitValue() = 1 for the Process.
so,
In order to kill the sleep process, which (according
to BIJ) is not the Process that you have from exec
call, maybe the only way to kill it is to get its PID
an exec a "kill -9" on it, same as you said you had to
do from the commandline. I don't know if you can get
the PID, maybe you can get the exec-ed process to spit
it onto stdout or stderr?
(I am on win, not *nix, right now, so I am just
throwing out a suggestion before bowing out of this
discussion.)
/MelHi Mel,
yes, it should work right on windows because you created probably the shell by cmd /c or something like this. If you kill the cmd - process, everithing executed by the interpretter will be killed too. My application is running on Windows and unix. On unix I have to execute the process from a shell ( in my case it is the born shell ). The problem is however, that the born shell has another behaviour as cmd and doesn't die. Do you have an idea how to get the pid of the process started by sh without command line? To kill the processes from the command line is exactly what my customers do now. But they want to get "a better service" ...:-)
Regards
Alex -
I have an iPod Touch 5th Generation with iOS 8.1, my home button is broken and I've been using AssistiveTouch for months now. Today I just locked my iPod and it wouldn't unlock again, it doesn't respond at all, it won't turn on. It was almost fully charged, so it's not the battery. I followed the steps from this thread, but I'm still getting the "USBMuxListenerCreate: No Error" message in CMD Prompt. I bought my iPod abroad and even though I do have the warranty, I've been told at the iStore that it's not valid here, so going to the store isn't really an option. Any ideas how to solve this?
Sorry, but without a working home button it is not possible to reset or restore your device. You should visit an Authorized Appel Service Provider or Apple Store to get it serviced. The warranty for an iPod is not limited to the country where it has been bought, check here: one-year limited warranty
Jailbraking the device will void the warranty.
You can check the warranty status by inserting the serial number on this page: https://selfsolve.apple.com/agreementWarrantyDynamic.do
A list of Authorized Apple Service Providers can be found here: iPod touch - Contact Us - Apple Support -
Updating CniNumEdit from another thread
I get the following Exception,
First-chance exception in pmdcsimulator.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
My call Stack looks as below,
KERNEL32! 77f1d479()
MSVCRTD! _CxxThrowException@8 + 57 bytes
AfxThrowOleDispatchException(unsigned short 0, const char * 0x00433e1c, unsigned int 0) line 1574
PMDCSIMULATOR! NI::CNiControl::CheckThreadId(void) + 91 bytes
PMDCSIMULATOR! NI::CNiControl::ValidateControl(void) + 22 bytes
PMDCSIMULATOR! NI::CNiNumEdit:etValue(double) + 62 bytes
CPmdcsimulatorDlg::AcquisitionWorkFunction() line 1147
CPmdcsimulatorDlg::AcqProcessThreadFunction(void * 0x0012f2dc) line 1159
_AfxThreadEntry(void * 0x0012ec58) line 112 + 13 bytes
_threadstartex(void * 0x010
96f80) line 212 + 13 bytes
KERNEL32! 77f04ede()
How do I update the control..?The UI control classes in Measurement Studio 1.0.1 do not support access from other threads. The next release of Measruement Studio will remedy this problem. Until then, there is an example program that shows how you can use a user message to work around this here: http://zone.ni.com/devzone/devzoneweb.nsf/opendoc?openagent&24C350515009D6A1862569AC0073ACC6&cat=61B119A9F74ADC07862568C50070CE22
Best Regards,
Chris Matthews
Measurement Studio Support Manager
Maybe you are looking for
-
'device media processor busy' when watching youtube
Am having problem watching video on youtube..it is just saying 'device media processor busy'please what can I do to solve this problem?my email is, [personal information removed]. Waiting for your reply
-
Hello, I have developed ALV Gird using OO.While iam trying to download i.e thru Export--local file path . System is throwing dump. Thanks.
-
App or "button" to delete all currently open apps
I was wandering if there was an app or button that we could press to delete all of the open apps in the background rather than having to press them one at a time. I am sure this is an Apple software development issue but wandered if anyone has any id
-
Trouble selecting menu item using AppleScript
Now that iWork Numbers 3.2 has added the ability to hide columns and rows via the menubar, I'm trying to make it work in an Applescript using system Events and the click menu item command, but no dice. Any ideas? tell application id "com.apple.iWork
-
Idk about anyone else but my iPhone 5 is exceeding expectations for battery life in my book. I unplugged my phone at 8am and used it heavily until 1pm. Then less from 2-7. I hadn't received any battery alerts when I got home around 730 and plugged it