Recording (encoding) MP3 with JMF

Hi all,
I'm not sure to be the first one, but I ask anyway.
Does anybody out there have a solution how to record (encode) MP3 with only using JMF.
Your help will be highly appreciated !!!!!!
Kind regards
aro

I havent installed that plugin but i can decode (play) mp3 files with jmf.
So, i suppose it was for encoding.
If anyone has proved the plugin... ?
Anyway you can use fobs project or jffmpeg.

Similar Messages

  • Need Help Mp3 with jmf?

    Can somebody write a few lines of code that i can play an *.mp3 file with the jmf (with an application). I visited the Jmf HP but i can't find some examples about this problem.
    Please help me rapidly
    Thank you
    Thomas R.

    It's been a while, but I think I still remember:
    To play any media with the JMF you must obtain a Player object for the file containing the media. This is done by invoking the static createPlayer method of the Manager class. The only import you should need is javax.media.*;
    example:
    File f = new File("myMP3File.mp3");
    Player p = Manager.createPlayer(f);This will return to you a Player object, which has start and stop methods to start and stop playing the media, obviously.
    The JMF is pretty limited w.r.t. mp3 playback unless you delve deep into the API, and get the GUI component for the player, but I can't remember the code for doing that, and anyway, playing mp3s with the JMF is pretty poor at the moment, because it is so slow to start the songs. Who knows, maybe when computers get fast enough, java may actually perform reasonably in this area.
    Hope this helps.

  • Encoding video with JMF

    Hi
    i'm new in JMF and I'm trying to write a program that will encode video files to h.264 and also to divx. For know a made quite a lot of search and im still stuck. I tried with fobs but is has only decoding capabilities now im trying to do something with jffmpeg but it seems not to work for me (i mean encoding for decoding is ok) or i don't know how to make does anybody know what can i do ?? i mean some libraries that i can use or some tutorials.Is it possible to make something like this ??

    The AVC or Advanced Video Codec / H.264 the MPEG-4 Standard is as smooth as glass. Very hardware intensive and time consuming depending on the size of your file. I reserve this for music videos and family video that I have captured to DVI. I am running a Windows machine dedicated to video work, P4 HT 3.6 overclocked to 4.1 and running liquid cooling and 4Gb of Ram.

  • Mp3 with JMF?

    Is there somebody who has written an programm with the JMF? Can you give me a source code Example, to learn hoe to play mp3's with java.
    Thank you
    Thomas

    http://www.google.com/search?hl=en&q=java+jmf+mp3
    Knock yourself out

  • Is Voice Recording in MP3 a crazy feature?

    I've just bought a 528 stick and tried a interesting feature: Recording voices in mp3 format. Msi said that recording in mp3 will take only 1/10 of space compared to wav. They lied, recording in this format with any quality take at least 128Kbps, that mean it cost the same with Best quality mode of wav. What is the hell going on?

    Quote from: bassmadrigal on 02-September-05, 17:03:54
    Even if it is stuck at 128kbps the file size should still be way smaller than the wav file.
    I don't think so, jeremy. The waves' bit rate are 32Kbps, 64Kbps, 128Kbps corresponding to 8KHz, 16KHz and 32KHz of sample rate. They are all compressed in IA PCM format, so they are almost always the smaller in term of size. MP3s under 44KHz of sample rate should encoded in lower bit rate rather than always be 128Kbps so that would be more economic and MP3 recording feature have its full advantages!

  • How do i convert a voice memo into MP3 with itunes 12?

    I need to convert a voice memo into MP3 with itunes 12.

    Today, I emailed myself an .m4a voice recording from an Android smartphone that had created that sound file minutes earlier.
    After opening that email message, I saved the .m4a sound file (a whopping 352 KB) to my Mac (iMac 21.5 inch running Yosemite).
    Clicking on the sound file's icon launched iTunes (version 12.0.1.26), which then did nothing no matter what I tried.
    However, when I selected the file on the desktop and navigated to the Finder/File/Open With dropdown window, a dialog box opened with alternative applications to use for opening the sound file. The available applications shown were VLC, QuickTime Player, Flip Player, and RealPlayer. I was pleased to find that VLC, QuickTime, Flip Player, and RealPlayer each opened and played the file straightforwardly and flawlessly.
    Apparently, Flip Player Pro (which I do not own) has a "save as" feature that might help you convert the file to the format you desire.

  • Control record must start with tag EDI_DC40, not E1LFA1M

    Hi,
    I am trying sxample <b>FILE>XI>IDOC ADAPTER-->R/3</b>
    I am getting error as
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_IDOC_RUNTIME</SAP:Code>
      <SAP:P1>MSGGUID F95236609A0C11D98F65000D56714443: Control record must start with tag EDI_DC40, not E1LFA1M</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error: MSGGUID F95236609A0C11D98F65000D56714443: Control record must start with tag EDI_DC40, not E1LFA1M</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Do i have to apply the note saying Apply the Support pack SP 11(Note No)  792957.
    Currently I have XI 3.0 SR1.
    Or can i try the similar example with some other IDOC.
    Please Help me in this.
    Thanks a lot
    Deepti

    Hi Deepti,
    I have got the same problem but after rescheduling the message its fine on the XI end. But at the R/3 End the status is still red with status number 56 (IDoc with errors added)Idoc used is CREMAS03. what might be the possible errors.
    Please help me.
    Regards,
    Gopesh Kumar Agarwal

  • H264 encoding issue with FlashPlayer 11

    Hi,
    When encoding live in h264 with the FP 11  then playing it live on another client (through FMS r) the video sometimes (1/3 of times) has major skips or jerks. It's almost as if the video goes back to some older keyframes and then returns to live. Same experience with non-h264 produces smooth video.
    If the server (FMS ) records the video, the replay looks smooth, which is strange because I would have assumed the FP was not encoding well with H264.
    Has anyone had this issue? please reply
    Thank you.

    Hi,
    When encoding live in H264 with the FP 11  then playing it live on another client (through FMS r) the video sometimes (1/3 of times) has major skips or jerks. It's almost as if the video goes back to some older keyframes and then returns to live. Same experience with non-h264 produces smooth video.
    If the server (FMS ) records the video, the replay looks smooth, which is strange because I would have assumed the FP was not encoding well with H264.
    Has anyone had this issue? please reply
    Thank you.

  • Play movie with JMF

    Hey,
    I just started out with JMF (I wanted to play a movie with java).
    I got this code:
    import java.applet.*;
    import java.awt.*;
    import javax.swing.*;
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import javax.media.*;
    * Demonstrate simple code to play a movie with Java Media Framework.
    * @author Ian F. Darwin, http://www.darwinsys.com/
    * @version $Id: JMFPlayer.java,v 1.9 2004/02/09 03:21:20 ian Exp $
    public class NewJApplet extends JPanel implements ControllerListener {
        /** The player object */
        Player thePlayer = null;
        /** The parent Frame we are in. */
        JFrame parentFrame = null;
        /** Our contentpane */
        Container cp;
        /** The visual component (if any) */
        Component visualComponent = null;
        /** The default control component (if any) */
        Component controlComponent = null;
        /** The name of this instance's media file. */
        String mediaName;
        /** The URL representing this media file. */
        URL theURL;
        /** Construct the player object and the GUI. */
        public NewJApplet(JFrame pf, String media) {
            parentFrame = pf;
            mediaName = media;
            // cp = getContentPane();
            cp = this;
            cp.setLayout(new BorderLayout());
            try {
                theURL = new URL(getClass().getResource("."), mediaName);
                thePlayer = Manager.createPlayer(theURL);
                thePlayer.addControllerListener(this);
            } catch (MalformedURLException e) {
                System.err.println("JMF URL creation error: " + e);
            } catch (Exception e) {
                System.err.println("JMF Player creation error: " + e);
                return;
            System.out.println("theURL = " + theURL);
            // Start the player: this will notify our ControllerListener.
            thePlayer.start(); // start playing
        /** Called to stop the audio, as from a Stop button or menuitem */
        public void stop() {
            if (thePlayer == null) {
                return;
            thePlayer.stop(); // stop playing!
            thePlayer.deallocate(); // free system resources
        /** Called when we are really finished (as from an Exit button). */
        public void destroy() {
            if (thePlayer == null) {
                return;
            thePlayer.close();
        /** Called by JMF when the Player has something to tell us about. */
        public synchronized void controllerUpdate(ControllerEvent event) {
            // System.out.println("controllerUpdate(" + event + ")");
            if (event instanceof RealizeCompleteEvent) {
                if ((visualComponent = thePlayer.getVisualComponent()) != null) {
                    cp.add(BorderLayout.CENTER, visualComponent);
                if ((controlComponent = thePlayer.getControlPanelComponent()) != null) {
                    cp.add(BorderLayout.SOUTH, controlComponent);
                // re-size the main window
                if (parentFrame != null) {
                    parentFrame.pack();
                    parentFrame.setTitle(mediaName);
        public static void main(String[] argv) {
            JFrame f = new JFrame("JMF Player Demo");
            Container frameCP = f.getContentPane();
            NewJApplet p = new NewJApplet(f,
                    argv.length == 0 ? "file:/C:/Users/Patrick Kos/Pictures/BAA.avi"
                    : argv[0]);
            frameCP.add(BorderLayout.CENTER, p);
            f.setSize(200, 200);
            f.setVisible(true);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }but I always get a unable to handle format exception, expect with mp3 files.
    But i"ve looked up the supported formats and its says its supported so??

    i get this error
    Unable to handle format: XVID, 320x240, FrameRate=29.9, Length=230400 0 extra bytes
      Unable to handle format: unknown, 22050.0 Hz, 0-bit, Stereo, Unsigned, 8000.0 frame rate, FrameSize=9216 bits
    Failed to realize: com.sun.media.PlaybackEngine@7259da
    Error: Unable to realize com.sun.media.PlaybackEngine@7259da
    Exception in thread "main" javax.media.CannotRealizeException
            at javax.media.Manager.blockingCall(Manager.java:2005)
            at javax.media.Manager.createRealizedPlayer(Manager.java:580)
            at projectnemo.NewJApplet.main(NewJApplet.java:102)

  • Can I do this with JMF?

    hi,I am new to JMF
    I am doing a door bell system project.
    At the front of the entrance we have a micphone and webcam,when the vistor come to the door and "knock at" a staff's bell,
    1: I wanna show the staff who sits in his office who is the vistor. (He might use any kind of operating system,not just windows)
    2. if the staff is away I wanna to give the visitor an oppotunity to record down a voice message and when the staff come back he can retrieve the voice message.
    can I achieve all these functions with JMF?
    thanks!

    hi,I am new to JMF
    I am doing a door bell system project.
    At the front of the entrance we have a micphone and webcam,when the vistor come to the door and "knock at" a staff's bell,
    1: I wanna show the staff who sits in his office who is the vistor. (He might use any kind of operating system,not just windows)
    2. if the staff is away I wanna to give the visitor an oppotunity to record down a voice message and when the staff come back he can retrieve the voice message.
    can I achieve all these functions with JMF?
    thanks!

  • Detection problem on HP webcam with JMF

    Hi,
    I'm trying NyARtoolkit and I need to use the video stream of my HP's webcam encrusted above the screen of my laptop (a HP Pavillon tx 2670ef)
    After the installation of JMF, I lunch JMStudio and I manage tu detect my webcam in : File->Preferences->Capture Devices->detect capture devices.
    Then i close the windows and i do File->Capture...->I enable "use video device" and unable "use audio device" then i click on "OK" but aftewards i have an error message saying that JMF couldn't initialize the capture device...
    2 students with me have the same pb...
    I made some researches about this issue and i found this post
    http://72.5.124.102/thread.jspa?messageID=10177842
    Afterwards I've installed ManyCam and i managed to get a video capture from the virtual webcam simulated with ManyCam.
    In fact, when i click on detect capture devices in JMStudio, a windows appears and i can choose "ManyCam Virtual Webcam" instead of "HP webcam".
    Moreover, in the options before capturing video, the encoding is in RVB instead of YUV before with the "HP webcam".
    But when i run my program i have this error :
    java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
         at java.util.Vector.elementAt(Unknown Source)
         at jp.nyatla.nyartoolkit.jmf.utils.JmfCaptureDeviceList.getDevice(JmfCaptureDeviceList.java:80)
         at jp.nyatla.nyartoolkit.java3d.utils.NyARSingleMarkerBehaviorHolder.<init>(NyARSingleMarkerBehaviorHolder.java:68)
         at J3DJME.NyARJava3D.<init>(NyARJava3D.java:174)
         at J3DJME.NyARJava3D.main(NyARJava3D.java:76)
    I tried many other things (Quicktime with QTcap... but i didn't managed to solve this pb yet)
    Coud you help to use my webcam with jmf ?
    josy

    You probably want to remove the crust from your web cam if you expect it to work. Most things that are encrusted aren't in the best of shape...
    JMF connects to web cameras by wrapping around native interfaces. If the JMStudio isn't able to use your web cam, it could mean a number of things...your web cam isn't compliant with the version of the interfaces (VFW and DirectShow, I believe) that JMF is wrapping around, the web cam doesn't output any formats JMF can use, etc.
    But if JMStudio can't use your web cam sucessfully, 99% of the time that means your web cam isn't going to work with JMF... unless you want to code support for it yourself.

  • Help with jmf & javasound (if needed?)

    Im using jmf for my internet phone system , anyone got an example of using javasound with jmf. My problem is how to select microphone as the recording input from the soundcard, what if the recording input was set to line-in? how would i change it to microphone. If it can be done only using jmf then please tell. Or a mixture of javasound and jmf would be ok also.

    Im using jmf for my internet phone system , anyone got an example of using javasound with jmf. My problem is how to select microphone as the recording input from the soundcard, what if the recording input was set to line-in? how would i change it to microphone. If it can be done only using jmf then please tell. Or a mixture of javasound and jmf would be ok also.

  • Using JFFMPEG with JMF

    Hi,
    I had been trying to use jffmpeg within JMF to decode/encode media formats like mp4 etc to be used. When I am tryin to access net.sourceforge.jffmpeg.VideoDecoder and add it into the registry and try to run a usual avi file. It says
    java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key MJPG.JavaClass
    at java.util.ResourceBundle.getObject(ResourceBundle.java:314)
    at java.util.ResourceBundle.getString(ResourceBundle.java:274)
    at net.sourceforge.jffmpeg.JffmpegVideoFormat.getCodecClass(Unknown Source)
    at net.sourceforge.jffmpeg.VideoDecoder.setInputFormat(Unknown Source)
    at com.sun.media.SimpleGraphBuilder.verifyInput(SimpleGraphBuilder.java:923)
    at com.sun.media.SimpleGraphBuilder.matches(SimpleGraphBuilder.java:888)
    at com.sun.media.SimpleGraphBuilder.doBuildGraph(SimpleGraphBuilder.java:322)
    at com.sun.media.SimpleGraphBuilder.buildGraph(SimpleGraphBuilder.java:168)
    at com.sun.media.SimpleGraphBuilder.buildGraph(SimpleGraphBuilder.java:84)
    at com.sun.media.PlaybackEngine$PlayerTControl.buildTrack(PlaybackEngine.java:2102)
    The code snippet is as below which I am tryin to use
    String JFFMPEG_VIDEO = "net.sourceforge.jffmpeg.VideoDecoder";
    Codec video = (Codec)Class.forName( JFFMPEG_VIDEO ).newInstance();
    PlugInManager.addPlugIn( JFFMPEG_VIDEO,
    video.getSupportedInputFormats(),
    video.getSupportedInputFormats(),
    PlugInManager.CODEC );
    Please let me know where things are going wrong. If possible if anyone has any sample jffmpeg with jmf code, it will be very helpful.
    Thanks ,
    -vijay

    This looks like jffmpeg fails to load the native libraries via JNI. When this happens, jffmepg tries to find an optional pure-Java decoder (which is not available in for MJPEG) -> Look into jffmpeg.properties. You have to ensure that libjffmepg.so is available in your java library path in order to use the native jffmpeg decoder (will be found automatically).
    Also, you could try something like this:
    System.setProperty("java.library.path", LD_LIBRARY_PATH);
    libname = "jffmpeg";
    System.out.println("mapped name"+System.mapLibraryName(libname));
    System.loadLibrary(libname);
    System.out.println("library loaded");

  • AAC TO MP3 with no loss

    I'm a DJ with 70,000+ iTunes Library and I know AAC files are a better sounding file than MP3. However, the DJ Program I want to use, Serato ScratchLive doesn't support AAC files at this time. Does anyone have a suggestion or program that could CONVERT my files to MP3 with NO LOSS until Serato catches up???
    Also. my files are encoded at 160 kbps AAC. What would be the closest equal quality in MP3.
    Thanks for any help....Jeff.

    I'm a DJ with 70,000+ iTunes Library and I know AAC
    files are a better sounding file than MP3. However,
    the DJ Program I want to use, Serato ScratchLive
    doesn't support AAC files at this time. Does anyone
    have a suggestion or program that could CONVERT my
    files to MP3 with NO LOSS until Serato catches up???
    Also. my files are encoded at 160 kbps AAC. What
    would be the closest equal quality in MP3.
    Thanks for any help....Jeff.
    Jeff, I've recently had to deal with a similar issue & I haven't found a straightforward solution. I ended up re-encoding my CD's to mp3. I'd hate to have to do that with the quantity you have.
    I couldn't do that with the m4p files I bought fron iTunes. The DRM was a pain, so I burned those to CD & imported them as m4a lossless. I discovered the hard way that I have to play them straight with no pitch adjustment or they crash my program (I use Megaseg) When I get time I'm going to redo them as 320 mp3. I now avoid AAC files.
    Good luck
    Bob

  • Anyone use a voice recorder? MP3 editing? Compatibility issues?

    Specifically the Sony ICD-PX820.
    http://www.sonystyle.com/webapp/wcs/stores/servlet/ProductDisplay?catalogId=1055 1&storeId=10151&langId=-1&productId=8198552921665963672
    I purchased one and haven't removed it from the package yet. It says it records to Mp3 format but the included software is PC only. So how would I edit it? I have Garage Band which I don't really like using. I also have MPEG Streamclip.
    I just want to record and save my three year olds voice.
    Mike

    Will I be happy with the new version of iMovie after using 6 for so long?
    Not everybody (including me) has been! iMovie 9 is basically for making YouTube videos. But you will like iDVD 9, which will come pre-installed with iLife 9.
    But you can retain iMovie 6.0.3 and have both.
    Happily this is easily achieved, but it has to be done backwards.
    Delete iMovie 9 (just drag it to the trash). Now install iMovie 6 from the iLife install disks.
    Now re-install iMovie 9. This automatically moves iMovie 6 into a folder it creates in your Applications folder called iMovie Previous Version.
    Now you have them both, and you can have both in the Dock as well.
    Alternatively you could try this method, suggested by poster Uitech:
    Open terminal and type "touch /Library/Preferences/com.apple.iLife08.plist"
    (No quotes)
    Install iMovieHD6 from the iLife 6 install disk.
    This is said to work with both Leopard and Snow Leopard Macs.

Maybe you are looking for

  • Tnsnames.ora General Question

    We are experiencing a problem that many different users seem to have many different versions of tnsnames.ora. We want to create our "gold" version and ensure that everyone uses the same one. Two questions: 1. Is the "alias" that you give each connect

  • Create reusable BPM Human Task Form across Projects

    Hi, I have a challange in my project. I have a BPM application with many BPM process inside, and each BPM process has its own human tasks. Is easy for each HT create a form in a jspx file, for that an independent project is created. The challange is:

  • How do I gift a playlist to someone else?

    I Have tried reading everything Apple provides and even a lame support call (paid) - no one can answer this very basic question! i Simply want to gift a friend with one of my iTunes playlists!  I realize I may have to buy the music again, I don't car

  • Data doesnt come through in the cube

    Hi all, I loaded flat file in the cube, the data not in the cube but the data in PSA.... cube is normal cube, doesnt have aggreegates...just normal cube... Please give me step by step...where do i look what should i do... am new to bw Thanks, sidhart

  • Itunes store not available message when trying to play purchased programs

    When I try to play one of the tv series purchased on itunes I get a message 'itunes store not available, try again later'.  All other purchased tv shows and movies play just fine.  Can anyone help?