Import Video from video folder

Anyway to import a video from the "video" folder? Currently you click "media" and the photo album/camera roll are the only options.

Yes my reply was for the Mac seeing as how you posted it in the Mac forum. For iPad, try posting in the [Keynote for iPad forum|http://discussions.apple.com/forum.jspa?forumID=1369].

Similar Messages

  • JMF Compiling video from a folder of images

    Hello,
    I am trying to create a video from a folder of images. I am using a modified version of the JPEGImagesToMovie.java code.
    The video is not compiling correctly and when I playback it is only showing a blurred image of the final frame.
    Any ideas?
    Cheers, Paul
    import java.util.*;
    import java.io.*;
    import java.awt.Dimension;
    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;
    public class VideoThread extends Thread implements ControllerListener, DataSinkListener {
       // Generate the output media locators.
         private MediaLocator oml;
       private int width;
       private int height;
       private int frameRate;
       private String folder;
       public VideoThread(int width, int height, int frameRate, String folder) {
          this.width = width;
          this.height = height;
          this.frameRate = frameRate;
          this.folder = folder;
       public void run() {
          if ((oml = createMediaLocator("images/" + folder + "/" + folder + ".mov")) == null) {
             System.err.println("Cannot build media locator from: " + "images/" + folder + "/" + folder + ".mov");
          ImageDataSource ids = new ImageDataSource(width, height, frameRate, folder);
            Processor p;
          try {
             p = Manager.createProcessor(ids);
          } catch (Exception e) {
             System.err.println("Cannot create a processor from the data source.");        
             return;
          p.addControllerListener(this);
          // Put the Processor into configured state so we can set
            // some processing options on the processor.
            p.configure();
          if (!waitForState(p, p.Configured)) {
             System.err.println("Failed to configure the processor.");
             return;
          // Set the output content descriptor to QuickTime.
          p.setContentDescriptor(new ContentDescriptor(FileTypeDescriptor.QUICKTIME));
            // 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;
          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, p.Realized)) {
             System.err.println("Failed to realize the processor.");
             return;
          // Now, we'll need to create a DataSink.
            DataSink dsink;
          if ((dsink = createDataSink(p, oml)) == null) {
             System.err.println("Failed to create a DataSink for the given output MediaLocator: " + oml);        
             return;
          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;
          // Wait for EndOfStream event.
            waitForFileDone();
          // Cleanup.
          try {
             dsink.close();
          } catch (Exception e) {}
          p.removeControllerListener(this);
          System.err.println("...done processing.");
          return;
        * Create the DataSink.
       DataSink createDataSink(Processor p, MediaLocator oml) {
       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: " + oml);
          dsink = Manager.createDataSink(ds, oml);
          dsink.open();
       catch (Exception e) {
          System.err.println("Cannot create the DataSink: " + e);
          return null;
         return dsink;
       Object waitSync = new Object();
       boolean stateTransitionOK = true;
        * Block until the processor has transitioned to the given state.
        * Return false if the transition failed.
       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();
       Object waitFileSync = new Object();
       boolean fileDone = false;
       boolean fileSuccess = true;
        * Block until file writing is done.
       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();
        * Create a media locator from the given string.
       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 image files and
         * turn that into a stream of JMF buffers.
         * The DataSource is not seekable or positionable.
    class ImageDataSource extends PullBufferDataSource {
         ImageSourceStream streams[];
         ImageDataSource(int width, int height, int frameRate, String folder) {
             streams = new ImageSourceStream[1];
             streams[0] = new ImageSourceStream(width, height, frameRate, folder);
         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;
          * We could have derived the duration from the number of
          * frames and frame rate.  But for the purpose of this program,
          * it's not necessary.
         public Time getDuration() {
             return DURATION_UNKNOWN;
         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 {
         String folder;
       String imageFile;
         int width, height;
         VideoFormat format;
       File file;
         int nextImage = 000001;     // index of the next image to be read.
         boolean ended = false;
         public ImageSourceStream(int width, int height, int frameRate, String folder) {
             this.width = width;
             this.height = height;
             this.folder = folder;
             format = new VideoFormat(VideoFormat.JPEG,
                        new Dimension(width, height),
                        Format.NOT_SPECIFIED,
                        Format.byteArray,
                        (float)frameRate);
          * This is called from the Processor to read a frame worth
          * of video data.
         public void read(Buffer buf) throws IOException {
          imageFile = "images/" + folder + "/webcam" + StringPrefix(nextImage,6) + ".jpeg";
          file = new File(imageFile);
            // Check if we've finished all the frames.
            if (!file.exists()) {
             // We are done.  Set EndOfMedia.
                 buf.setEOM(true);
                 buf.setOffset(0);
                 buf.setLength(0);
                 ended = true;
             System.out.println("all images");
             return;
    System.err.println("  - reading image file: " + imageFile);
            nextImage++;
             // Open a random access file for the next image.
             RandomAccessFile raFile;
             raFile = new RandomAccessFile(imageFile, "r");
             byte data[] = null;
             // Check the input buffer type & size.
             if (buf.getData() instanceof byte[])
              data = (byte[])buf.getData();
             // Check to see the given buffer is big enough for the frame.
             if (data == null || data.length < raFile.length()) {
              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.err.println("    read " + raFile.length() + " bytes.");
             buf.setOffset(0);
             buf.setLength((int)raFile.length());
             buf.setFormat(format);
             buf.setFlags(buf.getFlags() | buf.FLAG_KEY_FRAME);
             // Close the random access file.
             raFile.close();
          * We should never need to block assuming data are read from files.
         public boolean willReadBlock() {
             return false;
          * Return the format of each video frame.  That will be JPEG.
         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;
       private String StringPrefix(int number, int length) {
          String stringNum = Integer.toString(number);
          while (stringNum.length() < length)
             stringNum = "0" + stringNum;
          return stringNum;
    }

    If your code was an SSCCE*, I could run it
    against some images that I have successfully
    used to create MOV's (using my own variant of
    JPEGImagesToMovie).
    It isn't, so I can't.
    The only thing I can suggest (off the top of
    my head) is that the images need to be all
    the same size/width, and the same as
    specified for the MOV, otherwise a corrupted
    MOV will be written.
    * http://www.physci.org/codes/sscce/

  • Importing frames from video help please

    Why is photoshop elelments 9 not recognizing .wmv or .avi files when trying to import photos from videos. I have used this feature before without problems using .wmv videos, why did it quit working all of the sudden?

    When something goes awry, start by resetting the preferences. Quit the editor, then restart it from the button in the organizer or the button in the Welcome Screen, whilie holding down Ctrl+Alt+Shift (command+option+shift on a mac). Keep the keys down till you see a window asking if you want to delete the settings file. You do.
    However, having said that, are you sure these wmv files are the same as the ones you did before? Frame from video doesn't work with high-def videos, for example, and it's not great with long ones, either.

  • Keynote on Ipad: how to insert a Video from "Videos"

    Hi all,
    I just have bought Keynote for iPad as to prepare effective presentations and I am completely blocked: I need to use the videos I have uploaded from my PC into the "Videos" folder (from iTunes), but it seems that Keynote is just able to "see" the media library under "Images folder" (photos & videos).
    I am completely halted, since I cannot find event the way to transfer the videos from "Videos" to "Images".
    please help!
    thanks

    alessandrofrompavia wrote:
    Hi,
    The target videos are stored into Videos folder, which is syncronized through iTunes
    the folder mapped by Keynote clicking into the media icon on the ipadis instead the Images folder
    the Videos are not protected, since I have personally built from my PC...
    Do you see any way to make the videos mapped by Keynote?
    Thanks a lot
    Hi Guys,
    sorry to bother, but... anyone who has an idea on this?
    Thanks

  • When using Iphoto to import photo from existing folder, what happens if I delete the photo in Iphoto ? Will the original file in the folder be deleted too?

    When using Iphoto to import photo from existing folder to iphoto, what happens if:
    1. I delete that photo in iphoto? will the original file in the folder be deleted too ?
    2.  when importing, does the hard disk store 2 versions of the photo, hence occupying additional space in the harddisk?

    1 - no  --  iPhoto only manages fiel within the iPhoto library - it does not ever do anything with files outside the library
    2 - No idea what you are asking - by default (and strongly recommended) iPhoto copies the original to the iPhoto library and you delete the source file outside the iPhoto library - iPhoto alwasy has at least two versions of every photo and some times three - it always have the original, a thumbnail and once a photo is modified a preview - this is not optional - if it is not what you want then iPhoto is not the correct progrtam to be using for phopto management
    LN

  • How to import photos from a folder that contains hundreds of folders to Photos keeping the same folder structure?

    How to import photos from a folder that contains hundreds of folders to Photos keeping the same folder structure?

    You'll have to do that manually, i.e. export each album of photos to a folder with the same name located on your hard drive via  the File ➙ Export ➙ File Export menu option.
    OT

  • How to move my videos from videos to camera roll?? I can not access them to create a proyect in imovie...

    How to move my videos from videos to camera roll?? I can not access them to create a proyect in imovie...

    As far as I know, iMovie will recognize only Firewire connected camcorders. If you are connecting with USB, it will never work.
    If the memory card is removable, take it out and use a card reader to copy the video to your Mac.
    I found this from a topic ………

  • How do you transfer videos from video roll to camera roll on ipod touch 4g

    how do you transfer videos from video roll to camera roll?

    I do not understand your question. There is no Video Roll album. There is the Camer Roll album in which all photos and videos taken by anad saved to the iPod are contained.

  • How do I import video from video camera direct to the computer

    I have a macbook pro 15inch with retna display. I want to import video from my HDV Video camera. The camera has a HDMI port, and a firewire (squarish port, very small). What can i get to import the video to edit on the laptop.
    Thanks
    Russell

    Frank is right, you can buy from Apple or Best Buy the Firewire to Thunderbolt adapter.
    Now to your second question. The ports on your camera are similar to mine. I am still working out the HDMI to thunderbolt thing, but the small squarish port is your DV out port. You will need a 4pin to 9pin cable, which I just bought at Radio Shack.. don't get the RocketFish cable from Best Buy, it is BAD!! Trust me, I just spend so much time and money only to find out that for whatever reason, the Rocketfish cable that BestBuy sells is junk. Gigaware at Radio Shack worked INSTANTLY my friend when I fired up iMovie.
    Try that and see if that doesn't help.

  • Firewire port does not always work to import movies from video camera

    I've been having issues with my Mac Pro lately, it is an 06 model. Opening up iMovie and starting the import process for video from my Canon camera, the software will not recognize that the camera is connected.
    In system profile I do see that the camera is connected via the fire-wire port and shows the correct name, etc.
    After a bit of troubleshooting, restarting software, I unplugged the fire-wire connector that is part of the dongle coming from the 23" cinema display and the camera appeared like it should.
    System profile indicated that the fire-wire connection from the 23" display was unknown. I do know that I can plug other items into the display and they work fine.
    Rebooting the Mac Pro did not have any effect either.
    Granted, it is working, but I wish I did not have to unplug the cinema display port each time I want to do this.

    The firewire port on the Display does not have enough internal power requirements to support some devices. Try the firewire port on the back of the Mac Pro. If you are using a firewire repeater then don't connect it to the Display firewire port, use the Mac pro.

  • Can't import Video from Video Camera

    I gave my father in law my old iMac (G4 Flat Panel running OSX 10.3.9 and running iMovie 3.0.3) - and we can't seem to import video from his digital video camera.
    The camera is much newer than the iMac - it is a JVC G2-MG330HU digital video camera.
    When the camera is plugged in (via USB) to the iMac, the drive on the camera shows up in Finder, but not inside the iMovie program.
    If you try to import from iMovie, the camera (and therefore the video clip files on the camera) can not been seen.
    Any hints?
    Thank you.
    Jeremy

    Hi there Jermaster
    iMovie 3 does not support the camera you have. iM is a Digital Video (DV) editor. Cameras that record to mini DV tape is what is required. IM 3 does not support USB either. You need Firewire. The camera you have is a flash based Hard Drive camera. To get the video off this camera you'll need iM08 or 09.
    But it doesn't appear that the computer you have will support either of these versions.
    See below ...
    iLife ’09 System Requirements
    Mac computer with an Intel, PowerPC G5, or PowerPC G4 (867MHz or faster) processor
    iMovie requires an Intel-based Mac, Power Mac G5 (dual 2.0GHz or faster), or iMac G5 (1.9GHz or faster).
    GarageBand Learn to Play requires an Intel-based Mac with a dual-core processor or better.
    512MB of RAM; 1GB recommended. High-definition video requires at least 1GB of RAM.
    Approximately 4GB of available disk space
    DVD drive required for installation
    Mac OS X v10.5.6 or later
    QuickTime 7.5.5 or later (included)
    AVCHD video requires a Mac with an Intel Core Duo processor or better. Visit iMovie ’09 Camcorder Support for details on digital video device and format support.
    24-bit recording in GarageBand requires a Mac OS X-compatible audio interface with support for 24-bit audio. Please consult the owner’s manual or manufacturer directly for audio device specifications and compatibility.
    Some features require Internet access and/or MobileMe; additional fees and terms apply. MobileMe is available to persons age 13 and older. Annual subscription fee and Internet access required. Terms of service apply.
    iPhoto print products are available in the U.S., Canada, Japan, and select countries in Europe and Asia Pacific.
    GarageBand Artist Lessons are sold separately and are available directly through the GarageBand Lesson Store in select countries.
    Burning DVDs requires an Apple SuperDrive or compatible third-party DVD burner.
    Flickr service is available only in select countries.
    Carl

  • Convert live Video from video recording device to a stream

    Hello,
    I want to convert the captured live video from a Windows phone device to a stream so I can Send it over sockets. Any ideas guys?
    in other words, I want to send live video data over sockets.
    Thanks in advance.

    Hello Motasim_Albadarneh,
    the sample at
    [1], the threads at
    [2],
    [3] and
    [4] should be helpful to your problem.
    [1]
    https://code.msdn.microsoft.com/windowsapps/Simple-Communication-Sample-eac73290
    [2]
    http://stackoverflow.com/questions/14187487/windows-phone-camera-feed-over-udp-is-horribly-slow
    [3]
    http://stackoverflow.com/questions/9602582/how-would-i-create-a-windows-phone-live-camera-feed
    [4]
    https://learnwithshahriar.wordpress.com/2015/01/13/guideline-on-how-to-make-a-streaming-app-in-windows-phone
    Regards,
    Bo Liu
    Developer-Hotline for MSDN Online Germany
    Disclaimer:
    Please take into consideration, that further inquiries cannot or will be answered with delay.
    For further information please contact us per telephone through the MSDN-Entwickler-Hotline:
    http://www.msdn-online.de/Hotline
    For this post by the MSDN-Entwickler-Hotline the following terms and conditions
    apply: Trademarks,
    Privacy
    as well as the separate
    terms of use for the MSDN-Entwickler-Hotline .

  • Had to reinstall OS and Itunes..Will not import songs from library folder

    I reinstalled my Windows 7 OS and Installed Itunes 10.6 but when I add my ipodmusic folder to the library it does not import the songs into the library. I tries dragging and dropping a few songs but it deletes them from the folder.
    Any ideas?

    I think I'm having the same problem. This is what I get when I try to import songs:
    The iPod “Ian” is linked to another iTunes music library. Do you want to change the link to this iTunes music library and replace all existing songs and playlists on this I Pod with those from this library?
    Yes No
    What is this about? My buddy accidentally hit yes, and lost all of the songs on his iPod. I simply want to update my iPod with new material. This new material was obtained while using a different computer than what I originally used when I first got my iPod. Does anyone know how I can get music from a new computer on my iPod

  • How do you move videos from video app into camera roll?

    I need to use a video in a Keynote presentation. How do I move a video from the Videos app into the Camera Roll so I can access it in Keynote?

    I don't think that you can do it directly on the iPad, you will need to sync it to the Photos app from your computer's iTunes i.e. if you are syncing photos from your computer then copy it into one of those photo folders, make sure that 'include videos' is ticked on the Photos tab, and re-sync (or if you have the camera connection kit then you can use, for example, an SD card and copy it via that).
    If it's an iTunes purchased video then it possibly won't sync to the Photos app (I've never tried it), and whilst they can be copied via the kit they won't play in the Photos app - so they might not also play in Keynote, they may only play in the Videos app.

  • HT4640 does this work with videos from video library

    I want to be able to embed videos from youtube is this possible?
    Thanks.

    No Amazon does not make a Application to watch their content on Apple TV. I imagine because they are competing with each other in offering video content. To be honest I have both a Apple TV and Roku and I think Roku is much more open simply because they are not really in the content business. They are in the hardware business. Apple on the other hand has both hardware and content. I think they both Apple TV and Amazon offer similar content so I am not sure unless your a Amazon Prime sub that Apple TV cannot provide a good experience. I actually watch some series on Apple TV for the 1080P offerings and use Amazon for some older content that sometimes is cheaper. I have yet to find a one service option that covers everything. In my house we have Apple TV, Roku, Netflix, sometimes Hulu and YouTube. Streaming is still developing and for me I cannot say one service or device is better then another. Another option for Amazon is simply run Amazon content through your PC or Mac on your TV. I do that very frequently and find it a good option.

Maybe you are looking for

  • Acrobat XI Pro won't save as PNG

    Hi, My Acrobat XI won't allow me to save a PDF as a PNG (says something weird about not enough disk space, which is ludicrous). It will allow me to create a JPEG, but they come out minty green for some reason! Don't know what that's about, and am won

  • "Alternate path to a folder containing the installation package 'iTunes.msi'"

    Trying to upgrade my iTunes for my new IPod Touch(32GB). It needs a newer version than I have. When running the installer, it must remove the old iTunes first, I assume.  This is what I receive: "The feature you are trying to use is on a network reso

  • Object oriented programming aspects in Oracle

    Dear All, Can you one explain me the aspects of Object Oriented Programming in Oracle. How to use oops concepts in Oracle Procedures, functions, packages, etc. Thanks, Moorthy.GS

  • 80 GB freezing

    I really love my new 80 GB iPod but for some reason, it suddenly froze on me and I could dodnothing but let the battery run out. Is there a reason for this and can I do something to stop this from happening? I took a trip across country abd it froze

  • Installing Oracle VDI 3.3 into a zone on Solaris x86

    Hi everyone, I'm trying to install Oracle VDI into a zone on an Oracle Solaris Express x86 machine. When I unzip the installer and run ./vda-install in the top dir I get this error: Oracle VDI 3.3 Installation + Installing Oracle VDI Core... + Instal