Results 1 to 7 of 7
Like Tree2Likes
  • 1 Post By yaswanth
  • 1 Post By Fubarable

Thread: Extract audio from video file using JAVA

  1. #1
    yaswanth is offline Member
    Join Date
    Feb 2013
    Posts
    11
    Rep Power
    0

    Default Extract audio from video file using JAVA

    Hi .friends

    In my project there is a module where I need to extract audio from video (Any two basic formats).
    I heard that that can accomplished using Xuggler.
    I am using eclipse to write the code.
    Can any one help me with this. I have no idea how to do.
    shital lone likes this.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,302
    Rep Power
    20

    Default Re: Extract audio from video file using JAVA

    You didn't bother to reply to the two responses in your first thread: Automatic subtitle generation for sound in video files

    Why should we expect any better behavior this time round?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    yaswanth is offline Member
    Join Date
    Feb 2013
    Posts
    11
    Rep Power
    0

    Default Re: Extract audio from video file using JAVA

    Quote Originally Posted by DarrylBurke View Post
    You didn't bother to reply to the two responses in your first thread: Automatic subtitle generation for sound in video files

    Why should we expect any better behavior this time round?

    db
    I am sorry but Ireally need help here. IF you know how to help me please direct me.

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Extract audio from video file using JAVA

    Please first respond to the replies in your prior thread.
    DarrylBurke likes this.

  5. #5
    yaswanth is offline Member
    Join Date
    Feb 2013
    Posts
    11
    Rep Power
    0

    Default Re: Extract audio from video file using JAVA

    sorry for my ignorance but I responded in my previous thread and this thread is the first module of my first thread.
    Please help me from here or from my previous thread.

    Automatic subtitle generation for sound in video files

  6. #6
    yaswanth is offline Member
    Join Date
    Feb 2013
    Posts
    11
    Rep Power
    0

    Default Re: Extract audio from video file using JAVA

    Some one on internet got the code till here

    how to extract audio from video using xuggler? - Stack Overflow

    import com.xuggle.mediatool.IMediaReader;
    import com.xuggle.mediatool.IMediaWriter;
    import com.xuggle.mediatool.ToolFactory;
    import com.xuggle.xuggler.ICodec;


    public class convert {
    public static void main(String args[]){
    IMediaReader reader = ToolFactory.makeReader("F:/input.mkv");
    IMediaWriter writer = ToolFactory.makeWriter("F:/output.mp3", reader);
    int sampleRate = 44100;
    int channels = 1;
    writer.addAudioStream(0, 0, ICodec.ID.CODEC_ID_MP3, channels, sampleRate);
    while (reader.readPacket() == null);

    }
    }

    When I use the code and run it I am able to create a null output.mp3 file but there is no content in it
    can anyone correct the error?

  7. #7
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,302
    Rep Power
    20

    Default Re: Extract audio from video file using JAVA

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Recording audio/video
    By SuperPokeunicorn in forum New To Java
    Replies: 1
    Last Post: 07-13-2012, 01:53 AM
  2. how to extract video from web page
    By abhishektyagi789 in forum Networking
    Replies: 5
    Last Post: 03-10-2011, 09:29 AM
  3. PeerStream Audio Video Streaming Server 4.73
    By Java Tip in forum Java Software
    Replies: 0
    Last Post: 05-06-2008, 06:46 PM
  4. Please help Transmitting Audio and Video using RTP
    By pedaramanareddy in forum New To Java
    Replies: 0
    Last Post: 01-03-2008, 02:39 PM
  5. PeerStream Audio Video Streaming Server 4.55
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 10-27-2007, 07:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •