Video poster image disappears.

Hello.
I am having a wierd bug only in Safari.  When I load my page and switch to another tab while it loads and then come back to it the images are missing.
I am using a <video> embed with an image poster image inside of it along with HTML5.
Here is my site so you may test it out.  Any help would be appreciated.  Thank you!
http://motion-master-templates.com

What version of InDesign? What video format?
Here is a posting on video formats I made on InDesignSecrets.com. As you can see I have poster image appearing on my iPhone (and iPad):
http://indesignsecrets.com/picking-the-best-video-format-for-digital-publishing.php

Similar Messages

  • Scene7 video poster image

    Hi,
    How can I set a poster image to scene7 video?
    Thanks,
    Anurag Kumar

    What version of InDesign? What video format?
    Here is a posting on video formats I made on InDesignSecrets.com. As you can see I have poster image appearing on my iPhone (and iPad):
    http://indesignsecrets.com/picking-the-best-video-format-for-digital-publishing.php

  • Video files show very low resolution poster image

    Using Indesign CC and the latest tools and content viewer I am creating Autoplay video animations for the cover of our weekly magazine.
    With each issue I have published the same problem occurs where the poster image for the video file is very low resolution and makes our content look very amateur (for a brief moment) before playing the video file at full resolution.
    I have tried creating animations using flash, photoshop and Edge Animate, exporting MP4, MOV and OAM files. The problem is present with all movie files and with the Edge animation files a white flash appears before the file plays.
    Is there a solution for either of these issues? We are looking to continue to use animations for our covers and need them to look 100% crisp and clean.

    Sorry to jump in but I'm having the same issue too!
    I have an H.264 mp4 which I created in After Effects and inserted using the Media panel within DPS.
    As you see below, it plays on page load and I have chosen the finished front cover to be the poster image when it ends from within the Folio Overlays panel. I have set the video to stop on the last page.
    When the video stops you can see all the artifacting around the text which I would expect to be as crisp as the original PSD file I uploaded as the poster image.
    Is there anything I'm doing wrong or is there anything that can improve the quality of the final still?

  • Can I set a static frame (jpg or png) image as a poster image when embedding flash video into a dreamweaver page?

    hello everybody - my subject line pretty much says it all...
    i'm looking to have my users see a single static frame (a
    poster image) that they can then click on to start playing a video.
    how do i set this in either flash or dreamweaver?
    anybody have any info?
    much appreciated!

    Will the video appear in place of the image clicked on? Or
    will it be in a
    separate window?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "mitrzne" <[email protected]> wrote in
    message
    news:fvangc$9rd$[email protected]..
    > hello everybody - my subject line pretty much says it
    all...
    >
    > i'm looking to have my users see a single static frame
    (a poster image)
    > that
    > they can then click on to start playing a video. how do
    i set this in
    > either
    > flash or dreamweaver?
    >
    > anybody have any info?
    >
    > much appreciated!
    >

  • I inserted a HTML5 video in page, when I test it in a Browser, I see the poster image and controls, But when I click play button the video goes white, slider moves like its playing, but just white picture. There was no audio included in video. Please help

    I inserted a HTML5 video in page, when I test it in a Browser, I see the poster image and controls, But when I click play button the video goes white, slider moves like its playing, but just white picture. There was no audio included in video. Please help

    Without a link, it's anybody's guess.
    It could be a problem the video rendering itself.  Which software did you use?
    Did you export to the 3 file types -- MP4, OGG and WEBM to support all browsers?
    Does your web server support those 3 MIME file types?
    Nancy O.

  • How Set Video Poster Frame (Image) for Intro Media?

    iBooks Author Mavens,
    How can the Poster Frame (aka, Poster Image) for the Intro Media segment of an iba video be set?
    Irrespective of anything I do with the Widget Inspector...such as attempting to move the Poster Frame to a frame at the desired ~7 second point (in a ~10 second clip)...iBA keeps resetting the Poster Frame to ~2.5 seconds (not wanted).
    Very, very frustrating...suggestions?
    Many, many thanks!
    Plane Wryter

    If you use a video in any place but intro, will your iBA let you choose and keep any poster frame setting you like?

  • Default poster image for each exported video

    Anyone know of a way to change the default "poster image" of each video that is exported to the MobileMe web gallery? The default icons that show up for each movie in my gallery aren't very good and I'd like to change to a different frame if possible. I know you can do this easily for photo albums by setting the key photo but cant find a similar way for videos. Maybe there is a setting in iMovie that I'm missing?

    So I wasn't going mad after all - Brightcove's player default is with greyed out image
    "the overlay button is standard for all our HTML5 Players and this cannot be changed through the publishing code or the player settings. the main reason for this being there is to indicate the user that it is a clickable image that loads the video. If you wish to replace that image, you would have to implement some custom code that would display the image of your choice above The Brightcove player and add some action to replace the image with the video when it is being clicked. An example of this you can find here:
    http://distractedtype.com/test/replaceImage.html
    It uses some javascript to make one div with the BC publishing code visible, when the image has been clicked."

  • Support for RAW Video and Image Sequences

    Being a stills photographer who moved into video some years back, I'm very interested in the direction Lightroom is going with regards to video support. I haven't tried it yet but I wondered if LR4 supports Red R3D files? And would it perhaps support other future RAW video formats from the likes of Canon and Sony? It would seem like the perfect application, perhaps intergrating with Premiere in a similar way to RedCine with FCP. Be great to be able to log footage, orginize it into bins and do basic colour correction in LR, edit the project in Premiere and re-touch in After Effects.
    Another task LR would seem ideally suited to is combining image sequences into timelapse video. Shooting timelapse as an image sequence on a DSLR is pretty much standard practice these days; and I've used LR to colour correct, crop and scale my sequences (before fitting them together in Quicktime) for years now. It would be fantastic to be able to preview the clip and export the video (as DPX, ProRes or DNxHD) from within Lightroom.
    These are obviously fairly long term wishes. In the short term though, the video features are pretty much useless to me without support for exporting ProRes and DNxHD files. With this LR becomes a powerful asset manager that could be used to collect together footage from multiple sources/codecs and transcode it all for editing. As mentioned in a previous thred, XML support would make it even more useful in this context. There is definitly a gap in the market for an application than can handle this kind of task well.
    With other manufactures floundering or neglecting their professional user base, Adobe would seem poised to take the video post crown. I wonder if Lightroom could be part of the takeover?

    As I understand it Andy, its intention is to remain a photographers program, not a videographers program.  The basic video features are available for lightweight management of videos coming from digital cameras, but it's not going too much further than that at this point in time.  Of course that may change in the future, but we'll all have to wait and see on that one.

  • Images disappearing in photoshop cs2...

    Hello Folks,
    I seem to have a problem brewing in Photoshop...Lately when I am working in Photoshop, if I have more than one image open at a time and I go to close one of them they all disappear from the screen but they are still open.  I have to go to Close All and start over.  Also, if I am using the polygon lasso tool, I will be carefully tracing a part of an image and suddenly the image disappears, while the window is still there, it turns grey and all I can see is the lasso tool traces I have made but I then have to start all over because I have to get the image back and the only way to do this is to end the lasso session and start over...The image will come back at some point after I reset the tool but I have to start all over again...I have updated everything, tried to optimize Photoshop performance but nothing seems to work...I am using windows media center edition sp 3 and have 1.87 gb of RAM.  I can't think of anything that corresponds to when this started happening, I didn't change much except I do always do windows updates but I choose which ones I want to install and what is junk...Unfortunately the scratch disk is the same drive as the program is on but at the moment I don't have an alternative, could this cause this situation?  Should I invest in a drive just for the scratch disk?  Or, if anyone has any other suggestions I am willing to try anything...This program is important to my work and I use it a lot...
    Thank you,
    Jennifer

    Off hand it sounds like video driver or low ram issue. Examples:Windows did an update that included a faulty video driver (which isn't very likely) or you install another program that wants to run in the background. The former usually require you to enable the download of hardware drivers for the update, the latter well even a virus could do that.
    Goto your video card makers website and get the latest driver that they recommend and then run msconfig (Start>run>msconfig) disable all the startup programs and see if that helps, when you are done, make sure you reenable the programs. Each time you use msconfig it will require a restart.
    If that don't help, next is check the hard drive making sure you have enough room, defraged and no errors.
    Next is to run a test on the ram. You should find one at downloads.com or take it to who ever services your system and let them do it. Mind you they will charge for time checking and cost of replacing the ram or HD is needed. This is definately a last step effort. Try to do as much as you can first to save some money, if if you are unconfortable doing this then the money is well spent.

  • Artifacting and low resolution in poster image

    Hi, I'm having real problems with poor quality poster image/final still of video front cover.
    I have an H.264 mp4 which I created in After Effects and inserted using the Media panel within DPS.
    As you see below, it plays on page load and I have chosen the finished front cover to be the poster image when it ends from within the Folio Overlays panel. I have set the video to stop on the last page.
    When the video stops you can see all the artifacting around the text which I would expect to be as crisp as the original PSD file I uploaded as the poster image.
    Is there anything I'm doing wrong or is there anything that can improve the quality of the final still? Is the poster image even being displayed or is it the final frame of the video? (I imagine this is the case)
    I hope you can help.
    Thank you

    I've sorted it!
    Dropped the poster image altogether and recreated the movie elements as I would in InDesign on the page and the movie plays to the end and finally reveals the page underneath. I was overcomplicating things.

  • When exporting my Indesign Layout with Images, the images disappear ?

    When exporting my indesign layout the images disappear once exporting as a PDF print.
    I have had several information bubbles appear claiming I need to alter my blend space due or colour settings ?
    I have altered the blend space to rgb and still it does not work.
    I have also unlocked all the layers in attempt for this to work.
    My assignment is due in tomorrow and still I cannot get this feature to work
    any help would be great !

    CharlieLDavis1992 wrote:
    When in preview mode they do not appear either.
    If you understood my question and the images also disappear in InDesign when switching the screen to Preview mode, or Overprint Preview, that means they are set to non-printing in some way. Either they are on a layer set to non-printing, or they're set to non-printing on an individual basis in the Attributes panel.
    >I am using the latest OS,
    Not really helpful. OS X? Windows? Probably not relevant, as it turns out, for this problem, but you should be specific.
    >The pdf appears in preview
    Does that mean you are trying to use Mac Preview to view the PDF? If so, it may give you bad results. Mac Preview is not a godd general-purpose PDF viewer and is incapable of rendering complex PDF.
    The first error dialog you show is what you would get when opening a file in ID that has different document color spaces than the default settings in your color settings file. That's not a problem, and to preserve the color appearances you would leave things as they are.
    The second warning dialog indicates you are making an interactive PDF, which is RGB. If you are using CMYK images I don't think you'll avoid color shifts no matter what you do if you have transparency, but I don't do interactive PDF, so I can't give good advice here. If you are using RGB images, by all means your transparency blend space should be set to RGB.
    Can you post a screen shot of the export dialog?

  • Images "Disappear" When Moving a Project But Really They'r e Just Invisible

    Last night I imported 442 images into a new project. I rated them, and edited about 40-50. This morning I moved the project within the same library. When I did so, all the images disappeared, sort of. The project appeared empty. I let it sit a couple of minutes, and undid the move to no effect.
    I checked to see if a filter was blocking the images but it was not the problem. I checked the Project properties and it showed the images were all there (plus, I use referenced files and I hadn't deleted the CF card so worst case scenario I had all my originals). Also, when I displayed all the projects in a browser view window, the project showed up and I could sweep through all the thumbnails in the project browser. But again, if I selected the project and tried to see the images in either the browser, viewer, or split view, nothing showed up. No thumbnails, no file names, no empty thumbnails, nothing. The photos were sort of invisible.
    I "solved" the issue by moving an image - any image - from another project into the problem project. Suddenly that photo and all the other images, were visible. Removing the random image did not recreate the problem.
    Since I no longer have the problem I'm posting for 2 reasons: (1) to publish the problem and my fix in case anybody gets the same problem, and (2) to see if anybody knows what caused this and if there is a more direct fix than my weird indirect fix. Thanks.

    I have had the same thing happen consistently. I import images into a default project. Then when I move the project into an organizational folder... all the images disappear. After a couple of panics, I have now realized that if I stay calm, close Aperture, then open it again, the pictures are all present. Quite a pain in the butt, but at least there is a work around. Albeit a bit scary .
    Best,
    Jim

  • Cd image disappear again!!

    Hi folks,
    Earlier, cd images disappeared when it tried mounting in finder/itunes, but it got solved when osx 10.6 updated to 10.6.3 or 2, cant remember. But anyway, after itunes came with the new update, Ive got the same problem. Anyone experiencing the same? Im ripping in my own cds to itunes, and I did 5 cds and the last disappeared. So if I restart my mac, it will show up and after 4/5 new cds, it disappears again. Same old stuff.
    By the way, I experience so much troubles with itunes 10.. If I scan artwork for the cds, it wont import using the cmd+i. Only one jpg will stay imported. And I cant go back to itunes 9, cause then it mess up my iphone sync. Apple please fix this issues with disappearing cd images and artwork bugs

    Apple has a tech note about using hubs for itune sync.
    I'll post a link when I find it.
    If having a problem don't use it or try another hub.
    A powered hub should have an external power dongle- check it is working and plugged in. The hub can still work even if the dongle is not there but the USB cables will have less DC power.
    Remember the USB cables have power AND data lines and the problems is the DATA lines.
    Using longer cables or EXTENDER cables and a hub or even the supplied APPLE dock will cause data corruptions. EVERY connection in a USB line will cause a reduction of quality in high speed USB cable. A hub can add a lot of electrical noise.
    example : A 6 foot USB extender cable -- the Apple Ipad cable -- the Apple Ipad DOCK --- The Ipad = NO sync
    NOW remove the extended cable or the DOCK from this line and sync will work
    The Ipad might be a bit sensitive to USB noise or the supplied Apple cable could use some more shielding ( it does look thin ).

  • Streaming RTSP to BlackBerry , poster image/movie

    I implemented an HTML page in which a js script detects the user-agent and display a specific player according to it. Everything works fine for desktop, and iPhone/android mobile sets.
    Regarding Blackberry  ( tested with 9300 Curve), I can stream using the following QT Object :
    QT_WriteOBJECT('rtsp://sd-30152.dedibox.fr:1935/vod/mp4:sample.mp4','480','270', '', 'autoplay', 'false');    
    this works very well, I modified it to have an initial player before playing, with a grey background and sized according to the clp)
    QT_WriteOBJECT('rtsp://sd-30152.dedibox.fr:1935/vod/mp4:sample.mp4', '480','270','', 'scale','tofit', 'bgcolor','#CCCCCC', 'autoplay', 'false'); 
    This works again ....
    I tried to set an initial poster image, located at posterUrl, using the command
    QT_WriteOBJECT('http://video.mysportacademy.com/testPlayer/assets/images/breizh_flag.png', '480', '270', '',  'rtsp://sd-30152.dedibox.fr:1935/vod/mp4:sample.mp4', 'target','myself', 'controller','false');
    I can get the image displayed but WHEN CLICKING ON THE IMAGE, nothing happen... the streaming doesn't start at all....
    is it possible ? and if yes , what's wrong in my command ...
    thanks for your feedback
    note : trying to reach the page

    ... still continuation to my question...
    You can put the poster for SWF using UI Media panel as shown here. So does this mean that there is a bug in a scripting environment?

  • Creating video from images

    I am trying to make video from images
    here is my program
    import java.awt.Dimension;
    import java.awt.Image;
    import javax.media.*;
    import javax.media.control.*;
    import javax.media.protocol.*;
    import javax.media.protocol.DataSource;
    import javax.media.datasink.*;
    import javax.media.format.VideoFormat;
    import javax.media.util.ImageToBuffer;
    import java.io.*;
    import java.util.*;
    *For AVI files, each frame must have a time stamp set. See the following message from the jmf-interest archives for details:
    http://archives.java.sun.com/cgi-bin/wa?A2=ind0107&L=jmf-interest&P=R34660
    public class AviCreator implements ControllerListener, DataSinkListener
    private boolean doIt(
    int width,
    int height,
    int frameRate,
    MediaLocator outML)
         File folder=new File("c:/images1");     
              File [] files=folder.listFiles();
    ImageDataSource ids = new ImageDataSource(width, height, frameRate,files);
    Processor p;
    try
    System.err.println(
    "- create processor for the image datasource ...");
    p = Manager.createProcessor(ids);
    catch (Exception e)
    System.err.println(
    "Yikes! Cannot create a processor from the data source.");
    return false;
    p.addControllerListener(this);
    // Put the Processor into configured state so we can set
    // some processing options on the processor.
    p.configure();
    if (!waitForState(p, Processor.Configured))
    System.err.println("Failed to configure the processor.");
    return false;
    // Set the output content descriptor to QuickTime.
    p.setContentDescriptor(
    new ContentDescriptor(FileTypeDescriptor.MSVIDEO));
    // Query for the processor for supported formats.
    // Then set it on the processor.
    TrackControl tcs[] = p.getTrackControls();
    Format f[] = tcs[0].getSupportedFormats();
    if (f == null || f.length <= 0)
    System.err.println(
    "The mux does not support the input format: "
    + tcs[0].getFormat());
    return false;
    tcs[0].setFormat(f[0]);
    System.err.println("Setting the track format to: " + f[0]);
    // We are done with programming the processor. Let's just
    // realize it.
    p.realize();
    if (!waitForState(p, Processor.Realized))
    System.err.println("Failed to realize the processor.");
    return false;
    // Now, we'll need to create a DataSink.
    DataSink dsink;
    if ((dsink = createDataSink(p, outML)) == null)
    System.err.println(
    "Failed to create a DataSink for the given output MediaLocator: "
    + outML);
    return false;
    dsink.addDataSinkListener(this);
    fileDone = false;
    System.err.println("start processing...");
    // OK, we can now start the actual transcoding.
    try
    p.start();
    dsink.start();
    catch (IOException e)
    System.err.println("IO error during processing");
    return false;
    // Wait for EndOfStream event.
    waitForFileDone();
    // Cleanup.
    try
    dsink.close();
    catch (Exception e)
    p.removeControllerListener(this);
    System.err.println("...done processing.");
    return true;
    * Create the DataSink.
    private DataSink createDataSink(Processor p, MediaLocator outML)
    DataSource ds;
    if ((ds = p.getDataOutput()) == null)
    System.err.println(
    "Something is really wrong: the processor does not have an output DataSource");
    return null;
    DataSink dsink;
    try
    System.err.println("- create DataSink for: " + outML);
    dsink = Manager.createDataSink(ds, outML);
    dsink.open();
    catch (Exception e)
    System.err.println("Cannot create the DataSink: " + e);
    return null;
    return dsink;
    private Object waitSync = new Object();
    private boolean stateTransitionOK = true;
    * Block until the processor has transitioned to the given state.
    * Return false if the transition failed.
    private boolean waitForState(Processor p, int state)
    synchronized (waitSync)
    try
    while (p.getState() < state && stateTransitionOK)
    waitSync.wait();
    catch (Exception e)
    return stateTransitionOK;
    * Controller Listener.
    public void controllerUpdate(ControllerEvent evt)
    if (evt instanceof ConfigureCompleteEvent
    || evt instanceof RealizeCompleteEvent
    || evt instanceof PrefetchCompleteEvent)
    synchronized (waitSync)
    stateTransitionOK = true;
    waitSync.notifyAll();
    else if (evt instanceof ResourceUnavailableEvent)
    synchronized (waitSync)
    stateTransitionOK = false;
    waitSync.notifyAll();
    else if (evt instanceof EndOfMediaEvent)
    evt.getSourceController().stop();
    evt.getSourceController().close();
    private Object waitFileSync = new Object();
    private boolean fileDone = false;
    private boolean fileSuccess = true;
    * Block until file writing is done.
    private boolean waitForFileDone()
    synchronized (waitFileSync)
    try
    while (!fileDone)
    waitFileSync.wait();
    catch (Exception e)
    return fileSuccess;
    * Event handler for the file writer.
    public void dataSinkUpdate(DataSinkEvent evt)
    if (evt instanceof EndOfStreamEvent)
    synchronized (waitFileSync)
    fileDone = true;
    waitFileSync.notifyAll();
    else if (evt instanceof DataSinkErrorEvent)
    synchronized (waitFileSync)
    fileDone = true;
    fileSuccess = false;
    waitFileSync.notifyAll();
    public static String[] createParam()
         File folder=new File("c:/images1");     
         String [] files=folder.list();
         String param[]=new String[files.length+8];          
    param[0]="-w";
    param[1]="400";
    param[2]="-h";
    param[3]="300";
    param[4]="-f";
    param[5]="1";
    param[6]="-o";
    param[7]="file:/c:/images/abc.avi";          
         for(int i=8;i<files.length+8;i++)     
              param="file:/c:/images1/"+files[i-8];
    return param;     
    public static void main(String args1[]) throws Exception
    //jpegCreator.main(null);
    //if (args.length == 0)
    // prUsage();
              //String [] args ={"-w","320" ,"-h","240", "-f","1", "-o", "file:/c:/images/abc.mov","file:/c:/images/surya_jo1.jpg", "file:/c:/temp/flower1_jpg.jpg" };
              String [] args=createParam();
    // Parse the arguments.
    int i = 0;
    int width = -1, height = -1, frameRate = 1;
    Vector inputFiles = new Vector();
    inputFiles.add("file:/c:/images/surya_jo1.jpg");
    inputFiles.add("file:/c:/images/flower1_jpg.jpg");
    String outputURL = null;
    width = 128;
    height = 128;
    outputURL = "file:/c:/images/abc.avi";
    // Generate the output media locators.
    MediaLocator oml;
    if ((oml = createMediaLocator(outputURL)) == null)
    System.err.println("Cannot build media locator from: " + outputURL);
    System.exit(0);
    AviCreator imageToMovie = new AviCreator();
    imageToMovie.doIt(width, height, frameRate, oml);
    System.exit(0);
    static void prUsage()
    System.err.println(
    "Usage: java JpegImagesToMovie -w <width> -h <height> -f <frame rate> -o <output URL> <input JPEG file 1> <input JPEG file 2> ...");
    System.exit(-1);
    * Create a media locator from the given string.
    private static MediaLocator createMediaLocator(String url)
    MediaLocator ml;
    if (url.indexOf(":") > 0 && (ml = new MediaLocator(url)) != null)
    return ml;
    if (url.startsWith(File.separator))
    if ((ml = new MediaLocator("file:" + url)) != null)
    return ml;
    else
    String file =
    "file:" + System.getProperty("user.dir") + File.separator + url;
    if ((ml = new MediaLocator(file)) != null)
    return ml;
    return null;
    // Inner classes.
    * A DataSource to read from a list of JPEG image files and
    * turn that into a stream of JMF buffers.
    * The DataSource is not seekable or positionable.
    /************************************************* private class ImageDataSource extends PullBufferDataSource
    private ImageSourceStream streams[];
    ImageDataSource(int width, int height, int frameRate)
    streams = new ImageSourceStream[1];
    streams[0] = new ImageSourceStream(width, height, frameRate);
    public void setLocator(MediaLocator source)
    public MediaLocator getLocator()
    return null;
    public String getContentType()
    return ContentDescriptor.RAW;
    public void connect()
    public void disconnect()
    public void start()
    public void stop()
    public PullBufferStream[] getStreams()
    return streams;
    public Time getDuration()
    System.out.println("dur is " + streams[0].nextImage);
    //return new Time(1000000000);
    return DURATION_UNKNOWN;
    public Object[] getControls()
    return new Object[0];
    public Object getControl(String type)
    return null;
    * A DataSource to read from a list of JPEG image files or
    * java.awt.Images, and
    * turn that into a stream of JMF buffers.
    * The DataSource is not seekable or positionable.
    private static class ImageDataSource extends PullBufferDataSource {
    private final Time durTime;
    private final PullBufferStream[] streams = new JpegSourceStream[1];
    * Constructor for creating movies out of jpegs
    ImageDataSource(int width, int height, int frameRate, File[] jpegFiles) {
    streams[0] = new JpegSourceStream(width, height, frameRate, jpegFiles);
    this.durTime = new Time(jpegFiles.length / frameRate);
    * Constructor for creating movies out of Images
    * NOTE - this is all done IN MEMORY, so you'd better have enough
    /*ImageDataSource(int width, int height, int frameRate, Image[] images) {
    streams[0] = new AWTImageSourceStream(width, height, frameRate, images);
    this.durTime = new Time(images.length / frameRate);
    public void setLocator(MediaLocator source) {
    public MediaLocator getLocator() {
    return null;
    * Content type is of RAW since we are sending buffers of video
    * frames without a container format.
    public String getContentType() {
    return ContentDescriptor.RAW;
    public void connect() {
    public void disconnect() {
    public void start() {
    public void stop() {
    * Return the ImageSourceStreams.
    public PullBufferStream[] getStreams() {
    return streams;
    public Time getDuration() {
    return durTime;
    public Object[] getControls() {
    return new Object[0];
    public Object getControl(String type) {
    return null;
    * The jpeg-based source stream to go along with ImageDataSource.
    private static class JpegSourceStream implements PullBufferStream {
    private final File[] jpegFiles;
    private final int width, height;
    private final VideoFormat videoFormat;
    private int nextImage = 0; // index of the next image to be read.
    private boolean ended = false;
    // Bug fix from Forums - next one line
    long seqNo = 0;
    public JpegSourceStream(int width, int height, int frameRate, File[] jpegFiles) {
    this.width = width;
    this.height = height;
    this.jpegFiles = jpegFiles;
    this.videoFormat = new VideoFormat(VideoFormat.JPEG,
    new Dimension(width, height),
    Format.NOT_SPECIFIED,
    Format.byteArray,
    (float)frameRate);
    * We should never need to block assuming data are read from files.
    public boolean willReadBlock() {
    return false;
    * This is called from the Processor to read a frame worth
    * of video data.
    public void read(final Buffer buf) {
    try {
    // Check if we've finished all the frames.
    if (nextImage >= jpegFiles.length) {
    // We are done. Set EndOfMedia.
    System.out.println("Done reading all images.");
    buf.setEOM(true);
    buf.setOffset(0);
    buf.setLength(0);
    ended = true;
    return;
    File imageFile = jpegFiles[nextImage];
    nextImage++;
    System.out.println(" - reading image file: " + imageFile);
    // Open a random access file for the next image.
    RandomAccessFile raFile = new RandomAccessFile(imageFile, "r");
    byte[] data = (byte[])buf.getData();
    // Check to see the given buffer is big enough for the frame.
    if (data == null || data.length < raFile.length()) {
    // allocate larger buffer
    data = new byte[(int)raFile.length()];
    buf.setData(data);
    // Read the entire JPEG image from the file.
    raFile.readFully(data, 0, (int)raFile.length());
    System.out.println(" read " + raFile.length() + " bytes.");
    // Bug fix for AVI files from Forums ( next 3 lines).
    long time = (long) (seqNo * (1000 / videoFormat.getFrameRate()) * 1000000);
    buf.setTimeStamp(time);
    buf.setSequenceNumber(seqNo++);
    buf.setOffset(0);
    buf.setLength((int)raFile.length());
    buf.setFormat(videoFormat);
    buf.setFlags(buf.getFlags() | buf.FLAG_KEY_FRAME);
    // Close the random access file.
    raFile.close();
    } catch (Exception e) {
    // it's important to print the stack trace here because the
    // sun class that calls this method silently ignores
    // any IOExceptions that get thrown
    e.printStackTrace();
    throw new RuntimeException(e);
    * Return the format of each video frame. That will be JPEG.
    public Format getFormat() {
    return videoFormat;
    public ContentDescriptor getContentDescriptor() {
    return new ContentDescriptor(ContentDescriptor.RAW);
    public long getContentLength() {
    return LENGTH_UNKNOWN;
    public boolean endOfStream() {
    return ended;
    public Object[] getControls() {
    return new Object[0];
    public Object getControl(String type) {
    return null;
    * The source stream to go along with ImageDataSource.
    /*************************************************************** class ImageSourceStream implements PullBufferStream
    final int width, height;
    final VideoFormat format;
    // Bug fix from Forums - next two lines
    float frameRate;
    long seqNo = 0;
    int nextImage = 0; // index of the next image to be read.
    boolean ended = false;
    public ImageSourceStream(int width, int height, int frameRate)
    this.width = width;
    this.height = height;
    // Bug fix from Forums (next line)
    this.frameRate = (float) frameRate;
    final int rMask = 0x00ff0000;
    final int gMask = 0x0000FF00;
    final int bMask = 0x000000ff;
    format =
    new javax.media.format.RGBFormat(
    new Dimension(width, height),
    Format.NOT_SPECIFIED,
    Format.intArray,
    frameRate,
    32,
    rMask,
    gMask,
    bMask);
    public boolean willReadBlock()
    return false;
    public void read(Buffer buf) throws IOException
    // Check if we've finished all the frames.
    if (nextImage >= 100)
    // We are done. Set EndOfMedia.
    System.err.println("Done reading all images.");
    buf.setEOM(true);
    buf.setOffset(0);
    buf.setLength(0);
    ended = true;
    return;
    nextImage++;
    int data[] = null;
    // Check the input buffer type & size.
    if (buf.getData() instanceof int[])
    data = (int[]) buf.getData();
    // Check to see the given buffer is big enough for the frame.
    if (data == null || data.length < width * height)
    data = new int[width * height];
    buf.setData(data);
    // Bug fix from Forums ( next 3 lines).
    long time = (long) (seqNo * (1000 / frameRate) * 1000000);
    buf.setTimeStamp(time);
    buf.setSequenceNumber(seqNo++);
    java.awt.Color clr = java.awt.Color.red;
    if (nextImage > 30)
    clr = java.awt.Color.GREEN;
    if (nextImage > 60)
    clr = java.awt.Color.BLUE;
    for (int i = 0; i < width * height; i++)
    // TODO - figure what the guy was trying to do here.
    data[i] = clr.getRGB();
    buf.setOffset(0);
    buf.setLength(width * height);
    buf.setFormat(format);
    buf.setFlags(buf.getFlags() | Buffer.FLAG_KEY_FRAME);
    public Format getFormat()
    return format;
    public ContentDescriptor getContentDescriptor()
    return new ContentDescriptor(ContentDescriptor.RAW);
    public long getContentLength()
    return 0;
    public boolean endOfStream()
    return ended;
    public Object[] getControls()
    return new Object[0];
    public Object getControl(String type)
    return null;
    * The java.awt.Image-based source stream to go along with ImageDataSource.
    * Not sure yet if this class works.
    private static class AWTImageSourceStream implements PullBufferStream {
    private final Image[] images;
    private final int width, height;
    private final VideoFormat videoFormat;
    private int nextImage = 0; // index of the next image to be read.
    private boolean ended = false;
    // Bug fix from Forums - next one line
    private long seqNo = 0;
    public AWTImageSourceStream(int width, int height, int frameRate, Image[] images) {
    this.width = width;
    this.height = height;
    this.images = images;
    // not sure if this is correct, especially the VideoFormat value
    this.videoFormat = new VideoFormat(VideoFormat.RGB,
    new Dimension(width, height),
    Format.NOT_SPECIFIED,
    Format.byteArray,
    (float)frameRate);
    * We should never need to block assuming data are read from files.
    public boolean willReadBlock() {
    return false;
    * This is called from the Processor to read a frame worth
    * of video data.
    public void read(final Buffer buf) throws IOException {
    try {
    // Check if we've finished all the frames.
    if (nextImage >= images.length) {
    // We are done. Set EndOfMedia.
    System.out.println("Done reading all images.");
    buf.setEOM(true);
    buf.setOffset(0);
    buf.setLength(0);
    ended = true;
    return;
    Image image = images[nextImage];
    nextImage++;
    // Open a random access file for the next image.
    //RandomAccessFile raFile = new RandomAccessFile(imageFile, "r");
    Buffer myBuffer = ImageToBuffer.createBuffer(image, videoFormat.getFrameRate());
    buf.copy(myBuffer);
    // Bug fix for AVI files from Forums ( next 3 lines).
    long time = (long) (seqNo * (1000 / videoFormat.getFrameRate()) * 1000000);
    buf.setTimeStamp(time);
    buf.setSequenceNumber(seqNo++);
    //buf.setOffset(0);
    //buf.setLength((int)raFile.length());
    //buf.setFormat(videoFormat);
    //buf.setFlags(buf.getFlags() | buf.FLAG_KEY_FRAME);
    } catch (Exception e) {
    // it's important to print the stack trace here because the
    // sun class that calls this method silently ignores
    // any Exceptions that get thrown
    e.printStackTrace();
    throw new RuntimeException(e);
    * Return the format of each video frame.
    public Format getFormat() {
    return videoFormat;
    public ContentDescriptor getContentDescriptor() {
    return new ContentDescriptor(ContentDescriptor.RAW);
    public long getContentLength() {
    return LENGTH_UNKNOWN;
    public boolean endOfStream() {
    return ended;
    public Object[] getControls() {
    return new Object[0];
    public Object getControl(String type) {
    return null;
    bit i am getting following exception at run time
    1
    2
    3
    4
    5
    6
    - create processor for the image datasource ...
    Setting the track format to: JPEG
    - create DataSink for: file:/c:/images/abc.mov
    start processing...
    - reading image file: file:/c:/images/surya_jo1.jpg
    - reading image file: file:/c:/images/flower1_jpg.jpg
    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.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: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(ThreadedEventQueue.java:65)
    at com.sun.media.util.ThreadedEventQueue.run(ThreadedEventQueue.java:92)
    plz help me
    thanks in advance

    Step 1) Copy that code into a .java file
    Step 2) Compile it
    Step 3) Run it
    Step 4) Look at the output
    Step 5 (optional)) If it didn't work, post a specific question about the code, and use [co[b]de] tags.

Maybe you are looking for

  • Connecting Z10 to Link issues

    I bought a new Z10 a few months ago and after several updates to z10 and bb link i still can't connect my phone to link to sync any contacts or back it up. I use to just back up my old bb 7.1 over wifi or the network but that option is no longer avai

  • How can I store movies in the cloud and access them from my devices?

    Hello, I would like to store movies in the cloud and access them from my device without having to download them to the device because there is not enough space on the harddrive to store them on it. How would I do this? Would I have to download the mo

  • URGENT - SMB failure

    What does this mean? None of our PC users can login to their profiles right now. [2008/09/18 09:01:43, 0, pid=79438] /SourceCache/samba/samba-187.1/samba/source/lib/opendirectory.c:opendirectoryuser_auth_and_sessionkey(679) dsDoDirNodeAuthOnRecordTyp

  • Remove a Dynamically Added Child Symbol

    I am trying to check if a symbol exists, and if it does remove it. Otherwise, add it. Since this is being added to a bettun, the goal is that an object shows up when you click and goes away when you click again. My current code is below. Help?! var c

  • Exported mp4 or flv has much smaller frame size than the original

    Not sure if I started the project the wrong way or if I'm doing something wrong when I export. My imported file is an mp4 29.87 fps 44,100Hz 16 bit stereo. 480x360 When I export it as an flv or mp4 the image is about the size of a postage stamp surro