• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Newbie needs help with NSTask and NSPipe
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie needs help with NSTask and NSPipe


  • Subject: Re: Newbie needs help with NSTask and NSPipe
  • From: j o a r <email@hidden>
  • Date: Thu, 15 Dec 2005 20:23:58 +0100


On 15 dec 2005, at 18.13, Birch Browning wrote:

However, I'm have a difficult time getting the mpeg4
data back from the pipe and file handler and then
saved to the disk. If I convert from the command line,
I get just over 1MB back in mp4 (it's a short test
video). If I convert using the app I get about 15k.
I'm obviously either not saving all of the video, or
saving the wrong info. I'm sure it's something simple,
but I've hit a wall.

If this helps, when I run the app, sendData: get
called as does taskDataAvailable: (In fact, it gets
called 3 times, thus the checking for an existing
file), but TaskCompleted: does not get called no
matter how long it runs.

Do you really need to funnel the data through your app? Are there no command line arguments for specifying input and output paths for your command line tool? That seems the most straight forward way. Your current implementation will probably not work at all if you were to try it with a large video fie (you create an in memory representation of the file to send to the task...).

There are a lot of threads in the list archives dealing with how to work with NSTask. Perhaps you could find something there? For example:

<http://www.cocoabuilder.com/archive/message/cocoa/2005/7/4/140787>
<http://www.cocoabuilder.com/archive/message/cocoa/2001/8/17/38994>
<http://www.cocoabuilder.com/archive/message/2004/12/7/123271>

et.c.

j o a r



Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Newbie needs help with NSTask and NSPipe
      • From: Birch Browning <email@hidden>
References: 
 >Newbie needs help with NSTask and NSPipe (From: Birch Browning <email@hidden>)

  • Prev by Date: Re: Path to Metadata attributes
  • Next by Date: Re: KVO / Core Data question
  • Previous by thread: Newbie needs help with NSTask and NSPipe
  • Next by thread: Re: Newbie needs help with NSTask and NSPipe
  • Index(es):
    • Date
    • Thread