Re: NSTask argument list
Re: NSTask argument list
- Subject: Re: NSTask argument list
- From: Marco S Hyman <email@hidden>
- Date: Sat, 25 Jun 2016 21:30:45 -0700
>
> NSString* argString = [NSString stringWithFormat:@"-i \"%@\" -c copy %@", [url absoluteString], [self.outputFileURL absoluteString]];
>
> self.ffMPEGTask = [NSTask launchedTaskWithLaunchPath:execPath arguments:@[argString]];
I believe arguments is an array of arguments, not an array containing a string that matches a command line.
> What the argument string should look like is:
>
> -i <source url> -c copy <dest file>
Then your arguments array should contain five items.
1: -i
2: <source url>
3: -c
4: copy
5: <dest file>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden