Posted in Frameworks, Java

FFmpeg – A complete, cross-platform solution to record, convert and stream audio and video.

java_logo_100ffmpeg

Nowaday, the Audio and Video are so popular. As a developer, you have many works to process them such as record, convert, stream, etc.

Actually, if you are an Java-er, C#-er, etc, it is really difficult to find the way to do that with pure language programming.

Today, I want to introduce one powerful ‘tool’ which can do these tasks quickly. It is FFMPEG.

FFMPEG is a complete, cross-platform solution to record, convert and stream audio and video. After using it, I found that converting video and audio has never been so easy ! You only use commands and option which are supported, only one line command ! Wow

Please find detail at below website:

http://www.ffmpeg.org/

Look at below commant to converting a .mp4 file to .avi file:

ffmpeg -i input.mp4 output.avi

Run it and Done ! You have a AVI file. How it is easy !

Because the FFMPEG is a cross-platform, so you can use it in any popular OS today such as Window, Linux, MAC OS, etc.

Beside running pure FFMPEG command directly, you can use it in your project using Java, C#, etc.

For Java, you only define a certain FFMPEG command and run it using Process object like below code:

String exeCommand = “ffmpeg -i your_input_file your_output_file”

// Run FFMPEG command
Process process = Runtime.getRuntime().exec(exeCommand);

Done. You can find the demo JAVA code using FFMPEG at Github here.

Share this topic if it is helpful 🙂

Thank you

 

Advertisements
Posted in Java

[Java] Java instruction for Beginner.

java_logo_100

Hi Java beginner :), if you are a Java newcomer, I think you will have many questions such as: where should I begin ? How to learn Java ? Where are good Java lession ? etc.

So, I will list some items from low to high for you. They are tools, forums, framework, design, etc. I will update this topic with new other items day-by-day and I hope it can help you :). Ok, let start:

  1. IDE tool for Java programming: eclipse, Netbean, (I like using Eclipse than Netbean 🙂 )
  2. Java Forums: java_on_stackoverflow
  3. Helpful Java frameworks: JavaFX, Springs, Hibernate, etc
  4. OO Design: http://www.oodesign.com/
  5. Basic Java tutorial: http://www.w3schools.in/java-tutorial/intro/

Share this topic if it is helpful 🙂