[VLCKit on Mac]Failed to change source AR
Posted: 09 Dec 2011 09:16
I'm trying to learn VLCKit,I would like to make a player based on this example:vlc-1.1/projects/macosx/framework/Examples
There are two problems:
1. I use a 768 * 480 video for test, when playing, vlc converted my size into 768 * 576. I think the reason is the "aspect-ratio" , so I want to convert to 16:10
2. When I use the under code
to change the aspect-ratio to 16:10, but it's error...following is log
main generic error:Failed to change source AR
Please help me!
There are two problems:
1. I use a 768 * 480 video for test, when playing, vlc converted my size into 768 * 576. I think the reason is the "aspect-ratio" , so I want to convert to 16:10
2. When I use the under code
Code: Select all
- (IBAction)setAspectRadio:(id)sender {
char * aspradio = (char *)[[sender title] UTF8String]; //16:10
[player setVideoAspectRatio:aspradio] ;
}
Code: Select all
[0x10182df10] main video output debug:new aspect-ratio 768:480, sample aspect-ratio 1:1
[0x10182df10] main video output debug:window size: 768x480
[0x10182df10] main video output debug:cropping picture 768x480 to 0,0,768x480
[0x10024f670] main generic error:Failed to change source AR
Please help me!