Page 1 of 1

Poor video decoding performance of libTVVLCKit.a

Posted: 26 Sep 2015 15:58
by jasin755
Good day,

I compiled MovileVLCKit as static libTVVLCKit.a. Video playback works good if I use UIView with small dimensions. But if you set the dimensions to Full HD. Playing lags (CPU usage cca 110%).

Re: Poor video decoding performance of libTVVLCKit.a

Posted: 28 Sep 2015 02:01
by zasuk
i have the same problem...and after a while streams don't play and i get VLCMediaPlayerStateStopped every time.
i also want to have two videos playing at same time (one is a preview of the next one) but that is not possible right now.

Re: Poor video decoding performance of libTVVLCKit.a

Posted: 28 Sep 2015 08:55
by fkuehne
The tvOS SDK does not include the VideoToolbox framework at this point so we can't do hardware accelerated H264 decoding. We filed a radar on that, but no response so far. If you want efficient video decoding on tvOS, do the same.

For network streams, there is a regression in our code which we are aware off and will resolve (a busy loop in the network handling code), so performance will get better.

Re: Poor video decoding performance of libTVVLCKit.a

Posted: 28 Sep 2015 10:55
by jasin755
@Felix Paul Kuehne I tryed decoding same video and audio with ffmpeg and no problem. I is very fast.

Re: Poor video decoding performance of libTVVLCKit.a

Posted: 28 Sep 2015 11:00
by fkuehne
Sample code from you needed then.

Further, are you actually testing on device?

Re: Poor video decoding performance of libTVVLCKit.a

Posted: 28 Sep 2015 14:39
by jasin755
No I tested on simulator. Device will be available month later :/

Sample code of ffmpeg or tvkit?

Re: Poor video decoding performance of libTVVLCKit.a

Posted: 28 Sep 2015 14:43
by fkuehne
A sample showing the use of our code. I can't help with ffmpeg.

Further, since you don't test on device, it doesn't mean anything regarding the CPU load.

Finally, are you playing a network stream? if yes, what kind of?

Without such basic information, there is absolutely no way we can help.

Re: Poor video decoding performance of libTVVLCKit.a

Posted: 28 Sep 2015 18:30
by zasuk
btw i have the new ATV so if you need i can test on the device...

Re: Poor video decoding performance of libTVVLCKit.a

Posted: 28 Sep 2015 19:04
by matrog
I'm testing a network stream (over LAN) from a DVB source, video is working almost fine...audio is terrible...scattered audio.

I'm testing on a real ATV.

Re: Poor video decoding performance of libTVVLCKit.a

Posted: 28 Sep 2015 20:08
by fkuehne
What's the used network streaming protocol?

Re: Poor video decoding performance of libTVVLCKit.a

Posted: 28 Sep 2015 20:57
by matrog
http

I'm using a URL like this

Code: Select all

http://10.20.101.5:8001/1:0:1:265:200:1D:EEEE0000:0:0:0:
PS: opened a bug report about VideoToolkit..let's wait for Apple

Re: Poor video decoding performance of libTVVLCKit.a

Posted: 29 Sep 2015 12:23
by fkuehne
Thanks for filing a radar on that.

Regarding the actual topic of this thread: this is a regression in our networking code which results in a busy loop. We hope to be able to fix it shortly but it affects all platforms and is absolutely not related to tvOS.

Re: Poor video decoding performance of libTVVLCKit.a

Posted: 29 Sep 2015 12:35
by matrog
ok, please let me know and I will test it

Re: Poor video decoding performance of libTVVLCKit.a

Posted: 29 Sep 2015 21:27
by jasin755
@Felix Paul Kuehne this is my sample project on OneDrive: http://1drv.ms/1LZRVQL

Re: Poor video decoding performance of libTVVLCKit.a

Posted: 01 Oct 2015 15:37
by fkuehne
Thanks for sharing. I'll check it out as time allows.

Re: Poor video decoding performance of libTVVLCKit.a

Posted: 01 Oct 2015 17:04
by jasin755
Ok. Thanks!