I`m programing in Java with Eclipse. On my project i use JMF in my java application. I need to play mp4 files so i am trying to add jffMPEG to use with JMF but meanwhile with no success. I followed this tutorial.
But on second step, register the following "Demultiplexers" i get
"JMF Registry Error - Could not add item".
Can anyoune please help me playing MP4 in jPanel or refer me to good tutorial how to use jffMPEG in java.
Related
I need to read a qr code using Java using the notebook camera. I found examples on how to do it in Android but nothing in desktop. Is Zxing the best library to do it? Anyone know a good tutorial about it? Many thanks.
to grab an image from a cam you can use JMF ( Java Media Framework) ( bit outdated )
or this project https://github.com/sarxos/webcam-capture
Zxing is a good choice to read the barcode from the image
Complete example can be found herer https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-examples/webcam-capture-qrcode
Not sure if about your java-ee-7 tag. Should the app running on a application server ?
I wish to play a video in JFrame. I am already using ffmpeg in my project. As I wish to keep the project light, I am not willing to use other frameworks like JMF or other. I know that I can play video using ffplay. But the problem here is ffplay opens the video in new window when I try
ffplay output.avi
I wish to put that video within my JFrame, like a player. How can I do this?
Request:
Please ask for any other clarifications, details, and suggest improvements or comment what you find wrong before downvoting or voting to close the question:). I will change it. I am really new to Java, I tried searching this but could not find any possible solution.
What I tried? I couln't find anything related to this, so I don't have any code. I am familiar to how to create frames, and can use runtime to ffplay video. But I got no clue how to put that video within my window:(.
All suggestions are welcome if you can suggest me other methods to play the video. But I haven't use any frameworks other than ffmpeg. And do not wish to make the application heavier. So it would be more helpful if it can be achieved using ffplay.
Look at the JMF 2.1.1 - Supported Formats. If the video types you wish to support are covered by the cross-platform1 version of the JMF, or you can find an SPI for the format, I'd say use JMF.
The 'performance pack' version uses natives which are now very old. I would not recommend trying to use them.
I will build a simple program that
Can play video file (.mp4) in my program.
Can extract the video, so that I can get the title, length, subtitle, and the audio, etc.
What is the library in Java that I should use?
I have googled, but I still can not find the best library. By the way, I have tried to download xuggler, but I can not find any file.exe that can install this library.
Please be kind because I never make a code regarding video player and video extractor.
For playing audio and video in your java program use Java Media Framework. It contains jar files that will provide you classes to play and handle audio and video files.
Use this tutorial for understanding of JMF.
I have successed to use xuggler in java. Xuggler website is suck because they don't keep good installer in their website. Every beginner who use xuggler must be have some trouble like me.
For every one who want to use Xuggler, you can follow this website
http://www.benfarahmand.com/2012/11/tutorial-using-xuggler-in-processing.html
the link to download file.exe xuggler is here: https://www.dropbox.com/s/oh7zcyilibzfoyb/xuggle-xuggler.5.1.0-win64-setup.exe
Thank you :)
Trying to build a simple MP3 player with a GUI front end. Basically I can get an mp3 to play fine using JMF but when I import/use org.eclipse.swt it just refuses to play the mp3. I am guessing that somehow that using SWT is conflicting in some way with JMF but I dont know how or how to fix it.
How can i convert a J2ME application which is using lwuit library to an android apk ?
I tried to convert using mircoemulator but when I start the application it shows error and exits.
Read this article, LWUIT for Android. Here clearly telling about How to do LWUIT with Android. Follow the stpes carefully and change the your MIDlet code. Just checkout the LWUIT-Incubator repository and use this for android development with LWUIT. Also read the README_Android.txt on this repository.
There's no way to make a direct conversion. Strictly speaking, you can make a port, adapting the code, or use some emulator or wrapper to run the CLDC/MIPD classes.
The guys in Opera also used MicroEmulator for OperaMini.