Options VLCKit Ignored

This forum is about all development around libVLC.
neo80
New Cone
New Cone
Posts: 1
Joined: 05 Oct 2014 23:22

Options VLCKit Ignored

Postby neo80 » 05 Oct 2014 23:33

Hi everyone,

I'm using VLCKit in my project. I want to change the subtitle appearance but add options methods are ignored.

I tried:

Code: Select all

VLCMedia *media = ...; [media addOptions:@{@"--freetype-rel-fontsize=12" : [NSNull null]}]; [media addOptions:@{@"--freetype-font=HelveticaNeue-Bold" : [NSNull null]}]; [media addOptions:@{@"--freetype-bold" : [NSNull null]}]; [media addOptions:@{@--freetype-background-opacity=185" : [NSNull null]}];] ...
and then I tried to overwrite VLCLibrary default params and/or use initWithOptions: method

Code: Select all

- (void) setupVLCLibraryOptions { NSMutableArray *defaultParams = [NSMutableArray array]; [defaultParams addObject:@"--play-and-pause"]; // We want every movie to pause instead of stopping at eof [defaultParams addObject:@"--no-color"]; // Don't use color in output (Xcode doesn't show it) [defaultParams addObject:@"--no-video-title-show"]; // Don't show the title on overlay when starting to play [defaultParams addObject:@"--verbose=0"]; // Let's not wreck the logs [defaultParams addObject:@"--no-sout-keep"]; [defaultParams addObject:@"--vout=macosx"]; // Select Mac OS X video output [defaultParams addObject:@"--text-renderer=quartztext"]; // our CoreText-based renderer [defaultParams addObject:@"--extraintf=macosx_dialog_provider"]; // Some extra dialog (login, progress) may come up from here [defaultParams addObject:@"--force-dolby-surround=1"]; [defaultParams addObject:@"--spdif"]; [defaultParams addObject:@"--freetype-rel-fontsize=12"]; [defaultParams addObject:@"--freetype-font=HelveticaNeue-Bold"]; [defaultParams addObject:@"--freetype-bold"]; [defaultParams addObject:@"--freetype-background-opacity=185"]; [defaultParams addObject:@"--freetype-outline-opacity=200"]; [defaultParams addObject:@"--freetype-outline-thickness=2"]; [defaultParams addObject:@"--freetype-shadow-distance=.03"]; [[NSUserDefaults standardUserDefaults]setObject:defaultParams forKey:@"VLCParams"]; }
The freetype options are always ignored. The same result if I try add 5.1 sound:

Code: Select all

[defaultParams addObject:@"--force-dolby-surround=1"]; [defaultParams addObject:@"--spdif"];
Help please. I'm so frustrated :-(

soullessff
Blank Cone
Blank Cone
Posts: 16
Joined: 18 Nov 2013 18:40

Re: Options VLCKit Ignored

Postby soullessff » 07 Oct 2014 22:28

The same problem here. I don't understand. I think "addOptions:" method is a extremely important in VLCKit because It allow customise the player in a lot of ways. I can't imagine why it doesn't work.

I can't apply any command line options. Sad.

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: Options VLCKit Ignored

Postby Jean-Baptiste Kempf » 10 Dec 2014 15:16

Because you are applying libVLC global options to a media.
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.

soullessff
Blank Cone
Blank Cone
Posts: 16
Joined: 18 Nov 2013 18:40

Re: Options VLCKit Ignored

Postby soullessff » 07 Jan 2015 03:41

Nop. I apply global options and it not works. For example, the last lines are ignored.

Code: Select all

NSMutableArray *defaultParams = [NSMutableArray array]; [defaultParams addObject:@"--play-and-pause"]; // We want every movie to pause instead of stopping at eof [defaultParams addObject:@"--no-color"]; // Don't use color in output (Xcode doesn't show it) [defaultParams addObject:@"--no-video-title-show"]; // Don't show the title on overlay when starting to play [defaultParams addObject:@"--verbose=0"]; // Let's not wreck the logs [defaultParams addObject:@"--no-sout-keep"]; [defaultParams addObject:@"--vout=macosx"]; // Select Mac OS X video output [defaultParams addObject:@"--text-renderer=quartztext"]; // our CoreText-based renderer [defaultParams addObject:@"--extraintf=macosx_dialog_provider"]; // Some extra dialog (login, progress) may come up from here [defaultParams addObject:@"--force-dolby-surround=1"]; [defaultParams addObject:@"--spdif"]; [defaultParams addObject:@"--freetype-rel-fontsize=12"]; [defaultParams addObject:@"--freetype-font=HelveticaNeue-Bold"]; [defaultParams addObject:@"--freetype-bold"]; [defaultParams addObject:@"--freetype-background-opacity=185"]; [defaultParams addObject:@"--freetype-outline-opacity=200"]; [defaultParams addObject:@"--freetype-outline-thickness=2"]; [defaultParams addObject:@"--freetype-shadow-distance=.03"]; [[NSUserDefaults standardUserDefaults]setObject:defaultParams forKey:@"VLCParams"];


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 9 guests