开发者

Parsing movies in Java

开发者 https://www.devze.com 2023-02-10 01:35 出处:网络
I\'m looking to write a basic movie parser in Java. The movie should be some video file, let\'s say AVI, and exact tim开发者_如何学编程es/frames. The program should simply parse the movie according to

I'm looking to write a basic movie parser in Java. The movie should be some video file, let's say AVI, and exact tim开发者_如何学编程es/frames. The program should simply parse the movie according to the data and save it to new files.

It seems like it should be an easy task, but I can't find the right classes in Java to help me. Google is not doing much help either.

Where do I start?

Thanks, Ariel


You can start with reading about the Java media Framework. This tutorial is a bit old but might give you a start.

Unfortunately there is nothing simple about video. Not only are some algorithms patented or not available, there is also a huge amount of containers (like AVI) within which there can be multiple combinations of actual audio and video files. With possibly incompatible bitrates and what not.

You should I think start with reading up a bit about video in general (formats) and decide what you need to support. After that go looking for your format in combination with java.

Good luck.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号