Page 1 of 1

How can I use ts demuxer?

Posted: 18 Jul 2014 09:20
by ilkerulusoy
In android, when I sent ":demux=ts" as media option, i am using ts demuxer. but it is not work in mobilvlckit.

Code: Select all

- (id)initWithURL:(NSURL *)anURL { if (self = [super init]) { VLCLibrary *library = [VLCLibrary sharedLibrary]; NSAssert(library.instance, @"no library instance when creating media"); p_md = libvlc_media_new_location(library.instance, [[anURL absoluteString] UTF8String]); if(p_md) { libvlc_media_add_option(p_md, [[NSString stringWithFormat:@":demux=ts"] UTF8String]); } delegate = nil; metaDictionary = [[NSMutableDictionary alloc] initWithCapacity:3]; // This value is set whenever the demuxer figures out what the length is. // TODO: Easy way to tell the length of the movie without having to instiate the demuxer. Maybe cached info? length = nil; [self initInternalMediaDescriptor]; } return self; }

Re: How can I use ts demuxer?

Posted: 20 Jul 2014 17:55
by fkuehne
You shouldn't hack VLCKit's VLCMedia for that. This is wrong and prone to bugs. Set the respective option directly on your VLCMedia object.

Re: How can I use ts demuxer?

Posted: 21 Jul 2014 15:29
by ilkerulusoy
Ok. I resolved.
I changed default options and it ran.