Page 1 of 1

[VLCKit on Mac]Failed to change source AR

Posted: 09 Dec 2011 09:19
by xinaction
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

Code: Select all

- (IBAction)setAspectRadio:(id)sender { char * aspradio = (char *)[[sender title] UTF8String]; //16:10 [player setVideoAspectRatio:aspradio] ; }
to change the aspect-ratio to 16:10, but it's error...following is log

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
main generic error:Failed to change source AR

Please help me! :oops:

Re: [VLCKit on Mac]Failed to change source AR

Posted: 12 Dec 2011 16:03
by fkuehne
What does [player videoAspectRatio] return for your video?

Re: [VLCKit on Mac]Failed to change source AR

Posted: 13 Dec 2011 11:16
by xinaction
What does [player videoAspectRatio] return for your video?
[player videoAspectRatio] : null
I had used different video files for test. so, I think it's none of videos business.
Thanks for your help. :)

Re: [VLCKit on Mac]Failed to change source AR

Posted: 14 Dec 2011 06:01
by xinaction
Who can solve this problem? :oops:

Re: [VLCKit on Mac]Failed to change source AR

Posted: 15 Dec 2011 14:00
by fkuehne
Looks like a bug in libvlc then. You might want to try to the current code base, which will become VLC 1.2 to see if it is fixed (see the vlc-1.2.git repository). If not, you're regrettably on your own, since nobody is currently working on this part of VLC. Of course, you can file a ticket on trac.videolan.org, but there is no warranty to have this fixed in time..

Re: [VLCKit on Mac]Failed to change source AR

Posted: 26 Dec 2011 01:58
by xinaction
1.2 had fixed this bug, thx!

Re: [VLCKit on Mac]Failed to change source AR

Posted: 28 Dec 2011 02:13
by Jean-Baptiste Kempf
Cool.