Java: how to playback uncompressed frames - java

Given a uncompressed input file with predefined frame format, need to build a simple video player. Could anyone advise where to start? like search keywords, what library to use or examples. Thanks!
For now, I just read all frames and store in linked list which seems not a good idea. Since it should be able to read/playback at same time.

I'm partial to Xuggler. See the MediaTool part of Xuggler that makes it really easy to write programs using media files.

You probably looking for the Java Media Framework
Samples you find here:
and here

Related

Using GStreamer for creating AVI files

So, I was recommended GStreamer to create video files. I was going over their tutorial for creating a video file.
The problems I encountered are:
How do I create an AVI file rather than a YUV something.
What is the source being used there?
I want to give a set of BufferedImages or anything else that will show what was going on the screen. I have previously used JPEGtoMovie provided bu the Java guys and for that I had to first save all the images to the disk as JPEG, sort them into their correct order from lexicographical order and a whole lot more.
I was planning to avoid that and that is why I was thinking of Vector<BufferedImage> or BlockingArrayQueue<BufferedImage>
Which all plug-ins do I need from GStreamer to create the AVI output?
Sorry I have been asking too many questions today. I have never worked with a media framework before and I am very dumb
The command gst-inspect will list all included elements (components).
you can produce an avi file from the pipeline: videotestsrc ! encoder ! avimux ! filesink where encoder stands for the encoding element you'd like to use
an alternative would be to use: videotestsrc ! encodebin ! filesink; here you just build a profile and encodebin will figure our what encoder and what muxer to use to create the format specified in the profile
I did not understood the part around the BufferImages. You can feed images manually to gstreamer (e.g. using [appsrc ! decodebin] instead of [videotestsrc]), but thats a last resort. There are also elements such as multifilesrc that read a sequece of images. Maybe you can give more details what you want to do (where do the source frame come from).

Capturing Continuous Frames and merging them as one in java

I am pretty new to image capturing using java. Just started working in java.
What i want to ask is i have two flv videos i will like to combine. I searched the internet and many people said about xuggler.
I have a looked on it and did not found any documentation or tutorial regarding this.
I do have it that i will have to capture frames continuously and than
add each frame with each other as i want a picture in picture video
and than form the video from those frames.
Please can anyone help me out here , how to capture continuous frames from an flv file and join them so a new video output can be obtained. Any hint or tutorial will be great. Thank you. I am using adobe flash builder and red5.
If you need to tutorials to get started on Xuggle I suggest that you take a look at Xuggle Wiki. This page should help you to understand basic use of video encoding/decoding.
Then you should be able to adapt the source code of examples. I think you could use this example to combine your 2 flv files. Of course, you will need to change it to combine 2 video files.

How can I play and manipulate .wav files using Java?

I'm looking for a small library to play, merge and change pitch for .wav files.
I've tried JASS, beads, something from anyexample.com, basic javax.sound examples, Sonia Sound Library etc.
Can anyone help me? I just need change pitch, merge and play wav files in Java.
Have you tried the Java Media Framework? Even though it has its limitations, it may be an option. In addition, the wikipedia article (linked above) has a listing of alternatives - maybe one of them does the trick for you.

Video Transcoding/Conversion using Java

I would like to convert a video from one format to another. Initially, I want to convert MP4 to AVI or any other more suitable video format.
Came across the ffmpeg library. Is is the best solution?
Came across Xubber and Jave for the same? Any experiences?
I tried jffmpeg that is a direct java wrapper on ffmpeg, but didn't found much documentation over that so moved on.
I tried to use Xubber and succeded also but it requires lot of pre-configurartions like you have to install .exe file prior and set XUBBER_HOME vars etc.
I have found nice and easy to implement solution ie JAVE http://www.sauronsoftware.it/projects/jave/index.php
Try this one.

How to extract audio features in java?

My thesis project is on Audio Feature extraction, their classifcation and comparison.
I am unable to extract the audio features from the last 6months.
I just have an idea that may work.
The audio in any format is to be converted into pcm format and features like bandwidth, Zero Crossing Rate, Noise Frame Ratio, Pitch Strength and mel Frequency Cepctral Coefficients can be extracted from it.
Then a data set is prepared using these features and then various audio classifiaction algoriths are applied to it.
Kindly help how can i proceed further and extract audio features?
Thanx
Although it is a very old post but maybe someone would reach here after googling. Now there are some very good toolkits to use :
TarsoDSP https://github.com/JorenSix/TarsosDSP
OpenSmile http://www.audeering.com/research/opensmile
CMU Sphinx
This is probably too late to be of much help, but you should really look at the jmir project. It's a system for doing audio feature extraction and classification in Java. It's all open source and well documented.

Categories

Resources