[VLCKit on Mac]Failed to change source AR

macOS specific usage questions
xinaction
Blank Cone
Blank Cone
Posts: 16
Joined: 20 Sep 2011 10:02

[VLCKit on Mac]Failed to change source AR

Postby xinaction » 09 Dec 2011 09:19

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:

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

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

Postby fkuehne » 12 Dec 2011 16:03

What does [player videoAspectRatio] return for your video?
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

xinaction
Blank Cone
Blank Cone
Posts: 16
Joined: 20 Sep 2011 10:02

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

Postby xinaction » 13 Dec 2011 11:16

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. :)

xinaction
Blank Cone
Blank Cone
Posts: 16
Joined: 20 Sep 2011 10:02

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

Postby xinaction » 14 Dec 2011 06:01

Who can solve this problem? :oops:

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

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

Postby fkuehne » 15 Dec 2011 14:00

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..
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

xinaction
Blank Cone
Blank Cone
Posts: 16
Joined: 20 Sep 2011 10:02

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

Postby xinaction » 26 Dec 2011 01:58

1.2 had fixed this bug, thx!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 28 Dec 2011 02:13

Cool.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 19 guests