Merging audio with video clip

Discussion in 'Android Media' started by neoscreenager, Dec 4, 2010.

  1. neoscreenager

    neoscreenager New Member
    5

    Dec 4, 2010
    2
    0
    5
    Hi all,
    I have a small video clip of 30 seconds and a small audio file. The problem is how to write code to merge them into a single file. i have never written code for multimedia applications for android and don't know if the merging is possible with android media framework.
    Please guide me through this.
    Thanks
     

    Advertisement

  2. sitlet

    213

    Apr 11, 2010
    5,867
    633
    213
    I dont think you can do this from the phone. Its hard enough to do it from a computer with complicated video editing software.
     
  3. neoscreenager

    neoscreenager New Member
    5

    Dec 4, 2010
    2
    0
    5
    well in java there is a Java Media Framework (JMF) that facilitates the merging of audio and video with few lines of code. I tried it with an android application but when i include jmf.jar , android throws some exception. Now I am not sure whether JMF will work as-is on android platform or is there any JMF counterpart for android platform. :( :thinking:
     
  4. vani

    vani New Member
    5

    Feb 28, 2011
    1
    0
    5
    Hi neoscreenager,

    I need lines of code to merge audio and video. Please can you guide to the merging of audio and video
     
  5. sitlet

    213

    Apr 11, 2010
    5,867
    633
    213
    Again, even if it was possible, any phone out now does NOT have the processing power to do it.
     
  6. weaselaow

    weaselaow Well-Known Member
    15

    Jan 4, 2011
    80
    0
    15
    Economy
    Serbia
    what format is that
    if its avi or similar then virtaul dub or avidemux
    if its mkv then mkvmerge or
     
  7. sitlet

    213

    Apr 11, 2010
    5,867
    633
    213
    If you read the whopping 5 posts in this thread, you would realize that he is talking about merging the audio and video on the phone, not on a computer.
     
  8. Usta

    Usta Well-Known Member
    323

    Jul 8, 2010
    2,585
    1,373
    323
    The Netherlands
    True, however he is pointing out correctly how it can be done on PC, and by that giving a hint - the merging process doesn't require huge processing power (like on a PC), because it will follow video and audio stream re-packaging. Such tasks take max a few minutes on PC.
     

Share This Page

Loading...