How can I use ts demuxer?

iOS, iPad, iPhone, tvOS specific usage questions
ilkerulusoy
New Cone
New Cone
Posts: 7
Joined: 18 Jul 2014 09:15

How can I use ts demuxer?

Postby ilkerulusoy » 18 Jul 2014 09:20

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

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: How can I use ts demuxer?

Postby fkuehne » 20 Jul 2014 17:55

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.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

ilkerulusoy
New Cone
New Cone
Posts: 7
Joined: 18 Jul 2014 09:15

Re: How can I use ts demuxer?

Postby ilkerulusoy » 21 Jul 2014 15:29

Ok. I resolved.
I changed default options and it ran.


Return to “VLC for iOS, iPadOS and Apple TV”

Who is online

Users browsing this forum: No registered users and 13 guests