Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3872130
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T21:53:31+00:00 2026-05-19T21:53:31+00:00

Alright, what I need is a command-line application that allows you to take a

  • 0

Alright, what I need is a command-line application that allows you to take a screenshot of a file’s audio stream.

For example it should be run like this:

app.exe “C:/artist-title.mp3” “C:/mp3Stream.jpg”
app.exe “C:/artist-title.wav” “C:/wavStream.jpg”

It only has to be able to capture mp3 streams, other streams are a bonus.

Preferably all audio channels are listed in the image, but if all channels are combined into one mono stream it would work just as good for me.

So, is there such a application out there? So that I don’t re-invent the wheel.

If not does anyone have tips on how I should go about writing such a application myself? Preferably in Java. I can handle programming pretty well but I’m not exactly an expert on the MP3/WAV formats.

Why do I need it…? Well, it’s more fun to link to a file online with some sort of preview image besides the link. It gives you a hint of the audio character before you listen to it (is it loud? does it look like “bit music”? does it have any parts that are more quiet than others? etc).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T21:53:31+00:00Added an answer on May 19, 2026 at 9:53 pm

    Never mind, I wrote my own little application in Java.

    It was a piece of cake once I found this excellent guide:
    http://codeidol.com/java/swing/Audio/Build-an-Audio-Waveform-Display/

    Although you can’t download the source from that page (as far as I can tell, though he makes it apparent that you should be able to) he does provide some very useful key lines of code that makes it easy to puzzle together the application.

    Adding a little bit of help (easy stuff). You can get a graphics object from doing so:

    BufferedImage img = new BufferedImage(500, 100, BufferedImage.TYPE_INT_RGB);
    Graphics2D gfx = (Graphics2D) img.getGraphics();

    And once you have drawn everything you need on the gfx you can save it to disk just by one line:

    ImageIO.write(img, “jpg”, new File(“waveform.png”));

    It’s hard to get it to look very good though. Doesn’t look as nice as for example Audacity. Guess they have spent more time on it than a few hours though.

    The biggest pain about this is however that Java don’t support MP3 import. They really should get around to that.

    So to get the waveform of MP3s I first convert them into WAV using “javazoom.jl.decoder.Decoder.java”, it’s on their website. Very easy to use, just give the input path and the output path and it’s done.

    javazoom dot net (couldn’t post more than one “hyperlink” on this website)

    The big downside of this is of course that a huuge WAV file has to be created, and woe be unto thee if the MP3 happens to be 15 minutes or so… The WAV will be over 100 MiB (maybe even 200 MiB, haven’t found out since I got a Java-out-of-memory-error, even though I gave the VM 512mb).

    MP3 support in Java today please. Guess the reason they don’t have it is because of copyright issues. Copyright really is slowing man down.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Alright, currently I have my SWF hitting a php file that will go and
Alright, I'm trying to read a comma delimited file and then put that into
Alright. I have a query that looks like this: SELECT SUM(`order_items`.`quantity`) as `count`, `menu_items`.`name`
Alright, so I have a query that looks like this: SELECT `orders`.*, GROUP_CONCAT( CONCAT(
Alright. So I figure it's about time I get into unit testing, since everyone's
Alright, I have been doing the following (variable names have been changed): FileInputStream fis
Alright. So I have a very large amount of binary data (let's say, 10GB)
Alright, after doing a ton of research and trying almost every managed CPP Redist
Alright, I know how the fieldset / legend works out in HTML. Say you
Alright, quick question. A server is running in Eastern Time. PHP program needs to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.