How to use saveVideoSnapshotAt api to take snapshot.
Posted: 27 Jul 2014 03:31
Hi all,
I developing in iOS, I use ./buildMobileVLCKit.sh -s compiled VLCKit,and add a button to SimplePlayback example to take snapshot.
code:
When I click it didn't take snapshot but get error:
[0c2de874] core video output error: Encoding support not compiled-in!
[0c2de874] core video output error: Failed to convert image for snapshot
plz help how to compiled-in encoding support?
Thanks,
Farrell
I developing in iOS, I use ./buildMobileVLCKit.sh -s compiled VLCKit,and add a button to SimplePlayback example to take snapshot.
code:
Code: Select all
- (IBAction)takeSnapshot:(UIButton *)sender {
NSString* path = NSHomeDirectory();
NSString* snapshotFile = [path stringByAppendingString:@"/1.png"];
NSLog(path);
[_mediaplayer saveVideoSnapshotAt:snapshotFile withWidth:0 andHeight:0];
[_mediaplayer saveVideoSnapshotAt:path withWidth:0 andHeight:0];
}
[0c2de874] core video output error: Encoding support not compiled-in!
[0c2de874] core video output error: Failed to convert image for snapshot
plz help how to compiled-in encoding support?
Thanks,
Farrell