Open video file in MPlayer on Ubuntu

Good day !
Can your please help me.
I need to run a video file im MPlayer on Ubuntu via Java
I make so (in main method):
Runtime.getRuntime().exec("/usr/bin/mplayer -slave -quiet -idle home/andrew/downloads/play.avi");But nothing happens. I don't know why. Can your please help me in advice ?

As a start you need to read the 4 sections of [http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html|http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html] and implement ALL the recommendations. Take particular note of those traps involved in not handling stdout and stderr properly and make sure you wait for the process to complete before exiting the program.

Similar Messages

  • When I try to open video files purchased through iTunes in Quicktime, I get the message: 'Error 23132: an unknown error occurred. This never happened until I updated iTunes, but when I try to go back to the previous version, I still get the message.

    When I try to open video files purchased through iTunes in Quicktime, I get the message: 'Error 23132: an unknown error occurred. This never happened until I updated iTunes, but when I try to go back to the previous version, I still get the message. It is more convenient for me to play videos in Quicktime since iTunes is such a memory hog. Please help.

    You may get better results if you switch to this alternate version: iTunes for Windows (64-bit - for older video cards) and, if needed, reinstall QuickTime. The new (nearly) all 64-bit version doesn't seem to play well with QuickTime. Perhaps if DRM authentication is required QuickTime needs to be able to see something that is part of the older 32-bit code.
    tt2

  • Error message when opening video files on z10

    when opening video files, showing error-the file can't be played due to an unexpected error(-3). request a solution to resolve this

    Hi and Welcome to the Community!
    Anytime random strange behavior or sluggishness shows up, the first thing to try is a proper reboot:
    Pre-BB10 Devices ONLY. With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes.
    BB10 Devices. Hold the top button down until the counter reaches zero. Wait for the device to be fully shut down (e.g., nothing at all displayed on the screen, no LED lights, etc.). Hold the top button until the red LED is lit. Wait through the full boot-up process. If this fails, you can attempt the battery-pull method above, but it is normally NOT recommended unless nothing else works.
    See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
    Otherwise, please provide additional details...for example:
    What, exactly is the true file format? Not simply the file extension, but the true format?
    Does the file extension match the true file format?
    Where was the file created?
    Does the file work on other devices?
    Do other format video files work OK on your device?
    What is your exact OS level, and what exact app are you using to try and play the file?
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Why does Firefox 4 not open video files (news and youtube) at all, but Firefox 3 and MSIE 8 open these video files quickly, all on my Dell Dimension 8250 desktop with MS Windows XL Pro?

    I subscribe to an Earthlink package of telephone and ISP through DSL in Dallas, Texas. To avoid the congestion (time outs and files not found) of the virtual "cloud" servers, as a workaround I connect to the Internet through dial-up on each session on my pc. There is only one pc or computer on my local network. I downloaded Firefox 4 RC and it failed (would not open video files on the Internet), so I removed the Firefox 4 RC program from my pc, and then I downloaded and installed Firefox 3.6.16, which works fine.
    My operating system is Windows XP Pro.

    Try disabling hardware acceleration. Many visual bugs can be attributed to issues with graphics drivers.
    (Firefox -> Options -> Advanced -> General -> [ ] Use hardware acceleration when available)

  • Why can't i open video file in photoshop cs5?

    why can't i open video file in pts cs5?
    i've already installed quick time but when i open video file, it appeared this
    can you help me with this problem please?
    ps: sorry for my bad English ToT

    We need to know the exact source of the file and what system you're on. Could simply be an unresolvable compatibility issue/ unsupported format.
    Mylenium

  • Configuration error opening video file.

    i get the configuration error that says the software requires certain hardware or software, which is missing. AGP graphic card
    i had an ati 9800 graphic card on my g4, now i get the error code. how can i solve this since my g5 duel has the apple graphic card?

    I have uninstalled and reinstalled all my software of Adobe looking for a solution. After uninstall I have use the adoble cleaner with a sussessfully notice after finished. I have try some of the steps adviced here in some other forums with similar troubles but got unsuccess results. at this point I have reinstalled all my software of Adobe in Win7 64 bit: photoshop CS6 extended and Lightroom 4. In both applications find the same message error when opening video files and both applications works perfect with all other image files: tiff, jpg, raw...
    for me its a weird situation that I have not found a clear answer to this problem if we think that I found other adobe users have previously noticed same or very similar experiences with the Dynamiclink Media Server and the "../../Src/directoryRegistry.cpp-283" error message.  Actually I wet to Adobe and tried to download the dynamiclink media server and install it manually and there is a failure message saying something that could not install it on this computer.....
    The same problem happens having or not having installe the Adobe application Manager which is now CCloud, in both cases is unable to open video files and in both cases the application crashes and have to use Ctl+Alt+Supr to close the Adobe crashed software... before and after being reinstalled a fresh version of my adobe software.

  • HT3775 The document "EK000011.AVI" could not be opened. A required codec isn't available.  Can anyone tell in very simple terms what I need to do?   I am trying to open video files to a mac

    The document “EK000011.AVI” could not be opened. A required codec isn't available.  Can anyone tell in very simple terms what I need to do?   I am trying to open video files to a mac and the aformentioned message comes up

    Download and install the free VLC: http://www.videolan.org/vlc/download-macosx.html
    It runs a multitude of file formats.

  • I can't open video file in the page , i download and install flash many time but don't work , i use firefox 5 and windows 7

    i can't open video file in the page , i download and install flash many time but don't work , i use Firefox 5 and windows 7

    My current version of Chrome is having problems, too! It's so annoying. Anyone have any suggestions now? I basically can't view or download any PDFs because of this.
    Does anyone else think this is a problem not only with Adobe? I would think Apple would have something to do with this? Wouldn't they get some idea from the developer versions that no browser can open PDFs while running Lion!? Pretty bad customer service on the part of a company that prides itself on being VERY customer-friendly. Wouldn't you say?

  • HT3775 I could not open video file name with .flv

    I could not open video file name with .flv Please help to advise?

    Install Perian or use VLC.
    (86537)

  • Photoshop CS6 problem opening video files

    I have the trial for Photoshop CS6 and the other day I was opening video files to make gifs from perfectly fine, however, now when I try to open video files a box opens saying "Reading Video Format" and then it gets stuck and frozen. I left it for an hour, when it came back it was just the same, sometimes it makes my whole computer freeze. I've tried several times with different formats, nothing works and I cannot open any kind of video file now into Photoshop.
    Is this a common problem or is there anything I can do to sort it?

    I have exactly the same issue with Photoshop CS6. I cannot open video files, such as the FLV and Quicktime files I have on my PC, although these file formats work without a problem in Bridge CS6. When I attempt to open a video file, the progress bar hangs just before it reaches all the way across, and nothing happens. When I press 'Cancel', I get a message saying something like 'The file could not be opened because the DynamicLink Media Server is not available'. On a rare occasion, I can get Quicktime files to eventually open, but not without cancelling the progress in the way I have described, and trying repeatedly. However, I have NEVER managed to open FLV files by repeatedly attempting to open them in a similar way.
    Just installed the Dynamic Link Media Server CS6 Update 1.0.1 in the hope that it was a bug and this update cures this issue, as it said it fixes various bugs. It is just the same.
    Can anybody give me any suggestions as to what the problem might be?
    I do have Premiere Elements 8 and, although I cannot use FLV files with it because it does not support the FLV format, I can open Quicktime files (a format it supports) without a problem. I would like to be able to use video files with Photoshop CS6 but, unless I can figure out what the problem is, I can only use Premiere Elements 8 for any video projects.

  • Error opening video files: dynamiclinkmediaserver

    Error opening video files: dynamiclinkmediaserver has encountered an error.
    ../../Src/directoryRegistry.cpp-283
    It happens in any of the Adobe software I have installed: Bridge, Lightroom and Photoshop CS6 extended. Cannot work on video files and the software goes down and need to restart. running windows 7 64bit

    I have uninstalled and reinstalled all my software of Adobe looking for a solution. After uninstall I have use the adoble cleaner with a sussessfully notice after finished. I have try some of the steps adviced here in some other forums with similar troubles but got unsuccess results. at this point I have reinstalled all my software of Adobe in Win7 64 bit: photoshop CS6 extended and Lightroom 4. In both applications find the same message error when opening video files and both applications works perfect with all other image files: tiff, jpg, raw...
    for me its a weird situation that I have not found a clear answer to this problem if we think that I found other adobe users have previously noticed same or very similar experiences with the Dynamiclink Media Server and the "../../Src/directoryRegistry.cpp-283" error message.  Actually I wet to Adobe and tried to download the dynamiclink media server and install it manually and there is a failure message saying something that could not install it on this computer.....
    The same problem happens having or not having installe the Adobe application Manager which is now CCloud, in both cases is unable to open video files and in both cases the application crashes and have to use Ctl+Alt+Supr to close the Adobe crashed software... before and after being reinstalled a fresh version of my adobe software.

  • Safari tries to open video files with script editor!

    Help! I can't find a way to change Safari from opening video files online, such as short animations, with script editor. SE can't open the files, so they just can't be viewed since preferences has no place for me to change this weird default. Any ideas?

    Here are two examples, one a video clip and one an audio file:
    http://shop5.gospelcom.net/epages/AIGUS.storefront/434d2def0141d417272045579e790 659/Product/View/30&2D9&2D019
    this one has the link to the clip as a preview about halfway down the page.
    http://www.mastersofpediatrics.com/cme/cme2004/lecture16_1.asp
    This one has an audio file at the top of the box, it says the audio is 31 mins.
    Both of these the computer tried to open with Script Editor.
    Thanks, Rachel

  • HT204382 i can't open video file received through bluetooth

    i cant open video files received through bluetooth

    Do you know what format it is? Maybe VLC will open it:
    http://www.videolan.org/vlc/download-macosx.html

  • I am unable to open video files on this website.

    When I click on video links of the following website--http://tubtub.com/--I receive an error message that reads as follows:
    "File not found
    Firefox can't find the file at mms://TITLE.tubtub.com/.
    Check the file name for capitalization or other typing errors.
    Check to see if the file was moved, renamed or deleted.
    Try Again"
    I had initially seen a window that was named "Launch Application," which, seemingly, allowed one to choose an application by which to open the video links. I chose my VLC player to do this and checked a box to associate this "Launch application" window with the VLC player, but received an error message that VLC was unable to open the file that began with an "mms" URL. Then I was never able to get back to that "Launch application" window to select another application, such as Windows Media Player, Real Player, etc. I even tried uninstalling my Firefox browser and the VLC player and reinstalling them both, all to no avail.
    Please explain how I may get these video links to play and the "Launch Application" window to open again. I recall having used TubTub.com successfully before.
    Thank you.

    Hi mendcocr,
    Please see this document about configuring web browsers to display PDF files: http://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html.
    Please let us know if you need additional help.
    Best,
    Sara

  • Quicktime will not open video files - QuickTime couldn't parse it: -2048

    I just purchased a new Sony handycam so that I can make movies using iMovie. However, iMovie will not import the files from my camera and although the files show up on the drive as Quicktime MPEG files (with suffix MPG) neither Quicktime or iMovie will open the files. iMovie gives an error message saying "Quicktime couldn't parse it: -2048"
    Can anyone help - I really want to open the files in iMovie so that I can make videos and I'm worried that my expensive new Handycam is a worthless purchase!
    Thanks in advance...

    Your files are MPEG-2 and you need additional software to view them in QuickTime:
    http://apple.com/quicktime/mpeg2
    and a different application than iMovie to convert the audio portion:
    http://www.apple.com/downloads/macosx/video/mpegstreamclip.html

Maybe you are looking for