VLCMedia Options doesn't work

macOS specific usage questions
soullessff
Blank Cone
Blank Cone
Posts: 16
Joined: 18 Nov 2013 18:40

VLCMedia Options doesn't work

Postby soullessff » 05 Jun 2014 23:51

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];

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

Re: VLCMedia Options doesn't work

Postby soullessff » 13 Aug 2014 11:32

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


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 7 guests