-
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
-
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
Forum Rules
|
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
|
Bookmarks