Validate multimedia files with java


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Validate multimedia files with java

  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



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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center