Re: JPEG to Movie.java

Sir,
I have started new Post.Can u now assist me Sir?
I saw JMF code samples section that would convert JPEG images to .Mov files.
I tried to run that code by giving 2 images as runtime parameters.
But i got NullPointerException
Here are the list of Exceptions i got
create processor for the image datasource ...
Setting the track format to: JPEG
- create DataSink for: file:C:\Documents and Settings\Desktop\JMFCodeSamples\Generating a Movie File from a List of (JPEG) Images
start processing...
  - reading image file: file\\:1.JPEG
Done reading all images.
Exception in thread "JMF thread: SendEventQueue: com.sun.media.processor.unknown
.Handler" java.lang.NullPointerException
        at com.sun.media.multiplexer.video.QuicktimeMux.writeVideoSampleDescript
ion(QuicktimeMux.java:936)
        at com.sun.media.multiplexer.video.QuicktimeMux.writeSTSD(QuicktimeMux.j
ava:925)
        at com.sun.media.multiplexer.video.QuicktimeMux.writeSTBL(QuicktimeMux.j
ava:905)
        at com.sun.media.multiplexer.video.QuicktimeMux.writeMINF(QuicktimeMux.j
ava:806)
        at com.sun.media.multiplexer.video.QuicktimeMux.writeMDIA(QuicktimeMux.j
ava:727)
        at com.sun.media.multiplexer.video.QuicktimeMux.writeTRAK(QuicktimeMux.j
ava:644)
        at com.sun.media.multiplexer.video.QuicktimeMux.writeMOOV(QuicktimeMux.j
ava:582)
        at com.sun.media.multiplexer.video.QuicktimeMux.writeFooter(QuicktimeMux
.java:519)
        at com.sun.media.multiplexer.BasicMux.close(BasicMux.java:142)
        at com.sun.media.BasicMuxModule.doClose(BasicMuxModule.java:172)
        at com.sun.media.PlaybackEngine.doClose(PlaybackEngine.java:872)
        at com.sun.media.BasicController.close(BasicController.java:261)
        at com.sun.media.BasicPlayer.doClose(BasicPlayer.java:229)
        at com.sun.media.BasicController.close(BasicController.java:261)
        at JpegImagesToMovie.controllerUpdate(JpegImagesToMovie.java:196)
        at com.sun.media.BasicController.dispatchEvent(BasicController.java:1254
        at com.sun.media.SendEventQueue.processEvent(BasicController.java:1286)
        at com.sun.media.util.ThreadedEventQueue.dispatchEvents(ThreadedEventQue
ue.java:65)
        at com.sun.media.util.ThreadedEventQueue.run(ThreadedEventQueue.java:92)actually wat went wrong???
can u please tell us??
We expect your suggestions sir...
Thanks in advance sir!!!

Sir Sorry i forgot to specify it.
Here i have specified.
D:\StudyMaterials\JMFCodeSamples\Generating a Movie File from a List of (JPEG) I
mages>java JpegImagesToMovie -w 320 -h 240 -f 1 file:\1.JPEG
Usage: java JpegImagesToMovie -w <width> -h <height> -f <frame rate> -o <output
URL> <input JPEG file 1> <input JPEG file 2> ...
D:\StudyMaterials\JMFCodeSamples\Generating a Movie File from a List of (JPEG) I
mages>java JpegImagesToMovie -w 320 -h 240 -f 1 -o file:\e.mov file:\1.JPEG
- create processor for the image datasource ...
Setting the track format to: JPEG
- create DataSink for: file:\e.mov
start processing...
  - reading image file: file:\1.JPEG
Done reading all images.
Exception in thread "JMF thread: SendEventQueue: com.sun.media.processor.unknown
.Handler" java.lang.NullPointerException
        at com.sun.media.multiplexer.video.QuicktimeMux.writeVideoSampleDescript
ion(QuicktimeMux.java:936)
        at com.sun.media.multiplexer.video.QuicktimeMux.writeSTSD(QuicktimeMux.j
ava:925)
        at com.sun.media.multiplexer.video.QuicktimeMux.writeSTBL(QuicktimeMux.j
ava:905)
        at com.sun.media.multiplexer.video.QuicktimeMux.writeMINF(QuicktimeMux.j
ava:806)
        at com.sun.media.multiplexer.video.QuicktimeMux.writeMDIA(QuicktimeMux.j
ava:727)
        at com.sun.media.multiplexer.video.QuicktimeMux.writeTRAK(QuicktimeMux.j
ava:644)
        at com.sun.media.multiplexer.video.QuicktimeMux.writeMOOV(QuicktimeMux.j
ava:582)
        at com.sun.media.multiplexer.video.QuicktimeMux.writeFooter(QuicktimeMux
.java:519)
        at com.sun.media.multiplexer.BasicMux.close(BasicMux.java:142)
        at com.sun.media.BasicMuxModule.doClose(BasicMuxModule.java:172)
        at com.sun.media.PlaybackEngine.doClose(PlaybackEngine.java:872)
        at com.sun.media.BasicController.close(BasicController.java:261)
        at com.sun.media.BasicPlayer.doClose(BasicPlayer.java:229)
        at com.sun.media.BasicController.close(BasicController.java:261)
        at JpegImagesToMovie.controllerUpdate(JpegImagesToMovie.java:196)
        at com.sun.media.BasicController.dispatchEvent(BasicController.java:1254
        at com.sun.media.SendEventQueue.processEvent(BasicController.java:1286)
        at com.sun.media.util.ThreadedEventQueue.dispatchEvents(ThreadedEventQue
ue.java:65)
        at com.sun.media.util.ThreadedEventQueue.run(ThreadedEventQueue.java:92)

Similar Messages

  • Error in CHARM configuration to move JAVA objects 'The project is not relea

    Hi,
    I have BI 7.0 (ABAP + JAVA) landscape (i.e. CBD, CBQ and CBP) on SPS12 and SolMan 7.0 (SMD) on SPS14.  My goal is to move both ABAP and JAVA transports through CHARM. I performed following tasks:
    1.  Configured TMS by selecting CBD as Transport Domain controller to move Java transports
    2.  Configured CHARM for BI landscape to move ABAP transports in SMD and it is working fine
    3.  Configured CTS+ to move JAVA transports on SMD instead of CBD because CTS_BROWSER service is not available on CBD due to SPS12. While configuring CTS+ in SMD, I used SIDs for BI Java landscape as reverse SID (i.e. DBC, QBC and PBC) and used mapping parameter to map to original SID.  I used reverse SID because already in SMD (CBD, CBQ and CBP) has been defined for CHARM purpose. Now, I am able to move successfully JAVA transports of BI landscape from SMD.
    4.  I am having issue in configuring CHARM on SMD for JAVA transports.  I am following http://service.sap.com/solutionmanager --> Media Library --> TechnicalPapers --> How to Set Up and Use eCTS/ChaRM Solution Manager 4.0 SP12 document.  Following are the steps, I performed to move JAVA transport through CHARM:
         a.  Defined JAVA systems (i.e. DBC, QBC and PBC) in SMSY as Enterprise portal systems
         b.  Defined ABAP system (i.e. Where Transport request is created, in my case it is SMD) in SMSY
         c.  Defined logical component for both ABAP and JAVA systems
         d.  Defined solution manager project by adding two logical components created at step C (i.e. ABAP and JAVA)
         e.  I am getting error when I am trying to activate CHARM and create task list.  The error is as follows:
    /TMWFLOW/TRACKN 101: 'Warning: Problems occurred during synchronization of the system landscape'.
    If you choose 'Check', the system displays the following message in the results list of the check:
    /TMWFLOW/TRACK_N 806: 'No consolidation system found for SMD-200 (project zjava3)'
    If you try to create a task list by choosing the relevant pushbutton, the system issues message
    /TMWFLOW/CONFIG_UI 017: 'The project is not released. Hence cycle can not be created'.
    I found a relevant sap note for this 1054264 but it is not useful me, as it suggest to upgrade SolMan to SPS12 but whereas I am on SPS 14.
    Any suggestion are welcome.  Thanks in advance.
    Regards
    Shiv

    Hello
    You should first fix the errors you get such as the missing consolidation system
    Please see thread [Re: No consolidation system found for SID in solman; or check the forum on the error message "'No consolidation system found for" and you will find relevant information.
    I would advise to update your SAP Solution Manager though to one of the latest available levels, there are a lot of fixes and enhancements to Charm (and also availability of quality gate management which gives some of the functionality of Charm but is more compact).
    Kind regards
    Tom

  • My older M-JPEG quicktime movies play black in Quicktime and Keynote

    I was just recently asked to give a presentation that I had put together 3 years ago in Keynote.  All of my quicktime movies that Keynote were using were M-JPEG and used to all play great the last time I opened my file.  Since Then I've updated my OS to 10.7.1, I have a Macbook Pro, Quicktime 10.1, Keynote 09,  but also have Quicktime Pro.
    When I play my keynote, all of my movies come up black when they play.  If I try and open my quicktime movies directly and play them in Quicktime or Quicktime pro, they also come up black.  But I can open it in VLC and it plays fine.
    I tried to start converting the quicktime movies using SmartConverter, but it's time consuming since I have over 50 quicktime movies that this keynote is referencing.  Some of the quicktime movies are also erroring out too when trying to convert them.
    Does anyone have any suggestions on how to deal with M-JPEG quicktime movies that used to work just fine?  Anything I could do across the board to be able to use these rather than converting them all?
    Thanks,
    Dale

    QuickTime in Lion is not reliable as of 10.7.1. The next OS update will fix this. Should be out tomorrow when Apple updates all of its software for iCloud.
    See if your problems are gone then.

  • How to set color space to JPEG image with Java advance Imaging

    How to set color space to JPEG image with Java advance Imaging.
    is there any API in JAI which support to set color space.

    I'm definately no guru, but this is how you can change it.
    CTRL + ALT + Click on the part of the component that you want to change. This brings up the Hidden Dom Inspector, background of component will be surrounded with a red outline (Make sure the red outline is surrounding the part of the tabset you want to change), Now you go to properties sheet and click the ellipses next to rules property this will pop up a dialog you look in this list (At the top) to see the default style classes that are affecting the rendering of the component outlined in red. (You will be able to select different sections of a single component) then you just rewrite the style class that you want to change in your Stylesheet (You will not find the styleclass that you want to change because it is a part of your theme .jar but as long as you name it exactly the same and place in your stylesheet it will override the theme .jar style classes) it's actually very easy -- you were right should be a piece of cake for a guru. Don't have the link handy but you can check out Winston's Blog on changing Table Formatting to get this information...It is EXTREMELY useful if you want your apps to have a custom look and not default that comes with Creator Themes.
    Hope this helps you out God knows others have helped me alot!
    Jason

  • Possible to "move" Java Directory Server ?

    Hi,
    Has anyone tried moving Java Directory server (LDAP) from one host to another ?That is not having to reinstall the Directory server when moving hosts ?
    I would like to know if anyone has and if any tips and tricks would be great. Thanks

    Yes, I tried to move the DS from a zone to the global yesterday. It was not fun or intuitive. You cannot simply copy instance's dir tree or certificates. The DS creates a certificate database with a randomized password, so you need a new instance to add the certificates back.
    Start with backing up the old instance and copy the dir tree to the new server:
    dsadm stop $DSINS
    dsadm backup $DSINS /archive/path
    On the new server create a new DS instance and restore to it:
    dsadm create $DSINS
    dsadm restore $DSINS /archive/path
    Finally start it to see what breaks:
    dsadm start $DSINS
    I ended up having to request and sign a new server cert. Though, it should be realized you need to create a new DS instance on a server with the original FQDN to add the old certificates back. I modified the local /etc/hosts and the DNS with the original CNAME as a pointer to the real hostname. I had no end of fun getting everything working again. All the clients needed to be re-initialized with the modified profile for the server list. BTW, if your profiles specify the old IP for the default server-list, your ldap clients will fail/hang when being initialized.

  • Cannot import/insert photo (jpeg) in movies

    iMovie 09 on SnowLeopard, was working just fine until today. Went to edit the movie and found I couldn't insert a new jpeg. When I try, iMovie looks like it is working normally (green insert bar, plus sign added to cursor) but nothing appears in the project. I tried creating a new project, just to test, and the same thing is happening in that one, too!
    Next, I tried trashing the preferences file and repairing disk permissions, then checked that there were no updates waiting (none found for iMovie). It allowed me to add one photo to my new, blank, test project, then acted the same; no further images were added. A repeat of the test shows that it appears to be related to the preferences file; after trashing that, I can add one image before the problem reappears.
    Any suggestions?
    Thanks in advance!
    -Matthew

    Hey MatthewMiller, i hope you are doing well, i just came to this foro and found your question that you already answered.
    I have experienced the same problem, i can not drag pictures (stills) to the project section, i have tried by many ways with any result, im starting to thing this mac is the problem or some how preferences of the system should me modified.
    i would really appreciate your comments about this topic,
    thanks a lot for you time.

  • JPEGS and Movie Clips

    Hello.
    My newbie questions are can a JPEG be converted to a movie
    clip in Flash and how is this done?

    Import your image to the library - File/Import/ Import to
    library
    Drag image on the stage
    Right click on the image and choose "Convert to Symbol"
    Choose "Movie Clip"
    Done
    Shane

  • Jpegs and Movie on same DVD?

    This may sound like a stupid question and I am new here...but, is there a way I could include a set of piks that can be downloaded onto a computer and using the same DVD to show a movie I made on a regular DVD player?
    Any help would be appreciated.
    Thanks
    Rob

    You should check "dvdrom content" in the DVD inspector within DVD SP. Then it lets you select the directory (choose) from which you want the content (including jpg's for example) included. What I do is to select a directory which contains my photo directory so I get a new folder on the DVD called something like "Photos."
    Otherswise you get lots of files at the root level on the DVD which is confusing to users. For example, I have a folder on my hard drive called "DVDROM" and it contains a directory called "Photos" which is where the actual jpgs are.
    It works perfectly for me.
    Ed

  • Move Java Frame into Windows taskbar notification area (system tray)?

    Hi,
    I was wondering if anyone has written a service-like application in Java running (and appearing) in the Windows "taskbar notification area", instead of running in the convential Windows taskbar.
    I'm able to add an icon to the taskbar notification area (frequently errorneous called as the 'system tray') by using some native code that uses win32 Shell_NotifyIcon(.. , ..). However, I'm not able to 'couple' the window (i.e. the Java frame) to the new icon in the taskbar.
    My icon is shown in the area AND the frame is shown as an application in the taskbar... I would like to 'remove' my Java application from the taskbar and place it 'as an icon' in the taskbar notification area.
    Has anyone had experience with a similar problem?
    Many thanks!
    Jasper

    If all you need is to make the frame not visible in the taskbar as well than why don't you activate the hide() method? cature the minimize event and activate the frame.hide(); method. And in the system tray make the frame visible by frame.show();

  • Generating a Movie File from a List of (JPEG) Images

    Hi All!
    I was trying this example:
    Generating a Movie File from a List of (JPEG) Images
    http://java.sun.com/products/java-media/jmf/2.1.1/solutions/JpegImagesToMovie.java
    I was using the following command line with the following output:
    root - /home/robertmarkbram/java/jmf/classes
    $java JpegImagesToMovie -w 320 -h 240 -f 1\
    -o file:///home/robertmarkbram/CoolCampus/media/jpgOut.mov\
    file:///BigBrain3/pics/breakfast.jpg\
    file:///BigBrain3/pics/eating.jpg\
    file:///BigBrain3/pics/howto.jpg\
    file:///BigBrain3/pics/jupiterp_cassini_full.jpg\
    file:///BigBrain3/pics/jupiterp_cassini.jpg\
    file:///BigBrain3/pics/spocamok.jpg- create processor for the image datasource ...
    Setting the track format to: JPEG
    - create DataSink for: file:///home/robertmarkbram/CoolCampus/media/jpgOut.mov
    start processing...
    - reading image file: file:///BigBrain3/pics/breakfast.jpg
    - reading image file: file:///BigBrain3/pics/eating.jpg
    - reading image file: file:///BigBrain3/pics/howto.jpg
    - reading image file: file:///BigBrain3/pics/jupiterp_cassini_full.jpg
    - reading image file: file:///BigBrain3/pics/jupiterp_cassini.jpg
    - reading image file: file:///BigBrain3/pics/spocamok.jpg
    Done reading all images.
    java.lang.NullPointerException
    at com.sun.media.multiplexer.video.QuicktimeMux.writeVideoSampleDescription(QuicktimeMux.java:936)
    at com.sun.media.multiplexer.video.QuicktimeMux.writeSTSD(QuicktimeMux.java:925)
    at com.sun.media.multiplexer.video.QuicktimeMux.writeSTBL(QuicktimeMux.java:905)
    at com.sun.media.multiplexer.video.QuicktimeMux.writeMINF(QuicktimeMux.java:806)
    at com.sun.media.multiplexer.video.QuicktimeMux.writeMDIA(QuicktimeMux.java:727)
    at com.sun.media.multiplexer.video.QuicktimeMux.writeTRAK(QuicktimeMux.java:644)
    at com.sun.media.multiplexer.video.QuicktimeMux.writeMOOV(QuicktimeMux.java:582)
    at com.sun.media.multiplexer.video.QuicktimeMux.writeFooter(QuicktimeMux.java:519)
    at com.sun.media.multiplexer.BasicMux.close(BasicMux.java:142)
    at com.sun.media.BasicMuxModule.doClose(BasicMuxModule.java:172)
    at com.sun.media.PlaybackEngine.doClose(PlaybackEngine.java:872)
    at com.sun.media.BasicController.close(BasicController.java:261)
    at com.sun.media.BasicPlayer.doClose(BasicPlayer.java:229)
    at com.sun.media.BasicController.close(BasicController.java:261)
    at JpegImagesToMovie.controllerUpdate(JpegImagesToMovie.java:215)
    at com.sun.media.BasicController.dispatchEvent(BasicController.java:1254)
    at com.sun.media.SendEventQueue.processEvent(BasicController.java:1286)
    at com.sun.media.util.ThreadedEventQueue.dispatchEvents(ThreadedEventQueue.java:65)
    at com.sun.media.util.ThreadedEventQueue.run(ThreadedEventQueue.java:92)
    Can anyone tell me what this error message means?
    Thanks for any advice!
    Rob
    :)

    I think it does that for QuickTime if you don't define the lineStride value in the VideoFormat (lineStride = pixelStride * width).

  • We want to separate ABAP+JAVA, or move ABAP or JAVA to another server

    Hello,
    I want to separate my instance dual stak ABAP+JAVA, I don't lnow what's the better procedure
    or move ABAP or move JAVA, both stay in one server:sapnwd01 (it have BI,EP components)
    We wear Solaris 5.10, Oracle 10.2.0.4, SAP NetWeaver 7.0 (ABAP+JAVA)
    ABAP have SID:NWD with the same database NWD, and number:04
    JAVA have SID:NWD with the same database NWD, and number:14
    And these are my profiles:
    sapnwd01:nwdadm 8% pwd
    /sapmnt/NWD/profile
    sapnwd01:nwdadm 9% ls -l
    total 188
    -rw-rr   1 nwdadm   sapsys      6557 Aug  4 19:33 DEFAULT.PFL
    -rw-rr   1 nwdadm   sapsys     13962 Oct  2 17:22 NWD_DVEBMGS04_sapnwd01
    -rw-rr   1 nwdadm   sapsys       701 Aug 21  2007 NWD_SCS14_sapnwd01
    -rw-rr   1 nwdadm   sapsys      3829 Aug  4 19:33 START_DVEBMGS04_sapnwd01
    -rw-rr   1 nwdadm   sapsys      1449 Aug 21  2007 START_SCS14_sapnwd01
    I started with installation JAVA in another server:sapepd01 (with another version SAP NetWeaver 7.1)
    Regards,
    Oscar

    Hi Sunny,
    Thanks for you comments.
    What's about the conecctions between JAVA-->ABAP and with development are these assigned to my SID:NWD?
    Can I install another JAVA instance and after remove JAVA from instance ABAP+JAVA?
    Development team only give me one or two days for it they don't want loose time in develop.
    Do you have any links to these document?
    Regards,

  • Painting jpeg in java application: non-static method ... static context

    Hi!
    I simply want to show a jpeg within a java application. Showing the jpeg in an applet is no problem (see code below). But I have difficulties to translate this code to a java application. No matter what I try to load the jpeg, I end up with the following error:
    non-static method createImage() cannot be referenced from a static context
    How can I surround it? Thanx in advance for your help!
    Working applet
    import java.applet.*;
    import java.awt.*;
    public class shJpAp extends javax.swing.JApplet {
    Image pic;
    /** Creates a new instance of shJpAp */
    public shJpAp() {
    public void init() {
    pic=getImage(getCodeBase(), "lemmer.jpg");
    prepareImage(pic,this);
    public void paint (Graphics g) {
    g.drawImage(pic,0,0,this);
    Application
    import java.awt.*;
    public class shJp extends javax.swing.JFrame {
    Image pic;
    /** Creates new form shJp */
    public shJp() {
    initComponents();
    //pic = java.awt.Toolkit.getImage("lemmer.jpg");
    ---> pic = java.awt.Toolkit.createImage("lemmer.jpg");
    ---> prepareImage(pic, this);
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    private void initComponents() {
    addWindowListener(new java.awt.event.WindowAdapter() {
    public void windowClosing(java.awt.event.WindowEvent evt) {
    exitForm(evt);
    pack();
    /** Exit the Application */
    private void exitForm(java.awt.event.WindowEvent evt) {
    System.exit(0);
    * @param args the command line arguments
    public static void main(String args[]) {
    new shJp().show();
    // Variables declaration - do not modify
    // End of variables declaration
    public void paint( Graphics g) {
    g.drawImage(pic, 0,0,this);
    }

    Hi,
    just want to add a solution I found in some textbook (see code below). I hate finding every possible question in the internet, but seldom fitting answers.....
    But again, one little thing pushed me close to my first heart attack: The code below works well when executed by foot (...java showPic...). In the NetBeans 3.6 the frame refuses to show the pic!
    I am looking for an appropiate forum - but if anyone of you can help, it would be very nice ;-)
    import java.awt.*;
    import java.awt.event.*;
    public class showPic extends Frame {
    Image pic;
    public showPic() {
    addWindowListener( new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    pic = getToolkit().getImage("lemmer.jpg");
    setSize(200,100);
    setVisible(true);
    public void paint(Graphics g) {
    if (pic != null) {
    g.drawImage(pic,60,20,this);
    public static void main( String[] args ) {
    new showPic();
    }

  • Images merging and movies merging

    Hello!
    I am new to Java Media Framework and I'm sorry about my English is really poor.
    I read articles , like :
    [Generating a Movie File from a List of (JPEG) Images|http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/JpegImagesToMovie.html]
    [Merging Tracks from Multiple Inputs|http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/Merge.html]
    I'm at Unbuntu 9.04 i386 Desktop , using JDK 1.6.0_16 , and [JMF 2.1.1e Software|http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/download.html].
    [ Question 1 ]
    I want to merge images into a mov file per 2 images
    $ java JpegImagesToMovie -w 320 -h 240 -f 1 -o file:1.mov file:foo1.jpg file:foo2.jpg
    $ java JpegImagesToMovie -w 320 -h 240 -f 1 -o file:2.mov file:foo3.jpg file:foo4.jpg
    $ ...
    the result of 1.mov and 2.mov is work correctly, and then, I want to merge 2 mov files into 1 mov file
    $ java Merge -o file:result.mov file:1.mov file:2.mov
    the file size of result.mov is almost the sum of the 1.mov and 2.mov , but i cannot play it correctly, the result.mov is only show the content of the 1.mov.
    the real cmd :
    $ java -classpath jmf.jar:. JpegImagesToMovie -w 691 -h 299 -f 1 -o file:a.mov /images/1.jpg /images/2.jpg
    $ java -classpath jmf.jar:. JpegImagesToMovie -w 691 -h 299 -f 1 -o file:b.mov /images/3.jpg /images/4.jpg
    $ java -classpath jmf.jar:. Merge -o file:result.mov file:a.mov file:b.mov
    [ Question 2 ]
    I use [Writing AVI videos using pure Java|http://blog.hslu.ch/rawcoder/2008/08/12/writing-avi-videos-using-pure-java/] to merge images(jpg) into a avi file, and it works correctly. the type is MJPG/MJPEG.
    like [Question 1] , 1.avi and 2.avi made, and then , I can use the avimerge tool to merge them into the result.avi , and it works correctly.
    but I cannot merge them by [Merging Tracks from Multiple Inputs|http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/Merge.html] even if I change the code of Merge.java :
    @49 : String videoEncoding = "MJPG";
    @51 : String outputType = FileTypeDescriptor.MSVIDEO;which is according to [Class VideoFormat|http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/apidocs/javax/media/format/VideoFormat.html] and [Class FileTypeDescriptor|http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/apidocs/javax/media/protocol/FileTypeDescriptor.html] .
    the real cmd :
    $ java -classpath jmf.jar:. Merge -o file:result.avi file:a.avi file:b.avi
    but I cannot play it correctly.
    Thanks for your help !!

    hello.there wrote:
    hi shadowLife ,
    I am also a newbie to this filed.Curently i am working on Video conference tool using JMF. I also need to merge the mulitple audio files and i found, it is possible.
    One of my friend tried to merge the two video files, but the problem is that when you play them it plays only first video. As these videos are stored as multiple tracks so only one trakc is played at a time. If you want to see the other video then there should be a option of seeing video track in your player like it is in VLC player.
    So i don't know whether merging of two video tracks as a single video track is possible or not (i feel it is not possible), because video stream is different from audio stream.Merging two video streams together doesn't make sense the way it does with an audio stream. Thus, if a video has more than one video stream running concurrently, it'd be for something like "alternate angles" on a DVD, or perhaps security camera software would combine all of the video feeds into a single file like that.
    The OP was wanting to concatinate video files, not merge them. One right after the other. This concept makes a lot more sense for most applications.
    One way to do this is to play both video on some panel and capture the screen ( i heard that is is possible in java) then create a video from this captured images.It is possible to do that, but you would never want to do something like that... There are more problems with that idea than I can count, just stemming from the fact that that is a very, very hacky solution.
    Certainly there are instances where this might be necessary, but anything like that would absolutely be a last-ditch effort and could never be included in any sort of publishable software...
    Hope this information will help you.
    May be, i can be wrong so hoping for others reply on that. this will help me also for making my fundamentals and knowledge strong.Can be wrong and mostly were ;-) But it's a learning experience for everyone, eh?

  • FrameAccess.java: Modifying frame rate capture ?

    I'm currently supposed to capture the keyframes in a video and I've managed to find FrameAccess.java that has allowed me to capture all the frames in the video.
    However, I do not need to capture every single frame; just need to capture frames maybe every 20 seconds or so.
    -> Therefore, how do I go about doing it?
    Also, when I ran FrameAccess.java, it seems that when it has reached the end of the video, it will keep trying to capture the last frame and it won't end until I manually end it.
    -> How do I rectify this error?
    I really hope someone can help. Thanks in advanced.
    Edited by: silentvisual on Mar 4, 2009 1:08 AM

    However, I do not need to capture every single frame; just need to capture frames maybe every 20 seconds or so. You can grab the frames using FrameGrabbingControl. Then why use FrameAccess.java??
    If you use FrameGrabbingControl, then using Timer you can grab frames at whatever interval you want, e.g. try the following code:
    [http://forums.sun.com/thread.jspa?messageID=10595229#10595229]
    It uses a timer to grab frames at 30ms (you can make it 1000ms or anything by changing this line : " timer = new Timer(30, this);" ).
    Now, I don't know what you want to do after capturing images, do you want to save images only or do you want to make a video from this, if this is the case then you can search for "Jpeg to Movie" JMF program example on this site.
    Also, when I ran FrameAccess.java, it seems that when it has reached the end of the video, it will keep trying to capture the last frame and it won't end until I manually end it. For me, there is no such problem. The program ends when the end of video file is reached.
    Thanks!

  • Buffer to movie frames (AVI/QuickTime)

    I'm working on adding JMF movie functionality to Mathematica through J/Link and JMF. Mathematica's Java extensions don't allow you to write things like a custom datasource, but I have managed to grab individual frames. I would like to be able to image processing and then output the resulting images into a movie. Could I use a codec to take individual images and output them directly into an AVI or QuickTime movie? Any input would be appreciated.

    Try looking at suns JPEGS to movie example

Maybe you are looking for