Page 1 of 1

VLCKit: get media codec/length info?

Posted: 16 Apr 2014 01:26
by jtor1134
Is there a way to retrieve codec and video length information for video files with VLCKit? I'm not seeing anything in any of the headers that seems to have such a function. It also seems the iOS VLC app itself doesn't have this function so maybe it's not possible?

Re: VLCKit: get media codec/length info?

Posted: 16 Apr 2014 12:40
by fkuehne
While we don't show codec information in VLC for iOS, a media's duration is displayed of course. We don't show codec information, because we assume that it is irrelevant to the everyday user on a mobile devices.

(Mobile)VLCKit allows you to fetch such information of course. It's part of VLCMedia's tracksInformation array, which includes details about all the tracks of the respective media.

Re: VLCKit: get media codec/length info?

Posted: 27 Apr 2014 00:29
by jtor1134
I think that's what I was looking for. I do have a question however. The value for key "codec" shows a value like "875967080". What does that correspond to?

Re: VLCKit: get media codec/length info?

Posted: 27 Apr 2014 11:20
by fkuehne
This is an integer representation of a FourCC: http://en.wikipedia.org/wiki/FOURCC

Convert to text to discover the meaning :)

Re: VLCKit: get media codec/length info?

Posted: 28 Apr 2014 21:19
by jtor1134
Ok I got it. How about the decoded format? I'm trying to find the same info that the media information panel in the desktop VLC app gives.

Image

Thank you.

Re: VLCKit: get media codec/length info?

Posted: 30 Apr 2014 21:42
by fkuehne
hmm, we don't have that info exposed at this point. Only decoding level and profile if applicable to the codec. Both are provided as integer values only, so you need more knowledge included within the app to convert the numbers to human understandable information.

Re: VLCKit: get media codec/length info?

Posted: 29 May 2014 11:07
by videomaker
Hello,

how you get the media duration length before it will play for a playlist...?

Re: VLCKit: get media codec/length info?

Posted: 04 Jun 2014 01:24
by jtor1134
Well that's pretty easy.

Code: Select all

VLCMedia *media = [VLCMedia mediaWithURL:fileURL];
and then access property

Code: Select all

media.length

Re: VLCKit: get media codec/length info?

Posted: 04 Jun 2014 16:54
by thamgia4f
VLC run ok for IPhone 3gs file MP4.....thank you!