Application crashes on MediaPlayer play() method for a Mp4 file
Hi All,
I am using JavaFx 2.2.3 and jdk 1.7.0_09
I am facing some issue with MediaPlayer behaviour when I am selecting a perticular file and playing the media file it crashes the Application and never reflecting any of the error or Exception.
I has used the downloaded file from the youtube the file link is as bellow.
http://www.youtube.com/watch?v=u516F75JcRk
Hi All,
I am using JavaFx 2.2.3 and jdk 1.7.0_09
I am facing some issue with MediaPlayer behaviour when I am selecting a perticular file and playing the media file it crashes the Application and never reflecting any of the error or Exception.
I has used the downloaded file from the youtube the file link is as bellow.
http://www.youtube.com/watch?v=u516F75JcRk
Similar Messages
-
How to create a method for reading a file
i tried to make it as static method for reading a file and
then to return string
is this code correct?
public static String fileMaterial(String fileName)
fileReader = new BufferedReader(new FileReader(fileName));
info = fileReader.readLine();
while(school != null) {
return info;
info = fileReader.readLine();I created a class you might want to look at. I come from a world of C and love fgets() and other FILE stream functions. I created a class that uses the Java I/O buts to the calling application behaves like fgets and such. The block of code where I do the calling in the calling program even looks like C. In my class I capture almost all errors and set error buffers to the errors. The calling program looks at the return to see if it succedded or errored.
BuffIO new = BuffIO.fopen("fiilename", "r");
String s;
if((s = new.fgets()) == null)
System.err.println("error reading file: " + new.ferror());
That would be waht the calling program does -
What's the best method for securely erasing files on OS X?
Hello,
I'm looking for a method for securely erasing files on OS X.
I know OS X has the srm command doable in the Terminal, but this command uses the 35-pass Gutmann algorithm which is, to me, obsolete as of now.
Do you know modern methods for securely erasing files?baltwo wrote:
Thanks. It didn't show up with a [redacted] search.
There, fixed it for you. -
What is the mp4 setting for GoPro mp4 files?
Hi all,
I have edited GoPro mp4 1080-60 files that I want to upload to youtube.
Since it's consider the best for youtube, I want to keep the mp4 format. So I'm using AVCHD MP4-H.264 1920x1080 as output selection which appears to be a no brainer, but youtube rejects the file apparently, since the will only play at 380, max rez.
It's not really working. I thought it would be pretty straight forward as Gopro has to be very popular device.
What is the optimal mp4 setting for GoPro mp4 files?
Thanks
Den
PS Premiere Elements 13, PC on Win7 64Dniss
It happens to all of us. We can upload our HD footage (example AVCHD/MP4 H.264 1920 x 1080p30) to YouTube, but
YouTube converts the video to a flash format and displays it in its default viewing setting which is not HD, typically
480p or less.
So, you or your viewer is going to have to set the viewing setting to HD before viewing your work in order to get
decent display quality.
ATR -
Best method for archiving .mpp files on a separate server or location?
We want to be able to run a program or job on Project Server 2013 that will export all current published project .mpp files to a separate server or location on our network. What is the best, or suggested, method for something like this? Our managers want
to have this job run on a weekly or bi-monthly basis in order to have backup files of each active project schedule. This would be beyond the Project Server archive database. This would be for Business Continuity purposes of having those schedules available
should our servers ever crash.
Any help would be much appreciated. I am not a developer, but if there is code available for something like this we have developers in-house that can perform the work.
Thank you,
Travis
Travis Long IT Project Manager Entry Idaho Power Co. Project Server AdminProject server already has an archiving mechanism which backs up project plans based on schedule and maitains versions of it which can be restored at any point ? check administrative backup in central Admin under PWA settings
However I wouldn't say this is the best method, but you can run a macro which would export all projects and save it at a location(could be network file share), Something like this (havent tested it recently with 2013 but i believe should work
Sub Archiving()
Dim Conn As New ADODB.Connection
Dim Cmd As New ADODB.Command
Dim Recs As New ADODB.Recordset
'Connect to Project Server Reporting DB, Get Project Names
Conn.ConnectionString = "Provider=SQLOLEDB;Data Source=servername;Initial Catalog=ProjectServer_Reporting;User ID=; Password=; Trusted_Connection=yes"
Conn.Open
With Cmd
.ActiveConnection = Conn
.CommandText = "Select ProjectName From MSP_EpmProject_UserView"
.CommandType = adCmdText
End With
With Recs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open Cmd
End With
Dim prjName As String
Dim ArchivePrjName As String
Application.Alerts (False)
If Recs.EOF = False Then
Recs.MoveFirst
For x = 1 To CInt(Recs.RecordCount)
prjName = "<>\" + Recs.Fields(0)
FileOpenEx Name:=prjName, ReadOnly:=True
ArchivePrjName = "C:\Temp\" & prjName & "4Sep2014_9PM"
FileSaveAs Name:=ArchivePrjName, FormatID:="MSProject.MPP"
FileCloseEx
prjName = ""
Recs.MoveNext
Next x
End If
Recs.Close
Conn.Close
End Sub
Let us know if this helps
Thanks | epmXperts | http://epmxperts.wordpress.com -
Why no simple method for reading text files
I'd like to know, after all this time why there is no simple method of reading ext files into a string.
Yes, yes, I know all about buffered readers, (it took me long enough to figure them out) but they are cumbersome and seem to change every release (how many file methods have been deprecated...)
Here's what I'm looking for:
file.open();
file.read(String);
file.close();
No single character at a time, no loop - the whole file into a single string in one shot. If buffers are used, i want it hidden.
Perl, PHP, VB, C# all have this. Even Java has it when you write to a file.
So why not on read?
Yes, buffered streams are very elegant, but for what most programmers want to do, they are overkill and annoying.Just Dennis Ritchie's little joke.
Do you have a better reason for wanting the feature
other than that some other languages have it?Yes. It would save me time and help dozens of new programmers who continually ask this question in this and other forums. It is in other languages because people use it and want it - clearly Jarkata saw the need. If you don't like the idea, then I won't argue the point. We agree to disagree.
Also did you have an answer for my question?in java.io.file you can do the following: (i've used it, it works) Granted, you still have to use the buffered output streams, which in my opinion should be abstracted for a simple text read and write.
BufferedWriter outputStream = new BufferedWriter(new FileWriter(fileNewPath));
outputStream.write(fileContent);
outputStream.close(); -
MSO 2010 Application deployment hangs if detection method for presence of deployment is specified
SCCM 2012 R2 is configured to deploy MSO 2010 to our systems, even the ones that already have it deployed. Regular deployment does not re-install MSO 2010 because it detects it already installed on a system, so I added "Detection Method" and configured
it to look for a file "mso_installed.txt" in C:\WINDOWS. A custom MS Office package was created to place this file into C:\WINDOWS during the setup as part of App deployment.
The logic is: if the app deployment does NOT find this file in C:\windows, it will force MSO reinstall. Introducing this method appears to hang the setup. I can see that deployment shows up in Software Center, content is downloaded, status changes to "installing"
and then nothing happens. Setup32.exe process appears to sit doing nothing - no change in CPU or MEM utilization. Eventually, the status changes to "Past due - will be installed".
We currently have a deployment that works, but doesn't have the detection method logic above. What could be causing this deployment not to work and if my method above is not ideal, what are my options for forcing re-install of the app, even if already present
on the system?Log contents are pasted below:
<![LOG[ Prepared working directory: C:\Windows\ccmcache\9]LOG]!><time="07:25:05.581+300" date="02-25-2015" component="AppEnforce" context="" type="1" thread="444" file="appcontext.cpp:189">
<![LOG[ Prepared command line: "C:\Windows\ccmcache\9\setup.exe" /config \\scdp01\staging$\MSO2010PRO_SP2\ProPlus.WW\config.xml]LOG]!><time="07:25:05.592+300" date="02-25-2015" component="AppEnforce"
context="" type="1" thread="444" file="appcontext.cpp:338">
<![LOG[ Executing Command line: "C:\Windows\ccmcache\9\setup.exe" /config \\scdp01\staging$\MSO2010PRO_SP2\ProPlus.WW\config.xml with system context]LOG]!><time="07:25:05.593+300" date="02-25-2015" component="AppEnforce"
context="" type="1" thread="444" file="appexcnlib.cpp:201">
<![LOG[ Working directory C:\Windows\ccmcache\9]LOG]!><time="07:25:05.595+300" date="02-25-2015" component="AppEnforce" context="" type="1" thread="444" file="appexcnlib.cpp:215">
<![LOG[ Post install behavior is ProgramReboot]LOG]!><time="07:25:05.774+300" date="02-25-2015" component="AppEnforce" context="" type="1" thread="444" file="appcommon.cpp:1094">
<![LOG[ Program will restart the computer after the enforcement...]LOG]!><time="07:25:05.776+300" date="02-25-2015" component="AppEnforce" context="" type="1" thread="444"
file="appcommon.cpp:1099">
<![LOG[ The program rebooting flag has already been created before.]LOG]!><time="07:25:05.777+300" date="02-25-2015" component="AppEnforce" context="" type="2" thread="444"
file="appcommon.cpp:1363">
<![LOG[ Waiting for process 3524 to finish. Timeout = 120 minutes.]LOG]!><time="07:25:05.781+300" date="02-25-2015" component="AppEnforce" context="" type="1" thread="444"
file="appexcnlib.cpp:1958">
<![LOG[Exceeded timeout of 120 minutes while waiting for process 3524 to finish.]LOG]!><time="09:25:05.903+300" date="02-25-2015" component="AppEnforce" context="" type="2" thread="444"
file="appexcnlib.cpp:1972">
<![LOG[WaitForRunningProcess failed. Error 0x87d00213.]LOG]!><time="09:25:05.920+300" date="02-25-2015" component="AppEnforce" context="" type="3" thread="444" file="appexcnlib.cpp:1988">
<![LOG[CMsiHandler::CompleteEnforcement failed with 0x87d00213]LOG]!><time="09:25:05.938+300" date="02-25-2015" component="AppEnforce" context="" type="3" thread="444" file="msihandler.cpp:320">
<![LOG[CAppProvider::CompleteEnforcement failed with error 0x87d00213]LOG]!><time="09:25:05.943+300" date="02-25-2015" component="AppEnforce" context="" type="3" thread="444" file="appprovider.cpp:2544">
<![LOG[++++++ Failed to enforce app. Error 0x87d00213. ++++++]LOG]!><time="09:25:05.963+300" date="02-25-2015" component="AppEnforce" context="" type="3"
thread="444" file="appprovider.cpp:2467">
<![LOG[+++ Starting Install enforcement for App DT "Microsoft Office Professional Plus 2010 - Windows Installer (*.msi file)" ApplicationDeliveryType - ScopeId_D8679AD5-B893-419B-8D14-FCB316DEB10C/DeploymentType_6ef2b4c3-b40f-4697-bf16-b673c5d3669d,
Revision - 2, ContentPath - C:\Windows\ccmcache\9, Execution Context - System]LOG]!><time="09:48:04.703+300" date="02-25-2015" component="AppEnforce" context="" type="1" thread="1404" file="appprovider.cpp:1702">
<![LOG[ A user is logged on to the system.]LOG]!><time="09:48:04.709+300" date="02-25-2015" component="AppEnforce" context="" type="1" thread="1404" file="appprovider.cpp:2083">
<![LOG[ Performing detection of app deployment type Microsoft Office Professional Plus 2010 - Windows Installer (*.msi file)(ScopeId_D8679AD5-B893-419B-8D14-FCB316DEB10C/DeploymentType_6ef2b4c3-b40f-4697-bf16-b673c5d3669d, revision 2) for system.]LOG]!><time="09:48:04.718+300"
date="02-25-2015" component="AppEnforce" context="" type="1" thread="1404" file="appprovider.cpp:2148">
<![LOG[+++ Application not discovered. [AppDT Id: ScopeId_D8679AD5-B893-419B-8D14-FCB316DEB10C/DeploymentType_6ef2b4c3-b40f-4697-bf16-b673c5d3669d, Revision: 2]]LOG]!><time="09:48:04.773+300" date="02-25-2015" component="AppEnforce"
context="" type="1" thread="1404" file="localapphandler.cpp:291">
<![LOG[ App enforcement environment:
Context: Machine
Command line: setup.exe /config \\scdp01\staging$\MSO2010PRO_SP2\ProPlus.WW\config.xml
Allow user interaction: No
UI mode: 1
User token: null
Session Id: 4294967295
Content path: C:\Windows\ccmcache\9
Working directory: ]LOG]!><time="09:48:04.775+300" date="02-25-2015" component="AppEnforce" context="" type="1" thread="1404" file="appcontext.cpp:85">
<![LOG[ Prepared working directory: C:\Windows\ccmcache\9]LOG]!><time="09:48:04.779+300" date="02-25-2015" component="AppEnforce" context="" type="1" thread="1404" file="appcontext.cpp:189">
<![LOG[ Prepared command line: "C:\Windows\ccmcache\9\setup.exe" /config \\scdp01\staging$\MSO2010PRO_SP2\ProPlus.WW\config.xml]LOG]!><time="09:48:04.785+300" date="02-25-2015" component="AppEnforce"
context="" type="1" thread="1404" file="appcontext.cpp:338">
<![LOG[ Executing Command line: "C:\Windows\ccmcache\9\setup.exe" /config \\scdp01\staging$\MSO2010PRO_SP2\ProPlus.WW\config.xml with system context]LOG]!><time="09:48:04.786+300" date="02-25-2015" component="AppEnforce"
context="" type="1" thread="1404" file="appexcnlib.cpp:201">
<![LOG[ Working directory C:\Windows\ccmcache\9]LOG]!><time="09:48:04.788+300" date="02-25-2015" component="AppEnforce" context="" type="1" thread="1404" file="appexcnlib.cpp:215">
<![LOG[ Post install behavior is ProgramReboot]LOG]!><time="09:48:04.906+300" date="02-25-2015" component="AppEnforce" context="" type="1" thread="1404" file="appcommon.cpp:1094">
<![LOG[ Program will restart the computer after the enforcement...]LOG]!><time="09:48:04.907+300" date="02-25-2015" component="AppEnforce" context="" type="1" thread="1404"
file="appcommon.cpp:1099">
<![LOG[ The program rebooting flag has already been created before.]LOG]!><time="09:48:04.908+300" date="02-25-2015" component="AppEnforce" context="" type="2" thread="1404"
file="appcommon.cpp:1363">
<![LOG[ Waiting for process 3932 to finish. Timeout = 120 minutes.]LOG]!><time="09:48:04.913+300" date="02-25-2015" component="AppEnforce" context="" type="1" thread="1404"
file="appexcnlib.cpp:1958"> -
Play back for Archived audio file
First of all, forum users, please pardon my ignorance with Documentum...my first experience with this after many years in SAP.
I don't see any posts or articles on this subject. I'm attaching a WMA file to Documentum. I need to be able to play that back, using the user's PC player, in this case Windows Media Player. Has anyone seen documentation on how to call media player from frontend services and pass the audio file, or can you suggest the "best practice" for this?
My PDFs display easily using ARCHIVOBJECT_DISPLAY, and I suppose I expected that FM to decide how to handle the file, but it seems to work only for PDFs, so far, for me.Found way to do...
read file back from documentum
download to desktop
call frontend services execute. -
Best Method for Strechable .swf file in horizontal but not vertical?
What is the best method to create an easy to use flash file
that will allow horizontal scaling with a fixed vertical size?
This will be for a blog header in a variable width design at
Make Light Real.com
I have tried the basic stage properties and found
StageScaleMode.NO_BORDER to be an ok solution, but I'm not
sure what will happen when I begin to drop active clips in on the
stage. Will the stage operate from a fixed point or how will the
clips orient to the stage as it expands?
My understanding of actionscript is just enough to hack
pieces of what I need together: but if you could enlighten me with
the most basic understanding of which method would work best for me
I'd apprecate it. I also have this method to alter the background
(as a clip):
quote:
Stage.addListener(ecout);
// function which replaces all the elements with the new
values
slide = function () {
photo_mc._x = 0;
photo_mc._y = 0;
photo_mc._width = Stage.width;
photo_mc._height = Stage.width/rapp;
if (photo_mc._height<Stage.height) {
photo_mc._height = Stage.height;
photo_mc._width = Stage.height*rapp;
slide()
Should I just alter the variables there to lock the stage
height?
Thanks for your time in answering.When you export your movie you can select the scaling options
for width and height.
Try selecting one but not the other.
Cheers,
Gorka
http://www.AquiGorka.com/blog -
Automated method for downsizing PDF files?
i have run into the limit of a 1 TB disk and need to return to an old problem where I have a lot of scanned documents that i printed to PDF using Preview and which are now taking up a ton of space. Some of the are 100 GB for roughly 10 or 20 page documents.
can anyone help me with a workflow that would enable me to select all PDF over - say - 5 GB in size and to downsample them?
i have a set of filters that will do this by selecting one by one and i do have Adobe Acrobat Pro (i now have it) - and my recollection was that there was a set of AUTOMATOR scripts that let me drag PDF files over a folder to downsample them? does anyone remember what this was and or have advice? i'm an Automator newbie so the first one of two runs at this were not easiest enough for me to implement at the time I first started researching it...
TIAhotwheels 22 wrote:
can anyone help me with a workflow that would enable me to select all PDF over - say - 5 GB in size and to downsample them?
If you have Acrobat Pro, you should use it. You don't need Automator.
There are several options. Fastest is Document > Reduce File Size, which works on batches of files.
Finer control can be achieved with Advanced > PDF Optimizer. Experiment with different settings on a typical file; when you've got what you want, build a batch sequence in Advanced > Document Processing > Batch Processing, then run it on the select files. (Details in "Processing in Batches" in Acrobat's Help.)
To find the files you want to work on, use, of course, Spotlight, with suitable Kind and Size search criteria.
(There are various options to reduce PDF file sizes, including something like PDF Shrink, or Automator actions involving Quartz filters, which can be customised with the ColorSync Utility. But none are as good as Acrobat Pro, so, if you spent the big bucks buying it, you might as well get your money's worth.) -
Two different methods for downloading a file using URL...
I was just wondering if someone could shed some light on whether I should be downloading files using java.net.URL or java.net.URLConnection
Here are two ways that I have found to work (and yes I realize that one is outputting to a stream and the other is getting put into a StringBuffer):
InputStream in = url.openStream();
byte[] b = new byte[buffSize];
fileOutStream = new FileOutputStream(fileToBeCreated);
while ((bytesRead = in.read(b)) != -1){
totalFileSize+=bytesRead;
fileOutStream.write(b, 0, bytesRead);
}and
URLConnection _con = url.openConnection();
in = new BufferedReader(new InputStreamReader(_con.getInputStream()));
String inputLine;
while ((inputLine = in.readLine()) != null){
webPageStringBuff.append(inputLine+"\r\n");
}In both of the above cases url is just a URL object that has already been instantiated with a valid URL.
So, just to re-iterate, I realize that the output portion of this code is doing something different (i.e. writing to a stream as opposed to appending to a StringBuffer) but I would like to know whether there is any reason to choose using the URLConnection to get the stream as opposed to using the URL to get the stream.
Thanks,
Timhi,
try out the following code
// Program: copyURL.java
// Author: Anil Hemrajani ([email protected])
// Purpose: Utility for copying files from the Internet to local disk
// Example: 1. java copyURL http://www.patriot.net/users/anil/resume/resume.gif
// 2. java copyURL http://www.ibm.com/index.html abcd.html
import java.net.*;
import java.io.*;
import java.util.Date;
import java.util.StringTokenizer;
class copyURL
public static void main(String args[])
if (args.length < 1)
System.err.println
("usage: java copyURL URL [LocalFile]");
System.exit(1);
try
URL url = new URL(args[0]);
System.out.println("Opening connection to " + args[0] + "...");
URLConnection urlC = url.openConnection();
// Copy resource to local file, use remote file
// if no local file name specified
InputStream is = url.openStream();
// Print info about resource
System.out.print("Copying resource (type: " +
urlC.getContentType());
Date date=new Date(urlC.getLastModified());
System.out.println(", modified on: " +
date.toLocaleString() + ")...");
System.out.flush();
FileOutputStream fos=null;
if (args.length < 2)
String localFile=null;
// Get only file name
StringTokenizer st=new StringTokenizer(url.getFile(), "/");
while (st.hasMoreTokens())
localFile=st.nextToken();
fos = new FileOutputStream(localFile);
else
fos = new FileOutputStream(args[1]);
int oneChar, count=0;
while ((oneChar=is.read()) != -1)
fos.write(oneChar);
count++;
is.close();
fos.close();
System.out.println(count + " byte(s) copied");
catch (MalformedURLException e)
{ System.err.println(e.toString()); }
catch (IOException e)
{ System.err.println(e.toString()); }
ok -
What is the proper method for embedding image files in a documentDB model?
I'm working on some standard CMS functionality to produce simple service articles for a website. I'm looking at two possible options but I'm not sure which way to go.
Example 1:
I really want to create a value object to represent the image such as
class ImageFile
public byte[] fileData { get; set;}
public string contentType { get; set;}
class WebArticle
public ImageFile {get; set}
public string someContent { get; set; }
Or am I stuck with storing the image seperately w/ Azure Storage and just simply using my documentDB object to reference it's url via something like this:
class WebArticle
public string imageUrl { get; set; }
public string someContent { get; set; }
I see that there is some way to add "Attachments" but I'm not really clear on what the attachments are for. I don't think that I am reading the correct documentation. Is there a webpage out there that clarifies this. A kindle book on Amazon maybe?
I'm looking forward to using this new technology. Ryan's Channel 9 presentation on the subject really caught my attention.
Thank,
Dan JeromeRyan C:
https://code.msdn.microsoft.com/Azure-DocumentDB-NET-Code-6b3da8af
Mimi G:
http://azure.microsoft.com/en-us/documentation/articles/documentdb-resources/ -
Why won't premiere CS6 play audio for imported AVCHD files on my window 7 laptop?
After I've imported the AVCHD file the video plays just fine, but the audio isn't there at all. I still have the original video files on my SD card, I've tried Wondershare to convert the file, but the video became corrupted. Any tips?
Thanks!&therigbys wrote:
I installed Premier Pro CS6 last week, so I believe it's the most updated version.
Not necessarily, go to Help > Updates. We're on Premiere Pro CS6 (6.0.3) in Windows now.
therigbys wrote:
I was running Spotify, Chrome, & Microsoft Word when I imported the footage.
Uninstall Spotify and see if that helps. I've heard about some crazy things related to that app. Better to run all these apps on a cheap secondary computer or iPad. -
I have a Mac Book Pro w/ Retina. What kind of connection do I need to attach to my TV which has HDMI?
.xlsx files require Excel 2008 or 2011 (last two Mac versions of Office). Since you're in Lion, you must have one or the other, so they should work. Can you drag and drop onto Excel, or choose to open them from within the app?
-
Method for quickly putting file names into IPTC core description?
I would like to put the file names into the IPTC core description. The files are all named differently .Is there a way to batch this or any other way of automatically including it so that I don't have to do each file separately? Or perhaps there is a plug in?
I am using PS5/ bridge on a mac.You only need a script… not a plug-in to do this. Search the bridge scripting forum as Im sure Paul has posted several variations of scripts that do this…
Maybe you are looking for
-
Hello - I am having a problem associated with iPhoto 11. in iPhoto 09, I used to go to Originals folder and find my events as folders sorted by yearly folders. It is till the same, except that originals folder now point to Masters folder AND 1. the y
-
HCM = FI: Posting an IDOC via Workflow
Hello, I hope I'm right here in this part of the forum. In addition I hope my explanations will be good enough to understand. Every month the HCM-System send IDOCs (payment of salary) to the FI-System. Everything works well (in partner profile (WE20)
-
Portal integration with workflow and contracts
gurus, are there any whitepapers on the integration of the portal with oracle workflow and oracle contracts. it would be great help ... has anyone done this before ...? pls reply ... thanx a bunch ...
-
Nikon D300 and chromatic aberration
I've noticed quite pronounced fringing in raw files brought into Lightroom 1.4 from a Nikon D300 and it can't be adequately fixed using the Lens Correction controls. Creating jpegs in-camera using RAW+jpeg gives jpegs with far better fringe reduction
-
photoshop, illustrator, indesign, safari, mail quit unexpectedly today it's photoshop see crash report for photoshop below: Date/Time: 2007-07-31 15:33:45.675 -0400 OS Version: 10.4.10 (Build 8R218) Report Version: 4 Command: Adobe Photoshop CS2 Path