mikaelhellqvist / ReverseClip

Reverse a video clip in AVFoundation
154 stars 31 forks source link

Wrong output when convert more than 1 videos #6

Open Sergozh opened 10 years ago

Sergozh commented 10 years ago

@mikaelhellqvist When I try to convert 3 videos the last one is reversed video from all 3 files. How to fix this? Thanks.

vijaytholpadi commented 9 years ago

I was facing the same issue. I ended up emptying the composition before converting every video for my usecase. Like,

RCComposer.m
- (id)init
{
    self = [super init];
    if (self) {
        _composition = [[AVMutableComposition alloc] init];
        [self emptyComposition];
    }
    return self;
}