OpenWatch / FFmpegWrapper

A lightweight Objective-C wrapper for some FFmpeg libav functions
Other
179 stars 54 forks source link

Remote file #14

Open toptierlabs opened 9 years ago

toptierlabs commented 9 years ago

Guys,

We need to process a remote file. The code actually checks for the file on the local filesystem.

Any way we can fix it?

Thanks

mroushdy commented 8 years ago

Was anyone able to fix this?

shopboy commented 8 years ago

because FFmpegWrapper will send the progress with callback since your resource is from remote, you may not need the information, or have to re-code this part so just comment this part as the following in FFmpegWrapper.m:

    /*NSDictionary *inputFileAttributes = [fileManager attributesOfItemAtPath:inputPath error:&error];
    if (error) {
        [self finishWithSuccess:NO error:error completionBlock:completionBlock];
        return;
     }
    uint64_t totalBytesExpectedToRead = [[inputFileAttributes objectForKey:NSFileSize] unsignedLongLongValue];*/
    uint64_t totalBytesExpectedToRead = 10000000000;