DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Jerome Guest

    Validate multimedia files with java


    Hi there,

    I want to build a movie repository with many different format for one extract,
    but I would like to be sure that admin users will put the correct data regarding
    file format, rate, ...
    Is there a way to read a video (windows media, real player) or audio file
    with a java class and get all these data ?

    Thanks a lot in advance
    Jerome

  2. #2
    Rob Abbe Guest

    Re: Validate multimedia files with java


    Jerome,

    This can usually be accomplished by reading the first few bytes of the file
    and verifying that it meets the requirements of a format that you want to
    support. You can do this using standard Java io classes. I have done this
    many times to verify the format of image files.

    I'm not sure what the format of the files types are that you specified, but
    usually there is a header at the beginning of the file that can be used to
    determine it's type. See the websites for the formats you want to support.
    For Windows Media, I suggest msdn.microsoft.com

    Hope this helps,

    Rob

    "Jerome" <jholvoet@noos.fr> wrote:
    >
    >Hi there,
    >
    >I want to build a movie repository with many different format for one extract,
    >but I would like to be sure that admin users will put the correct data regarding
    >file format, rate, ...
    >Is there a way to read a video (windows media, real player) or audio file
    >with a java class and get all these data ?
    >
    >Thanks a lot in advance
    >Jerome



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links