How can copy or move files by my AI plugin in Leopard??

How can copy or move files by my AI plugin in Leopard??
Thanks!
hanyang

You can use "execve". This example will copy /tmp/file1 to /tmp/file2<br /><br />#include <stdio.h><br />#include <sys/types.h><br />#include <unistd.h><br /><br />pid_t forkPid;<br /><br />char *childargs[] = { "cp", "/tmp/file1", "/tmp/file2", 0 };<br /><br />if( ( forkPid = fork() ) == 0 ) {<br /><br />  execve( "/bin/cp", childargs, NULL );<br /><br />} else if( forkPid > 0 ) {<br /><br />  printf( "Success!" );<br /><br />} else {<br /><br />  printf( "Can't fork" );<br /><br />}<br /><br />For more information, man execve.

Similar Messages

  • How can I convert .mov files for use with other apps?

    When loading movies taken on a friend's digital camera to my PC, the video files were saved as Quicktime .mov files. I am now unable to pull those files into any other software program (I want to put them onto a CD or DVD and play on external players.) How can I convert .mov files to a .wmv or .avi or mpeg?
    Thanks - J
    RS720G   Windows XP  

    Kodak Digital Camera QuickTime MOV Problems
    After battling a number of serious problems with the videos taken by my new Kodak Digital Camera, I decided to write up this page so that anyone searching the web would find out the true answers without as much grief!
    I’ve also made some other comments about my experience with the camera, in case anyone was considering buying a Kodak camera in the near future.
    I bought the camera just before Christmas 2004 in the US. At the time of writing, it is a pretty good model for domestic use—about 5.2 megapixels, costing about US$400 (or AU$600 back here in Australia). From a company as reputable as Kodak, I expected no problems.
    The first disappointing thing was that the spring inside the spring-loaded battery clip, inside the camera, came loose within days. It proved impossible to reattach it without completely dismantling the camera, which (despite my engineering qualifications) I was not willing to do. This would usually have been a warranty item, but Kodak’s warranty does not extend to other countries. I’ve since had to jam cardboard in to keep the battery clip engaged, and have taped the battery bay shut to avoid it opening accidentally when taking the camera out of the case. This works fine with the docking station (an extra AU$100!), but it means I can no longer charge the battery without the docking station (since you need to take it out to charge it). I was not impressed!
    The camera takes good photos, and I have no complaint with that. The controls and camera menus are well-designed. The large display is excellent.
    The EasyShare software is not as easy to use as it looks, has a habit of crashing, has a web update program that is always running in the background of Windows, and transferring images is nowhere as easy or quick as it should be. I’ve now uninstalled it completely, and simply copy the photos directly from the device. (If the camera memory is nearly full, and you just want to transfer the last few photos, then it’s impossible to use the EasyShare software to browse the camera’s photos without it actually downloading the whole lot through the USB cable—and it takes forever! Copying from the device directly doesn’t hit this bug.)
    The capability to take video using the camera was a great attraction when I selected it, and, if it worked properly, it would make it quite a handy little camcorder in its own right. With a 512 MB memory card in it, over an hour of video can be recorded at Video-CD quality (320 x 240 24fps video, 8 kHz audio). It’s not full digital video, but it would still be a pretty good feature for a US$400 camera. If it worked.
    The first disappointing thing about taking videos is that the optical zoom cannot be adjusted while the camera is recording. It can only be adjusted between video sequences. I don’t know why this restriction was made in the design.
    The real problems, however, start when you try to do anything with the video clips captured by the camera. Kodak has chosen to capture the videos in QuickTime format. This is fine—QuickTime is, technically, excellent—except that there is no simple way to convert QuickTime MOV files to AVI or MPEG or VCD. The Kodak software comes with a QuickTime player, so you can see the video clips on the computer you installed the software on—and they look good. Problem is that you can’t just dump those MOV files onto your Video-CD creator (it will usually want AVI or MPEG files).
    It takes some time to realise that Kodak have not even bothered to include any software with the camera that can convert these MOV files to a more useful format. This is a serious PR blunder, and anyone bitten by this is unlikely to go near the Kodak brand ever again.
    After some web searching, owners of these cameras generally find that the best (only?) freeware solution to convert MOV to AVI is Bink and Smacker’s RADtools program.
    RADtools is amazingly powerful for the price (i.e. free), but it hits two fundamental problems with Kodak Digital Camera MOV video files, that are the fault of the Kodak camera, not RADtools. (I know this because every other MOV converter hits the same problems—except one, as you will see below.)
    The first problem is that the sound cannot be converted properly. When you convert any Kodak MOV files, there is an “aliasing” of the sound at the upper frequencies. This is a technical description—you get a whispery, tinny, C3PO type of echo to everything. It really destroys the quality of the video clips (especially bad when I am trying to capture priceless memories of my 4- and 7-year-old sons—I don’t want their voices destroyed for all time).
    Every conversion program I tried ended up with the same audio problem. I concluded that it is something strange in the way the Kodak cameras store the MOV files.
    Strangely enough, I noticed that the QuickTime player didn’t distort the audio like this. The audio sounds just fine through QuickTime. More on this shortly.
    The second, more serious problem is that RADtools could not properly convert some of the video clips at all. (This problem only affected less than 10% of the clips I originally filmed, but most of those clips were very short—less than 20 seconds. It seems that the probability of this problem gets worse, the longer the clip.) RADtools would misreport the number of frames in the clip, and would stretch out a small number of frames of video (in slow motion) to match the length of the audio.
    Again, I confirmed that this is a property of some of the MOV files stored by the camera. Other conversion tools also had problems with the same MOV clips.
    After more angst, I found a number of websites in which frustrated owners of these Kodak cameras have reported the exact same problems.
    It was only then that I discovered that QuickTime itself can convert MOV files to AVI. Believe it or not, it’s built into the QuickTime Player that Kodak supplies, or that you can download free from apple.com. The problem is that you can’t use it unless you pay Apple to upgrade to QuickTime Pro.
    After realising that this would probably be the only way to get decent audio for these clips, I paid the AU$59 to Apple Australia to get the licence key that enables the extra “Pro” menu options in QuickTime.
    Sure enough, you can “Export” any MOV file to a number of formats, including AVI. And guess what? The audio comes out fine!
    So, the first piece of advice I can give is: pay Apple the US$29 (or whatever amount it is in your country) to upgrade QuickTime to QuickTime Pro.
    From here, however, there are still a few snags to untangle.
    The first is that the default settings for Exporting to AVI don’t give a great result. It defaults to the Cinepak codec, medium quality. This looks terrible compared to the original QuickTime movie. Even on maximum quality, that codec just doesn’t give good results.
    I finally found that the best option is to use the Intel Indeo Video 4.4 codec, set on maximum quality. This creates AVI files that are 10 to 20 times larger than the original MOV files, but the quality is there. If (like me) you only want the AVI files so you can dump them into your Video-CD program, then you want to keep the quality as high as possible in this first step. The extra hard disk space is not really a concern. When your VCD program converts the AVI files to MPEG, it will compress them to the usual VCD size.
    Now for the biggest snag: those problem MOV files are still a problem, even for QuickTime Pro. Unbelievably, these Kodak cameras are spitting out MOV files which have some sort of technical flaw in their data specifications. QuickTime is able to play them back fine—and that seems to be all that the Kodak engineers really checked. However, if QuickTime Pro tries to export them, then when the progress bar gets to the end, it never finishes. It just keeps going. If you check the output folder with Explorer, and keep hitting F5 to update the file listing, you can see the file getting bigger, and bigger, and bigger. It never stops.
    That this happens even for QuickTime itself (the native format for these files) confirms that the problem is with the software built into these Kodak cameras. It would be nice it they issued a patch or a fix. I couldn’t find one.
    Fortunately, there is a “workaround” for this problem. I found it when trolling the net trying to find solutions to all these problems. The workaround is to use QuickTime Pro’s cut and paste facility. Open the problem MOV file, then press Ctrl-A (the standard key combination for “select all”—in this case it selects the entire film clip, as you can see by the grey selection of frames at the bottom of the player). Then hit Ctrl-C (i.e. copy, which in this case copies all the frames, but not the incorrect data structure in the original MOV file). Now hit Ctrl-N (i.e. new, in this case a new MOV file or player). In this new player, press Ctrl-V (i.e. paste). Now you have a new version of the MOV file with the bad data structure exorcised. You can save this under a new name, but make sure you specify “Make movie self-contained”—otherwise, it will simply be a link to the original (bad) MOV file, which you are probably going to delete once you save the exorcised version. (You also cannot overwrite the original file, because it needs to access that to make the “self-contained” movie. You need to give it a slightly different name, save it “self-contained”, then delete the original and rename the new copy back to what you wanted it to be. A pain, I agree, but at least the **** thing works—finally!)
    The exorcised MOV file can now be used to Export to AVI format. (I also keep all the MOV files on a separate CD, in case I want to reconvert them to a different format in the future. I figure it’s better keeping the exorcised ones than the haunted ones.)
    So I hope that all this answers a few of your questions. No, you weren’t being incredibly stupid.

  • How can I play mov file on ipad2?

    How can I play mov file on ipd2? Anyone? Thanks.

    I imported (using Photos app) a .mov file from my Nikon camera. Tap the icon and it played.
     Cheers, Tom

  • How can I transfer .mov files to my iPad?

    How can I transfer .mov files to my iPad?

    If it's on a SD card in your camera, you cau use the camera connection kit, either by connecting the camera or inserting the SD card.
    If it's on your computer, you can use a USB flash drive & the camera connection kit.
    Plug the USB flash drive into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
    Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
     Cheers, Tom

  • How can I save .mov file as another .mov file after trim from Pre9?

    I would have thought this would be simple.  Just like I can crop a still image in Photoshop and save it with a new name (or the same name), I expected to be able to trim or split an .mov file in Premiere Elements 9 and save the resulting file(s) under a new name (or the same name) while preserving the same format.
    But SIX hours later, NO.
    Instead, after I split or trim the .mov file, it seems to be held hostage inside a project that won't let it go.  I even tried "exporting" it but the choices are different than the properties of the source file (a BAD thing), and the resulting two files from the export are unreadable on my computer (USELESS).
    The .mov file was shot with a Canon EOS Rebel T3i.  Windows with Vista.  Adobe Premiere Elements 9.  I also have Photoshop CS5 Extended and Lightroom 3.4.x, if either of those would help.
    I'm sure that I'm mistaken,  There MUST be a secret menu option to SAVE-the-trimmed-CLIP-as-a-SOURCE-file.
    How could there not be something this basic?

    ~ ~ ~ ~ ~ *** ~ ~ ~ ~ ~
    Quoting Steve:
    "I'll say it once more: It's impossible to cut a piece of video and then resave your file.....[because] IT'S [against] THE NATURE OF EDITING VIDEO WITH EVERY VIDEO EDITING SOFTWARE IN THE WORLD."
    ~ ~ ~ ~ ~ *** ~ ~ ~ ~ ~
    I'm very pleased to say that I've found out how to do exactly what I wanted to do, despite Steve's strongly stated opinion that it is "impossible."
    I can:
    ..... trim or split a video
    ..... and save it under the same name or a different name(s)
    ..... WITHOUT converting it to something else before or after trimming
    ..... WITHOUT changing it from its original format
    ..... WITHOUT exporting (compressing) it
    ..... WITHOUT "rendering" it different in any way except my desired length change (and resulting smaller file size)
    This is desireable to me in order to:
    ..... save many gigs of space on my terabyte drives
    ..... while retaining source file footage that may be useful in future projects
    ..... IN ITS ORIGINAL (source) FORMAT !!!!!
    YAY!!!
    I got thinking about the software that came with my camera.  I didn't install it because it included things like a program to handle RAW images (and I prefer to use Adobe Lightroom 3) and a program that I thought might be similar to Bridge (and I really like Adobe Bridge).
    But I decided to install it and see if there was anything there that would allow me to work with the videos and sure enough, there it was - the ability to trim my videos of the junk while keeping the rest in original perfect format, just as it was shot. From a user's point of view, it is a precise video version of cropping a still image in Photoshop.  EXACTLY what I wanted to do!!!
    Here is a collage of the properties box of the "before" version (the original original), collaged together with the  properties box of the "after" version (the trimmed original).  The properties boxes are the properties as reported by Adobe Premiere Elements 9.
    In the above-shown collage of the screenshots that I've made for you, you can see that nothing has changed in terms of the properties.  The only changes are the length (because I cut it), the file size (because it is MUCH smaller now), and the name (because I wanted to preserve the original file in order to make a screenshot of its properties for you). I WANT TO REPEAT - the new CUT file is identical to the original, except the unwanted portion has been cropped away. It was NOT compressed, it was NOT rendered, it was NOT exported.  It is a true source file utilizing original footage in its original format.
    (This forum limits images to 450 pix wide so to see that all the relevant format properties are the same in both properties boxes, you may have to increase the size through your browser by holding down the [Ctrl] and hitting the "=" key (the one with the "+" above the "=" sign).)
    ~ ~ ~ ~ ~ *** ~ ~ ~ ~ ~
    Here are the steps I took to make the screenshot above:
    1 - Opened the original file in Canon ZoomBrowser EX 6.7 (which came with the camera).
    2 - Trimmed ("cut") the file by placing a start point and stop point around the desirable footage.
    3 - Saved under a different file name.  (NOTE:  This was a true save, NOT an export, NOT a "render" of some sort.)
    4 - Switched to Adobe Premiere Elements 9 and started a new "project."
    5 - Used "Get Media" to pull the original version and the cut version of the video into the project.  NOTE:  I pulled the cut version in first, so if there had been a format mismatch (as compared with the DSLR-1080p30 @29.97 setting I normally use when creating a new project), Premiere would have said so.  But there was NOT a format mismatch.  And it runs perfectly, just as it did before, including audio.
    6 - Right clicked each video and took a screenshot of the properties of each to show you.
    And this means I can use the trimmed footage for any purpose down the road, yet I didn't have to save the entire file which included unwanted footage.  And I've saved a considerable amount of space on one of my terabyte drives.
    SUMMARY:
    Easy as pie:
    I trimmed the excess off a video WITHOUT "converting," "exporting," "compressing," "rendering" or changing the format away from the original in any way.
    No loss of any type of data whether audio or visual or "other."  (Except, of course, the unwanted footage.)

  • How can I view .mov files on my ipad?

    How can I view my .mov spherical panoramas on my ipad?

    You can use a USB flash drive & the camera connection kit.
    Plug the USB flash drive into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
    Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
    Secrets of the iPad Camera Connection Kit
    http://howto.cnet.com/8301-11310_39-57401068-285/secrets-of-the-ipad-camera-conn ection-kit/
     Cheers, Tom

  • How can I import .mov file into dvd studio pro?

    Hi,
    I have a .mov file and want to but a dvd with menu and chapters. But when I try to import the .mov file into dvd studio pro it says Incompatible format. How can I import my .mov file in to dvd studio pro?

    Two ways…
    Transcode into a codec like Pro Res, import into DVDSP and let it do the encoding.
    Or better yet:
    Import into Compressor, choose a DVD preset and let Compressor encode. It will make two files, separate video and audio files. Import those into DVDSP.
    Good luck.
    Russ

  • Premiere Elements 2.0  how can I edit MOV. files from my camcorder

    I have Elements 2.0 and I can't get it to work with the mov. files from my canon digital camcorder.    The picture does not even come in and then I tried to convert the mov. file to mpeg2 and that worked ok but when I moved it to the elements editing software the video played perfect but the sound would not come in at all?  Any help would be greatly appreciated.

    First, MOV is but a "wrapper," and can contain all sorts of "stuff," mostly different CODEC's. This ARTICLE will give you background on what can be inside those "wrappers," plus tell you how to "peek" inside of them.
    For most MOV files, I use Apple's QuickTime Pro (US$29 upgrade/unlock), and choose DV-AVI w/ the DV/DVCPRO CODEC (compression) and 48KHz 16-bit PCM/WAV for the Audio.
    About the only MOV format/CODEC, that I do not have issues with is the Animation CODEC. I use those in PrPro to edit natively, when an artist, or client provides me material from a Mac. I just specify the Animation CODEC, and things work fine. Other MOV CODEC's - well, not so well.
    Good luck,
    Hunt

  • How can Photoshop Organizer move files on import?

    This has been a problem and I can find no source to answer this.
    When we import pictures, lets say from a flash memory card, Photoshop Elements Organizer will copy the file from the flash drive, and create directories on my hard drive to organize the pictures.  In our case the import puts the pictures into folders based on the date of the picture.
    This is real nice and no problem here.
    However, I have copied to my hard drive a folder of pictures that I want Photoshop Organizer to do the same thing to.  COPY the files from the folder, create directories to organize the pictures.  Just like it would do for the flash drive.
    But Photoshop Elements insits on leaving the files where they are.  How can you tell the import program that I would like it to COPY the files as it does for the memory card?  There is a box on the "get from file and folders" selection that says "copy the file" but that selection is grayed out.
    Please help, since the only other way I can think to do this is to copy the files to an USB drive and hope that Elements would do the COPY and build up the directories.
    I am thinking there is something simple we are missing here.
    Thanks in advance for your help, it is appreciated.
    Bernie

    Juergen, thanks for the quick response.
    Well it sounds like what I thought.  I am trying to figure out how Elements knows the difference between a hard drive and an flash card.  They are both removable media.  As you suggest putting the pictures on a flash card just to import them would take a long time.
    Any idea on how it can tell the difference between a flash card that looks like a disk drive and a USB disk drive that looks like a disk drive?
    After that I am just going to have to go along with the "not moving image files" on the hard drive.  I hope the folks at Adobe some how add this feature.
    If you find out anything on this let me know.
    Thanks again.
    Bernie

  • How can I transfer mov files from my iphone4 to PC without corrupting them?

    I transferred my photos and videos from my iphone4 to my PC to make more room on my phone. After deleting the files from my phone, I realized that the mov files are corrupted. The videos mostly show grey blotches with no sound. I have tried syncing the files from iTunes, tried transferring them with Nikon photo/video transfer software, Canon transfer software, and Corel photo transfer software. Nothing seems to work. I have the latest version of QuickTime [7.6.9 (1680.9)] running on Windows Vista.
    Also, can anyone recommend software for recovering .mov files? There are a lot of them that are affected.
    The jpgs transferred fine.
    Thank you!

    Yes, I have tried. All smaller videos and photos transfer fine. It is only with videos > 500 MB that get created on Windows with 0 (zero) size (the file name gets created on windows but with 0 Bytes).
    Let me add that I do not see the "DCIM" option from Windows Explorer. I only see the folder under Scanner and Cameras.
    Anything I need to do to see "DCIM"? I do see DCIM when I connect my iPhone 4 to the same computer, but not the iPAD.
    Thanks

  • How can I play mov files on my iPad?

    Any 3rd party apps?

    Does this app run in the background allowing me to view MOV files on the web or is it a converter that I need to input a file to? I run into a number of sites that rely on the MOV format to present its content. Of coarse right now I cannot view this Apple format on my iPad.

  • How can I batch move files to the same folder structure in a different location?

    Hi,
    I recently had an issue with my iTunes Library so I used the Organize Library feature to have iTunes organise my library.  What happened was that it put all of my music in a folder called 'Music' on my external hard drive, whereas previously it was not in a folder at all, e.g.
    BEFORE: External Hard Drive / Abba / Greatest Hits / Mama Mia.m4a
    AFTER: External Hard Drive / Music / Abba / Greatest Hits / Mama Mia.m4a
    I don't have any particular issue with the updated folder structure, except that I had copies of the artwork for each album in my album folders, and these weren't moved when the audio files were moved/consolidated/organised.  So I need to find a way of moving all of the artwork to the new folders, e.g.
    External Hard Drive / Abba / Greatest Hits / folder.jpg
    needs to become:
    External Hard Drive / Music / Abba / Greatest Hits / folder.jpg
    I have to do this for 3,000+ albums, and I have multiple artwork files for some albums, so I am hoping that there is a way of doing this using a batch/automated method of some kind, but I haven't been able to turn up anything yet.
    Can someone help with this?
    Thanks,
    Nick

    You can make a smart playlist containing episodes of both series and play from that. Podcasts are linked together by the URL they are served from so merging ongoing series isn't really practical.
    tt2

  • HT3775 How can I see MOV files with Quit Time Player on my Macbook?

    I have video cams in my store and htey record in a MOV format and I´m trying to look the recorded videos and I can´t, it says that is not suported. Somebody knows what can I do?

    You can try using MPEG Streamclip (free download) to see if that can handle the format. Check their website for their requirement of the MPEG2 Playback Component which you may or may not have already (please update your profile - you are not running iOS on an MBP). Are they recorded at 30 or 60 frames per second? I believe only Final Cut can deal with 60 fps.

  • How can I reduce movie file size?

    In the previous version of iMovie it was possible to significantly reduce file size in order to post it on a webpage.  I'm not seeing those options in the new version of iMovie.  Am I missing something?  It's simply impractical to try to post very large files for perhaps a one minute video.  Tom

    First up 1024 x 768 is a little bizarre, that's neither PAL nor NTSC!
    Widescreen video on a computer display is 1040 x 576 (for square pixels).
    If you want to make it auto run on a DVD it will be scaled to fit because DVD's don't play video back at anything other than PAL or NTSC resolution. For a computer display (which would be much better for this strange resolution) then use QTPro or FCP to export it using the H264 Codec or Sorenson 3 and this will compress it. Compressing without reducing quality is not going to happen, it just depends on how much you compress it and how much you don't notice the difference, compression by definition is lossy. I would keep the video bit rate up above 1000 kbps.

  • How can you get video files to play properly from a Fujifilm X20

    How can I get movie files  from my Fujifilm X20 to play properly in imovie?

    OS (windows Xp) will not let me.
    Why will it not?  What is the error message?  How are you trying to transfer them?
    There are lots of ways of moving files.
    A simple and popular way to copy files and share files amoung your devices. This will depend on you internet connection speed.
    https://www.dropbox.com/
    Using iTures to transfer files:
    http://support.apple.com/kb/HT4094?viewlocale=en_US&locale=en_US
    Files Connect -- The swiss army knife of remote file connect
    https://itunes.apple.com/us/app/files-connect/id404324302?mt=8
    Windows File server
    http://itunes.apple.com/us/app/filebrowser-access-files-on/id364738545?mt=8
    "In education and business users increasingly expect to be able to access their data anytime, anywhere and from any device."
    http://www.minnow.it/
    This thread has good info.
    https://discussions.apple.com/thread/3708341?tstart=0
    How to transfer files from your iPad to your PC with iPad to Computer Transfer
    http://www.iphone-mac.com/how-to-transfer-and-sync-contents-from-ipad-to-pc.html
    Try the combo of:
    Diskaid on your computer and FileAppPro on your iPad
    Good old FTP
    FileApp and FileApp Pro

Maybe you are looking for

  • Ipod Video 30gb isn't recognized by My Computer or Itunes.

    My ipod is not recognized by any pc I connect it to. When I connect the usb cable all it does is charge the Ipod itself but it doesn't connect. I tried the 5r's of apple but none of them work. How do I fix this with out going to the apple center to p

  • Connections from mod_wl die off before talking to weblogic 9.2 server

    Hello - I am running into an issue where the mod_wl connector is not completing and leaving the user with a blank screen. The setup is a linux apache server using mod_wl is connecting to weblogic 9.2 on solaris. Turning debug on I see the http reques

  • Deleting the last char of a string

    How can I Delete the last char of a string??? example: asd@fdg@vvdfgfd@gdgdfgfd@gdfgdf@ I want delete the last @! Tks in advance!

  • Best OS for Oracle RAC 10 G

    I'm about to set up an Oracle 10 g RAC, which OS should I choose? Red Hat Linux? Win 2003 Ent? Any known problems with any OS that I should avoid?

  • Idoc transfer via jco

    hi,    i am sending idoc to sap system.    how can i know weather it is went or not ,i want to check it is there or not....   plz provide step by step.... with regards, tony