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.
Related
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).
I wanna split a video file into several fragments which can be played individually.
Is there any java library can be used in this situation?
Or if Xuggle can be used, can anyone give me an simple example.
Thanks
A video file? There's quite a few video codecs, file formats. For a general solution try ffmpeg it's not a Java library but runs on all platforms.
I'm searching a java framework for manipulate audio and video files, I need functions like:
Split video and audio files
Get a frame from a video
Key Frame extraction
I tried Xuggle and I want to know if there are other frameworks.
any advice?
I found Xuggler: http://www.xuggle.com/xuggler/
Which audio and video format you are dealing with? For MPEG-2, Project X may be a solution.
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
I need to display a graph of a sound file - i.e. a wave form as displayed by audio editors such as Audacity.
How should I go about this? Is there anything in the Java Sound API that can help me?
In Java Sound API poke around AudioSystem.getAudioInputStream
which will return AudioInputStream which shows you how to open audio files form within Java. It is good enough to read .wav files, but not quite so for mp3s.
It lets you read bytes one by one directly. Also getAudioFormat will return object that has sample rate, bit/sample, etc. After reading your waveform you can draw it in your favorite way on the screen (Swing, AWT, png file on the web, etc.).
In the end I found code to do exactly what I wanted in Chapter 10 of the book Swing Hacks.