How to use saveVideoSnapshotAt api to take snapshot.

This forum is about all development around libVLC.
2019801
New Cone
New Cone
Posts: 2
Joined: 27 Jul 2014 02:26

How to use saveVideoSnapshotAt api to take snapshot.

Postby 2019801 » 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:

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]; }
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

Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 40 guests