screen capture and movie player applet (not a game)

Started working on a movie player

Movie Player Applet

Currently I havnt put any work into polishing it. It currently only players movies. I still need to add controls, make sure that sound and video are synced.
It also only works on Windows and Mac, still havnt got around to building FFMpeg executables for linux.

It is a bit laggy but I’m amazed! How did you do it?

Im using FFMpeg to stream decoded data into a raw format, so that java can handle it.

It seems that its going to get allot worse before it gets better, MacOSX is having a hard time handling network activity, and its causing the applet to freeze for 10 seconds, then do a huge catch up out of sync with even the calls to sleep??? This makes no sense.

This is Mac what do you expect? :stuck_out_tongue:

But how do you send the data from FFMpeg to Java O.o?

you call ffmpeg from the command line, set the output to be a network/streaming protocol, either http/rtp. And handle the server in java.

Just need to make sure you output to a format that java can read. So in this case streaming jpegs, and wav.

Oh FFMpag lets you stream to a network? That sounds really convenient because then you can just connect to the server and port and stream in the data!

Yeah its a handy little tool :slight_smile:
I also use it to encode video for the screencast applet.

Yep!

I wanted to test your recorder to make a small clip of a game. Unfortunately the Audio Capture Device only had one option: “3 (Off)” :’(

I had similar problem with CamStudio, so it might be a problem with my audio card. Fraps had no problem though.

Damn, the applet uses Java sound to capture from the Mic, so it may be a problem with Java, If you have the latest version of Java then Its probably not going to be fixable. Thanks for reporting the bug.

Yup… Tested it on a laptop with winXP with same result, and then on an old laptop. There I could record sound, but the framerate was terrible and uneven, so that wasn’t possible either. Shame with problems out of reach. Looked like a really nice tool.

Also in a similar program, I have started working on a webcam recorder app for a client.

Just so everyone knows. There is alot of simple java jobs on freelancer.com. IMO its a great way to earn a little bit of extra cash.

Does your software work on Linux now?

The webcam is ment to.
But Im not sure about my FFMPEG binary. I only managed to get 1 static build of FFMPEG.
And I dont even know if its 32bit or 64bit. I dont want it to install on machines if it doesnt work.