Getting supported formats

Hi everyone, I'm making a media player for my st 10 Java project and I have a problem. I'm trying to get a list of all supported video and audio formats as well as their file extensions, so that I can create an extension of FileFilter that will exclude all but supported files. So that I can make sure that any file selected and add to the playlist by JFileChooser can actually be played.
I messed around with PluInManager, but I can't understand how to use it to determine wether a specific file will be supported by the Player object.
Hope this is clear what I'm trying to do, its late and I'm tired :-)
thanks in advance to all you people with bigger brains than me!

Hi everyone, I'm making a media player for my st 10 Java project and I have a problem. I'm trying to get a list of all supported video and audio formats as well as their file extensions, so that I can create an extension of FileFilter that will exclude all but supported files. So that I can make sure that any file selected and add to the playlist by JFileChooser can actually be played.
I messed around with PluInManager, but I can't understand how to use it to determine wether a specific file will be supported by the Player object.
Hope this is clear what I'm trying to do, its late and I'm tired :-)
thanks in advance to all you people with bigger brains than me!

Similar Messages

  • JMF with Fobs4jmf:  Problem getting supported formats

    I'm trying to use JMF with fobs4jmf to try stitching together video files into a single file. Fortunately, I found a sample program to do just that in the SDN website (http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/Concat.html).
    I copied and pasted the Concat.java class in a new Eclipse Java class, set up the classpaths, and tested it. (I've gone through the pain of setting up and resetting classpaths so that the JMF diagnostics is able to detect the correct JMF installation in my machine).
    However, in the tryMatch method of Concat.java, I am getting an empty array of Format objects, represented by the "supported" variable, during a call to the following:
    {color:#0000ff}TrackControl tc = pInfo[0].tracksByType[type][trackID].tc;
    Format origFmt = tc.getFormat();
    Format newFmt, oldFmt;
    Format supported[] = tc.getSupportedFormats();
    for (int i = 0; i < supported.length; i++) {
    if (supported[i] instanceof AudioFormat) {
    // If it's not the original format, then for audio, we'll
    // only do linear since it's more accurate to compute the
    // audio times.
    if (!supported.matches(tc.getFormat()) &&
    !supported[i].getEncoding().equalsIgnoreCase(AudioFormat.LINEAR))
    continue;
    {color:#000000}Here's my problem: While on debug mode, I see that the "supported" variable shows an empty array, when I look deeper in the TrackControl tc variable and look the its supportedFormats instance variable, I can see that it has a value. For my testing, I used a .mov file and the supportedFormats variable contains an {color:#0000ff}AudioFormat{color} with the value {color:#0000ff}mp4a, 32000.0 Hz, 16-bit, Stereo, BigEndian, Signed, FrameSize=32 bits{color}.
    {color}
    {color:#000000}I can't get past through this hurdle for now. Why am I getting an empty array of Format objects when the TrackControl tc variable actually contains value in its supportedFormats property?
    I'd appreciate any help on this matter.
    Anthony
    {color}
    {color}

    I again don't have my code in front of me, but I did take a look at the sample code my code is based on...
    Format format = tracks.getFormat();
    if (tracks[i].isEnabled()) {
    supported = tracks[i].getSupportedFormats();
    Just a shot in the dark, but perhaps getSupportedFormats returns the empty set when the TrackControl object is disabled?
    Try enabling the TrackControl before you try to get its supported formats, and see if that changes the behavior in any sort of meaningful way?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Can't get add ons, addons video won't run 'no video support format'

    I was trying to download a coupon printer add on, but it didn't download. Trouble shooting video wouldn't play because it said 'no video support format'.

    Note that an 'no video support format' error is usually caused by web pages that use the HTML5 media player to play a video and either no suitable format is available or the server isn't configured properly and doesn't send the file with a supported MIME type.
    *https://developer.mozilla.org/Properly_Configuring_Server_MIME_Types
    *https://developer.mozilla.org/How_Mozilla_determines_MIME_Types
    You could try to see if you can open the video in a new tab via the right-click context menu (View Video).

  • Apple: Why isn't 16:9 a supported format?

    This has been bugging me for a couple of years now. And no - I'm not as stupid as the title suggests.
    But seriously. When I capture a 16:9 anamorphic file using the correct settings, or having edited and exported a 16:9 sequence... Why is everything squished and squashed when playing it in QTplayer or importing it as a clip in FCP? Or for that matter - why does DVDSP or Compressor not recognize the FCP-exported 16:9 sequence as that?
    If this metadata is such a big problem to pass on, I would at least reccomend 16:9 to be the default ratio while they embed a real flag for this! I mean. What format is most used by video-professionals these days? Is it 4:3? Or is it perhaps 16:9?
    I know about both square and rectangular pixels, and I know a whole lot of workarounds to get the result as I want it. But they all require manual punch-in, they are all multiple step-processes that take time, and they all have pitfalls. And seriously - even if I get it - people around me don't... I'm kinda getting tired of telling everybody "You have to do this and this stupid thing..."
    Aren't these things just supposed to "work"?
    So... Why isn't 16:9 a supported format?

    I have to deal with this in my real job and to be honest, it gives me a huge headache; integrating SD, analog and HD material into one show whatever the flavor of the day is - is that video cropped, squished or stretched or letterboxed or pillarboxed....wait, I need that to be stretched from that show and that to be cropped from that show and and and and....
    I can't provide a solution as I don't understand it all myself, however, to answer your query of what aspect ratio is predominantly used it is still 4:3 NTSC here in the U.S. Until all programming is HD and everyone has purchased an ATSC tv, I think we'll be stuck with this issue.

  • Just got a new Macbook Pro with Maverick. In Mail, how do you get the format bar to show?

    Just got a new Macbook Pro with Maverick. In Mail, how do you get the format bar to show?

    You are still under warranty.  Call Apple Care. Make sure you get a case number as all repairs have an additional 90 days of warranty. 
    #1 - You have 14 days from the date of purchase to return your computer with no questions asked.
    #2 - You have 90 days of FREE phone tech support.
    #3 - You have the standard one year Apple warranty.
    #4 - If you've purchased an AppleCare Protection Plan, your warranty last for 3 years.   You can obtain AppleCare anytime up to the first year of the purchase of your computer.
    Take FULL advantage of your warranty.  Posting on a message board should be done as a last resort and if you are out of warranty or Apple Care has expired.

  • I'm using DVD Studio pro to burn a dvd but it won't let me cause I keep getting a "Formatting Failed" error message.  It says "Formatting was not successful. Layer 0 exceeds max layer size allowed. Choose a suitable marker location." What does this mean?

    I'm using DVD Studio pro to burn a dvd but it won't let me cause I keep getting a "Formatting Failed" error message.  It says "Formatting was not successful. Layer 0 exceeds max layer size allowed. Choose a suitable marker location that will support this condition." What does this mean?
    Kris

    It means your file is too large to fit on a single layer disk.
    Recompress to keep the overall size (audio,video and menus) below 4.5GB
    x

  • I downloaded a new book and when i try to open get book format error. How do i resolve

    I downloaded a new book and when i try to open get book format error. How do i resolve

    Hello
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    Using Game Center
    http://support.apple.com/kb/ht4314
    If the issue persists, or certain features of a game aren't working as expected (leaderboards, achievements, and so on), use the App Store to report the problem to the developer
    Best of luck,
    Mario

  • Why is Microsoft Publisher not a supported format for creating pdfs?

    I am a newsletter editor and I have been creating pdfs from Publisher for years. However, today when I went to my Adobe Acrobat X to create a pdf from a MS Publisher file, I discovered that MS Publisher is not on the Files of type list of supported formats. Luckily, there is a toolbar tab in MS Publisher to convert the file to an Adobe Acrobat (.pdf) file. Why can I get there from MS Publisher and not from Adobe Acrobat X?
    Also, I like to use different fonts in my newsletter, but the conversion process baulks. Is there a list of no-no fonts for conversion?

    The requisite programming / coding to assure PDFMaker can function with the MS Office applications is non-trivial.
    Only MS Word has the "full boat". Historically it was MS that asked Adobe to come up with what is now called "PDFMaker".
    Specifically the request was for MS Word. An overwhelming number of MS clients (enterprise in particular) wanted an easier way to create not only PDF but better, interactive PDF.
    The "success" was announced in a major MS hosted "conclave" back in the day.
    (a good history research project for those who are skeptical)
    Some "outlying" MS applications have never been PDFMaker friendly. MS Publisher and MS Access are two of the more notables.
    As Adobe provides a page layout program of its own (InDesign - and, yes Publisher too is a "page layout" application) I've always found it odd that Adobe's Acrobat team expended resources on MS Publisher.
    I've had MS Publisher with every version of Office I've had. While I do not use it "professionally" (FrameMaker please) I use it enough to know it does not support PDFMaker functionality very well.
    As PDF is an ISO Standard and Microsoft (as well as Adobe) are active participants on the U.S. Committee for PDF-Reference (ISO 32000) the question is better posed to Microsoft's MS Publisher management.
    The questions you need to ask of the MS Publisher development team are:
    "Why are you not providing acceptable support for output of well-formed, ISO 32000 compliant PDF (which by the way would include PDF/UA-1 compliance ablity)?
    The MS Word team is doing it.
    Adobe's InDesign team is doing it.
    So, what is the problem with the MS Publisher team?
    In short the issue rests with the business decisions made by the MS Publisher team's management.
    Again, PDF is an ISO STANDARD not something held captive by Adobe.
    Be well...

  • Canon Powershot S100V Supported Format?

    Does anyone know if the Canon S100V is a supported format? I have installed the Camera Raw 6.6 plug-in to CS5 but I cannot open the S100V images as I still get the 'camera model not supported' error message. The Adobe documentation says that Camera Raw 6.6 supports the S100 but there is no mention of the S100V (Chinese version of the camera).

    madjohn1 wrote:
    … Adobe documentation says that Camera Raw 6.6 supports the S100 but there is no mention of the S100V (Chinese version of the camera).
    That would be enough to make that model not supported.  If it's not mentioned, it's not supported.

  • Supporting formats

    Can i get a list of video supporting formats in nokia 110

    Hi jomonjoseph
    Thank you for posting and welcome to Nokia forum! 
    For Nokia 110 video formats and other specification of your phone you may refer on this link.
    If my post helped you, please don't forget to click on the "White Star" and if it resolved your issue click on "Accept as Solution"

  • Trying to embed a video file in HTML5: ERROR=No video with supported format and MIME type found?

    Hello all!
    I am desparate for a solution. I am testing my site on Firefox and Explorer and still no sign of a functional video yet.
    Firefox: I get the error: No video with supported format and MIME type found.
    Explorer: I just get a distorted layout.
    Here is the code I am working on:
    <table id="Table_01" width="480" height="801" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td colspan="6">
                <img src="images/Video_01.jpg" width="480" height="114" alt=""></td>
        </tr>
        <tr>
            <td rowspan="3">
                <img src="images/Video_02.jpg" width="52" height="486" alt=""></td>
            <td colspan="4">
               <video controls width="376" height="221">
                 <source src="C:\Users\aalmeida\Videos\AEMC PEL 103 6 Channel, Power & Energy Logger - with Display (Part 1).mp4" type="Video/Mp4"/>
                 <source src="C:\Users\aalmeida\Videos\AEMC PEL 103 6 Channel, Power & Energy Logger - with Display (Part 1).webm" type="Video/WebM"/>
                 <source src="C:\Users\aalmeida\Videos\AEMC PEL 103 6 Channel, Power & Energy Logger - with Display (Part 1).oggtheora.ogv" type="Video/Ogg"/>
                 </video>
    Please tell me that there is something missing in the code. I have spent a lot of time uninstalling-updating Firefox plugins, added MIME types in the Internet Information Manager (I'm on Windows 7)
    and  seriuously hit a dead end with this!
    Any advice would be muchly appreciated!!!
    Thanks
    ~LA

    As Jon said, you must declare the page as HTML5.
    And your server may not be set up to deliver video as a binary file if it is an .OGG file. I have not seen this problem with .MP4 or .M4V in the past, but every server is a little different.
    To add a MIME type, you need to change your .htaccess file on an Apache server thusly:
    AddType audio/ogg .oga
    AddType video/ogg .ogv
    AddType application/ogg .ogg
    AddHandler application-ogg .ogg .ogv .oga
    Additionally, MIME types can usually be changed on a server's Control Panel. One can also ask one's hosting provider to do this as well.
    Firefox makes it necessary to use OGG files. Webkit-based browsers will deal with .M4V or .MP4 and I understand Internet Exploder will work with the latter two as well.

  • How to get Date Format from Local Object.

    Hi All,
    I am new to Web Channel.
    I need to know Date format From date of locale.
    suppose there is a date "01/25/2010" date in date field I want to get string "mm/dd/yyyy". Actually I have to pass date format to backend when I call RFC. 
    Is there any way to get Date format from "Locale" object. I should get date format for local object
    I get local object from "UserSessionData" object but how to get Date format from it.
    I am not looking for Date value. I am looking for current local date format ("mm/dd/yyyy or dd/mm/yyyy or mon/dd/yyyy) whatever local date format.  I could not find example which show how to get date format from "Locale" object.
    Any help will be appreciated with rewards.
    Regards.
    Web Channel

    Hi,
    You can get it from "User" or "Shop" business object.
    Try to get User or Shop Business Object as shown below.
    BusinessObjectManager bom = (BusinessObjectManager) userSessionData.getBOM(BusinessObjectManager.ISACORE_BOM);
    User user = bom.getUser();
    char decimalNotation = user.getDecimalPointFormat().getGroupingSeparator();
    If you are seeing "1,234.00" then above code will return "."
    I hope this information help you to resolve your issue.
    eCommerce Developer.

  • I am trying to download effects apps for my Amplitube. I get a message saying to contact itunes support and then a box that says error "0". It wont let me purchase and I cannot get support. HELP!

    I am trying to purchase effects for my ipad amplitube. Every time I attempt to purchase it says to contact itunes support. I then get a box that says error "0".
    It is impossible to get support so I hope someone can HELP!

    http://www.apple.com/support/itunes/contact/

  • New customer - Difficulty Getting Support

    Prior to becoming a customer today, I had no problems with getting in contact with Verizon via chat. Now that I am a customer, I'm having a difficult time getting support. EVERY avenue of Verizon support is busy -- long hold times on the phone, no chat representatives available (all assisting others), long wait times in the store.
    I had to provide additional documentation to get my account setup, and I was not informed that I would need additional documentation when I first came to the Verizon store on Feb. 21. I am porting over from another carrier, and got the go ahead from the other carrier on Feb. 28 to be able to switch. I came in to a Verizon store on Feb. 28 to setup service, but the computer system automatically placed a hold on the account and I had to provide additional documentation.
    I could not get that documentation and come back before the store closed for the night. I came back March 1, and had to end up paying a higher price for the phone. I am fairly certain that in the month of February, the Droid MAXX was $99.99 and I can at least confirm that by using web.archive.org and looking back to Feb. 25 where it does show that price with a 2-year contract. Going to verizonwireless.com today now shows the phone for $149.99.
    The difficulty in getting support lies with not being able to get the price adjusted in the store. I went to another store, and after being there for at least 20 minutes, I hadn't moved up in the queue. I tried online chat, but all agents were busy. I called phone support, but encountered a wait for assistance on the phone. I lastly tried Twitter support, but it seems the VZWSupport account was last active on Feb. 26.

    c_brookhart wrote:
    I managed to get in contact with customer service by phone. I've had good experience using social media to get assistance from my previous carrier. Verizon seems to have two support accounts on Twitter - VerizonSupport and VZWSupport; which one is the correct one?
    VerizonSupport = Verizon Landline services (phone, Fios, DSL, etc.)
    VZWSupport = Verizon Wireless (cellular phone)

  • Logon Problems? Get support is not working in Portal logon Page

    Hi Experts,
    I have created A Role and assigned Logon_help action to it and assigned the Role to Anonymous group.
    So i have Logon Problem? Get Support link on Portal Logon Screen. When i click on it, i was asked to provide userid and email id.
    I have entered them. i got a message the my userid is reset and sent to my mail. but havent received any mail, and the password is changed which have to log in as admin and reset the password. 
    Help me this regards.
    Thank you
    Siva

    you might not have correctly configured your mail servers....
    refer below link
    http://help.sap.com/saphelp_nw70/helpdata/en/89/c5fd430b63c74bbdfaa5f2ec9bb20b/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/44/0761cea5c610b3e10000000a11466f/frameset.htm

Maybe you are looking for

  • Reading data from XML

    Hello! I want my program to read data from external XML file. I know that Flash has an XML class, but I just don't get the way it reads and writes data from/to it. I have a following XML file (a part of it): <?xml version="1.0"?> <configuration> <sou

  • Host command in OAF

    Hi, Is there a way we can execute host command in OAF. Like executing a shell script from OAF. Thanks.

  • Moving to Hong Kong - is different voltage a problem?

    We are moving to Hong Kong and wonder what (if anything) we need to do to use our iMac? Do we need a voltage transformer, or will the computer work without it? On the back of the computer (which we bought in Michigan), the 100-120V. Hong Kong uses 22

  • I keep getting error message (cannot save as "file name" because of a program error)

    I opened a pdf in photoshop and when I need to save it back as a pdf i get this error (cannot save as "file name" because of a program error). I need to save it specifically as PDF/X-1a:2001 but the only pdf options that will work are "highest qualit

  • Macbook Pro Retina or MBP?

    Hi Guys. I am interested to know your opinions on the following, as im stuck at a crossroards and just cant quite decide what to go for. I am a designer and looking at buying a Brand new, New Apple MacBook Pro with Retina Display, Intel Quad Core i7,