Page 1 of 1

Options VLCKit Ignored

Posted: 05 Oct 2014 23:33
by neo80
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 :-(

Re: Options VLCKit Ignored

Posted: 07 Oct 2014 22:28
by soullessff
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.

Re: Options VLCKit Ignored

Posted: 10 Dec 2014 15:16
by Jean-Baptiste Kempf
Because you are applying libVLC global options to a media.

Re: Options VLCKit Ignored

Posted: 07 Jan 2015 03:41
by soullessff
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"];