Can I use vlcj library in an Applet? - java

How can I use vlcj-1.2.0 to play a video file in an applet if I need libvlc.dll from user's VLC folder in Program_Files?
Can I load the native library from the applet? Or can I use the firefox VLC plugin?
Or do you know any other solution?

If you include the native library with the applet (you don't need VLC installed to use vlcj as long as you have libvlc.dll/so and associated plugins) then you should be able to use it, but only if it's signed.
If you just want to play video on the server though, a much simpler solution would be to save all the videos as FLV and then use flash to play them back. Or HTML5 of coruse!

Related

Library that can extract and play video file

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 :)

Is there a framework that allows playing of video without any pre-installed drivers ? (H264)

I've been looking all over the web to find something that allows me to play H264/Mpeg4 videos in java. The videos are recorded on an android device and i would like to attach a java programm to my app that the user can move/copy to his/her harddrive and execute to play the video on the computer (bigger screen, mouse input etc).
I did find xuggler, vlcj, ffmpeg, gstreamer.
They all say that they require some driver etc to be installed on the computer. But i need something that runs in pure java and that can be put into the jar that i will put into my app or website dl.
It has to be as simple as that, user dl the jar and executes and is able to watch the video that is stores on the android device (i realize that it requires the user to have java installed, but thats the only thing i want to burden them with).
Links or tutorials are welcome.
(i work a lot with android but hardly with plain java, so the lack of multimedia abilities is kinda throwing me off balance)
JCodec is a recent project aimed at providing a pure-java implementation of video and audio decoders, worth a try.

FLAC or OGG Online Media player

Is there a way to make an audio/video player in Java that can play on a website?
I searched around but I don't understand enough yet for this.
We are going to setup a server that can stream OGG and FLAC audio files. We need a player that can play them on a webpage.
Our backend is built with Java. Before we put together a project for a Java programmer I want to know what the possibilities are.
Can this be done with an applet and simply add the right codecs and place it on the webpage?
Yes, we made js flac player. This is code of js codec: https://github.com/audiocogs/flac.js
This framework https://github.com/audiocogs/aurora.js for made player
You just to embed the HTML for a player, then add your own script to play the audio/video.
Here's how to Embed the code for WMP:
http://www.mioplanet.com/rsc/embed_mediaplayer.htm
Sorry, I don't know what files it can play but just give it a shot...
Found jPlayer. HTML5 with flash fallback.

Video Upload Applet

i am working on a small project that i need the ability to let users upload a video to my website or use a webcam to record a video and then upload it. i have seen this done on several sites (youtube,facebook etc) so i know that there is a java or flash applet that supports this. however i have not been able to find one.
can anyone recommend a good flash or java based video uploader with these features?
Is a video upload control different from a file upload control?
Here's a Flash file upload control.
Here's a link to a Ajax file upload control.
If you search Stack Overflow for "Ajax file uploader" or "Flash file uploader" you'll get more recommendations.
Edit:
Here's a flash recorder and uploader.
http://www.a8dropzone.com have a upload applet with built in media transcoder (based on ffmpeg so you can feed it pretty much anything)

Java: cross-platform .flv playback

I'm looking for a way to playback .flv files using java. This means I will need a ffmpeg lib that is cross-platform. I've been toying with jmf and fobs4jmf, but I cannot playback in linux because I need a native library (maybe fobs4jmf.so?).
Is there any java lib that allows me to playback .flv besides fobs4jmf? Or fobs4jmf can be used in linux, mac, etc? A pure-java lib would be perfect!
Edit: The player will be deployed as a java web start app (targetting jre6).
I'm probably not reading your question correctly, but I don't understand what you have against fobs4jmf. It seems to support Mac and Linux fine, see http://fobs.sourceforge.net/f4jmf_first.html
i would use a blatant shortcut. use an embedded browser and have it play the file using the browser's flash plugin.
http://www.eclipse.org/swt/snippets/#browser
heres how to embed a browser in your app, and just deliver it content through a really simple embedded web server. im sure you can just pickup a flash app that plays flv's no problem with the help of google.
you probably want a go with javafx in this: http://java.dzone.com/news/video-getting-started-with-jav
Xuggler works on Linux, Mac and Windows. I think it'll do the trick.

Categories