Poor video decoding performance of libTVVLCKit.a

iOS, iPad, iPhone, tvOS specific usage questions
jasin755
New Cone
New Cone
Posts: 9
Joined: 26 Sep 2015 15:56

Poor video decoding performance of libTVVLCKit.a

Postby jasin755 » 26 Sep 2015 15:58

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%).

zasuk
New Cone
New Cone
Posts: 6
Joined: 28 Sep 2015 01:44

Re: Poor video decoding performance of libTVVLCKit.a

Postby zasuk » 28 Sep 2015 02:01

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.

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

Re: Poor video decoding performance of libTVVLCKit.a

Postby fkuehne » 28 Sep 2015 08:55

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

jasin755
New Cone
New Cone
Posts: 9
Joined: 26 Sep 2015 15:56

Re: Poor video decoding performance of libTVVLCKit.a

Postby jasin755 » 28 Sep 2015 10:55

@Felix Paul Kuehne I tryed decoding same video and audio with ffmpeg and no problem. I is very fast.

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

Re: Poor video decoding performance of libTVVLCKit.a

Postby fkuehne » 28 Sep 2015 11:00

Sample code from you needed then.

Further, are you actually testing on device?
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

jasin755
New Cone
New Cone
Posts: 9
Joined: 26 Sep 2015 15:56

Re: Poor video decoding performance of libTVVLCKit.a

Postby jasin755 » 28 Sep 2015 14:39

No I tested on simulator. Device will be available month later :/

Sample code of ffmpeg or tvkit?

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

Re: Poor video decoding performance of libTVVLCKit.a

Postby fkuehne » 28 Sep 2015 14:43

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

zasuk
New Cone
New Cone
Posts: 6
Joined: 28 Sep 2015 01:44

Re: Poor video decoding performance of libTVVLCKit.a

Postby zasuk » 28 Sep 2015 18:30

btw i have the new ATV so if you need i can test on the device...

matrog
Blank Cone
Blank Cone
Posts: 42
Joined: 27 Sep 2015 08:55

Re: Poor video decoding performance of libTVVLCKit.a

Postby matrog » 28 Sep 2015 19:04

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.

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

Re: Poor video decoding performance of libTVVLCKit.a

Postby fkuehne » 28 Sep 2015 20:08

What's the used network streaming protocol?
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

matrog
Blank Cone
Blank Cone
Posts: 42
Joined: 27 Sep 2015 08:55

Re: Poor video decoding performance of libTVVLCKit.a

Postby matrog » 28 Sep 2015 20:57

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

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

Re: Poor video decoding performance of libTVVLCKit.a

Postby fkuehne » 29 Sep 2015 12:23

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

matrog
Blank Cone
Blank Cone
Posts: 42
Joined: 27 Sep 2015 08:55

Re: Poor video decoding performance of libTVVLCKit.a

Postby matrog » 29 Sep 2015 12:35

ok, please let me know and I will test it

jasin755
New Cone
New Cone
Posts: 9
Joined: 26 Sep 2015 15:56

Re: Poor video decoding performance of libTVVLCKit.a

Postby jasin755 » 29 Sep 2015 21:27

@Felix Paul Kuehne this is my sample project on OneDrive: http://1drv.ms/1LZRVQL

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

Re: Poor video decoding performance of libTVVLCKit.a

Postby fkuehne » 01 Oct 2015 15:37

Thanks for sharing. I'll check it out as time allows.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

jasin755
New Cone
New Cone
Posts: 9
Joined: 26 Sep 2015 15:56

Re: Poor video decoding performance of libTVVLCKit.a

Postby jasin755 » 01 Oct 2015 17:04

Ok. Thanks!


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

Who is online

Users browsing this forum: No registered users and 16 guests