Page 1 of 1

VLCMedia Options doesn't work

Posted: 05 Jun 2014 23:51
by soullessff
Hi,

I'm trying to add option to VLCMedia object and I watch the video but the options doesn't work. I've tried several parameters from Command line help.

I've tried several vlckit nightly builds but nothing.

Code: Select all

VLCVideoView *videoView = [[VLCVideoView alloc] initWithFrame:myFrame]; [[self contentView]addSubview:videoView]; self.player = [[VLCMediaPlayer alloc] initWithVideoView:videoView]; VLCMedia *media = [VLCMedia mediaWithPath:filePath]; [media addOptions:@{@"--blur-factor" : @(10)}]; [media addOptions:@{@"-blur-factor" : @(10)}]; [media addOptions:@{@"blur-factor" : @(10)}]; [media addOptions:@{@":blur-factor" : @(10)}]; [media addOptions:@{@"--freetype-bold" : [NSNull null]}]; [media addOptions:@{@"-freetype-bold" : [NSNull null]}]; [media addOptions:@{@"freetype-bold" : [NSNull null]}]; [media addOptions:@{@":freetype-bold" : [NSNull null]}]; [self.player setMedia:media];

Re: VLCMedia Options doesn't work

Posted: 13 Aug 2014 11:32
by soullessff
I was testing several commands. The audio desync option works,

Code: Select all

[_media addOptions:[NSDictionary dictionaryWithObject:[NSNull null] forKey:@"audio-desync=-2000"]];
but the others (include the options I need : subtitle font or force 5.1 don't work)

Code: Select all

[_media addOptions:[NSDictionary dictionaryWithObject:[NSNull null] forKey:@"spdif"]]; [_media addOptions:[NSDictionary dictionaryWithObject:[NSNull null] forKey:@"--spdif"]]; [_media addOptions:[NSDictionary dictionaryWithObject:[NSNull null] forKey:@"--force-dolby-surround=1]]; [_media addOptions:[NSDictionary dictionaryWithObject:[NSNull null] forKey:@"--audiofile-format=spdif]];
Help please :-|