I have got a mpg video file from a camera and I'd like to import this file to java application which should do some things on it and save new video file with apply all operation.
What I want to do exactly:
Below is a sample frame from my video.
And after imported video, java app should add some content at the bottom of video(for each frame) like fps, date etc. I know that this information can be extracted by openCv, but it's not my problem. I don't know how to make such a content and add it to a video and render to external mpg file. I prepare a simple demonstration how should look the output video after render by my app.
Related
In JavaFx we can load images easily from an external server:
imageView.setImage(new Image("http://...File.png"));
But is there a way to load the thumbnail of videos?
Something like: imageView.setImage(new Image("http://...File.mp4"));
I'm developing something like a "gallery" and would like to load the thumbnails of videos coming straight from my server, is it possible?
An mp3 or mp4 file can have an embedded thumbnail image as part of its metadata. There are third party libraries for reading mp3 / mp4 metadata. For example:
How to retrieve thumbnail picture of an mp3 file using java
App Engine Java - Extract thumbnail from mp4 video
If the file doesn't have a thumbnail, then you could conceivably pick a frame of the video and use it as a thumbnail, but the chances of picking an appropriate frame (i.e. one that is indicative of the movie) without the assistance of a human being are not great. But here is an example:
Extract Thumbnail for specific second from MP4 file in Android
But how do you make a video that is not local without downloading it altogether?
Approach #1: pick a 3rd-party metadata extraction library that can operate in stream mode. The metadata should be at / near the start of the stream.
Approach #2: get the server to do the extraction, and present you with the thumbnail separately from the main video.
Now iam using the '/dev/graphics/fb0' to get the frame buffer and iam saving it on sd card using 'cat /dev/graphics/fb0 > /sdcard/screen.raw'.
Now i want convert that raw data into a png image and display on to the screen.is it possible to convert as a png in android code by using (NDK/SDK).
Code to do this can be found in the Android source tree. The old screenshot tool reads from the framebuffer device and saves it to PNG.
Note this does not work on newer devices, which may use hardware composer overlays to avoid writing to a single framebuffer. On such devices you need to use the screencap tool instead.
I have a problem, I am developing a video recording application in Android, at the end of the recording I want to include my logo image as last frame in the video, I would like to know how to do this is in Android Java, is there any sample code available for this
I am using phonegap to create an android application.
Is it possible to stitch a picture and a sound (audio) file together using phonegap framework. The new file after stitching would be a video file.
For example, an app like animoto (for iphone). Where you choose a sound track and a few pics from the phone album and the app creates a very nice slide show with the sound being played in the background.
Can you please provide some links that would explain how to do it as well.
Thanks
Stitching is not possible but you can concurrently run both picture and sound
I want to create a cross platform SlideShow maker desktop-application (mainly Windows & Mac), the SlideShow will be generated using a set of images with background music, subtitles/captions and there will be a transition between each slide/image.
I have done all the UI in swing and it all works superb on Windows & Mac. Now the only "little" problem is
How to generate a video from a set of images with "transitions" & "subtitles" in java using native java libs/frameworks and add some music in background ;-)
I want the video output format to be at least in avi & mov, with transitions like:
1) fade
2) Zoom (images will zoom-in from e.g. 64x64 to full video size)
3) Multiple (multiple images will appear in single slide)
I have used JMF example to generate .mov from .jpeg images it was buggy but may work if I can add transitions?? But it appears JMF is mainly for media playback it only supports a few media formats (for output).
I have also read a few docs of jffmpeg but it appears it too does not support transitions.
I have also tried FMJ but no use, now I am stuck and need assistance, on how this task can be done in java.
I would be immensely thankful if anyone can guide me in right direction.
--
many thanks
I think you can accomplish this task with xuggler. Check it out. It might fit you needs.
Xuggler