Remove audio from video

I pick a movie with the image picker . The problem is that i don't know how to remove the audio from the asset . Any idea? This is the code that i am using to retrieve the movie :

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {

    NSURL *url =  [info objectForKey:UIImagePickerControllerMediaURL];
    if ([[NSFileManager defaultManager]fileExistsAtPath:movie.id]) {
        [[NSFileManager defaultManager]removeItemAtPath:movie.id error:nil];
        [[NSFileManager defaultManager]removeItemAtPath:movie.convertedID error:nil];
    }
    movie.convertedID=nil;

    [self dismissModalViewControllerAnimated:YES];
    dispatch_async(dispatch_get_main_queue(), ^{
        [self saveNewMovieAt:url];
    });

}

Answers


better way to Mute MPMoviePlayerController while playing instaed of trying to remove the audio from the asset :)

As per my knowledge, there is no other way to do it..

[[MPMusicPlayerController applicationMusicPlayer] setVolume:0];

                          or

        [myMPMoviePlayerController setVolume:0];

Need Your Help

Executing native sql in Entity Framework 4 and returning other than known entities

c# .net sql entity-framework ado.net

I know about ObjectContext.ExecuteStoreQuery<T>(), but is it possible to use that method (or other methods) when you don't know the return entity before running the query?

How to avoid Name-itis in Windows Workflow (WF)?

c# .net workflow-foundation

I just started working with WF and what I find really annoying is that you have to name

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.