x.265 VLC vs libvlc

This forum is about all development around libVLC.
mangokm40
Cone that earned his stripes
Cone that earned his stripes
Posts: 130
Joined: 20 May 2010 20:00

x.265 VLC vs libvlc

Postby mangokm40 » 30 Dec 2016 15:52

I'm wondering if anyone has had this problem with x.265 video:

The file plays fine with VLC (2.2.4) with default preferences. However, I get stuttering and gray blocks with libvlc (2.2.4).
I'm not using any arguments when creating the instance.

Has anyone else experienced this?

Thanks.

Rémi Denis-Courmont
Developer
Developer
Posts: 15260
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: x.265 VLC vs libvlc

Postby Rémi Denis-Courmont » 30 Dec 2016 16:46

Are you configuring the video output in any way, or do you let LibVLC create its own independent video window?
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

mangokm40
Cone that earned his stripes
Cone that earned his stripes
Posts: 130
Joined: 20 May 2010 20:00

Re: x.265 VLC vs libvlc

Postby mangokm40 » 30 Dec 2016 17:06

Are you configuring the video output in any way, or do you let LibVLC create its own independent video window?
I use "libvlc_media_player_set_hwnd()" to direct the output to "my window".
I don't 'process' the output in any way.


Thanks for your time.

Rémi Denis-Courmont
Developer
Developer
Posts: 15260
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: x.265 VLC vs libvlc

Postby Rémi Denis-Courmont » 30 Dec 2016 20:51

Try to comment out the set_hwnd() call and see if it fixes performance problems then. Maybe your window handle is incompatible with some optimizations.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

mangokm40
Cone that earned his stripes
Cone that earned his stripes
Posts: 130
Joined: 20 May 2010 20:00

Re: x.265 VLC vs libvlc

Postby mangokm40 » 30 Dec 2016 21:29

Try to comment out the set_hwnd() call and see if it fixes performance problems then. Maybe your window handle is incompatible with some optimizations.

Thanks again. I will try this tonight and post back.

mangokm40
Cone that earned his stripes
Cone that earned his stripes
Posts: 130
Joined: 20 May 2010 20:00

Re: x.265 VLC vs libvlc

Postby mangokm40 » 30 Dec 2016 22:50

Try to comment out the set_hwnd() call and see if it fixes performance problems then. Maybe your window handle is incompatible with some optimizations.

I commented out the set_hwnd call. A new window is created but the playback chokes exactly as before.

Is there anything in the VLC default preferences that I might need to "set" in libvlc?

Originally, I thought it was my PC. However, the file plays without any problem with VLC. :)


Thank you.

Rémi Denis-Courmont
Developer
Developer
Posts: 15260
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: x.265 VLC vs libvlc

Postby Rémi Denis-Courmont » 31 Dec 2016 10:27

Well then, are you sure you did not change the VLC preferences? LibVLC should play pretty much like VLC with default settings.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

mangokm40
Cone that earned his stripes
Cone that earned his stripes
Posts: 130
Joined: 20 May 2010 20:00

Re: x.265 VLC vs libvlc

Postby mangokm40 » 03 Jan 2017 15:07

Well then, are you sure you did not change the VLC preferences? LibVLC should play pretty much like VLC with default settings.

Well, I'm pretty sure. :)

I will download VLC again tonight and try with a fresh version.

Thanks.

mangokm40
Cone that earned his stripes
Cone that earned his stripes
Posts: 130
Joined: 20 May 2010 20:00

Re: x.265 VLC vs libvlc

Postby mangokm40 » 04 Jan 2017 15:24

I downloaded VLC 2.2.4 (not the install version). I ran it as is and the x.265 video played fine. This time, I checked CPU usage.
It was between 45%-52% for the 10 seconds I let the video play.

When running the libvlc program, the video stutters and blocks right away and CPU usage is only 22%-28%.

Is there something that might be keeping libvlc from using more of the CPU ?

Thanks.

Rémi Denis-Courmont
Developer
Developer
Posts: 15260
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: x.265 VLC vs libvlc

Postby Rémi Denis-Courmont » 04 Jan 2017 15:43

Repeating myself but did you use default settings in both tests?
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

mangokm40
Cone that earned his stripes
Cone that earned his stripes
Posts: 130
Joined: 20 May 2010 20:00

Re: x.265 VLC vs libvlc

Postby mangokm40 » 04 Jan 2017 16:37

Repeating myself but did you use default settings in both tests?
Sorry about the lack of clarity. I downloaded the VLC 2.2.4 again and used it without changing (or even seeing) any settings.

I am not using any arguments in the call to libvlc_new() and I'm not using any calls to libvlc_media_add_option().


Thanks again.

Rémi Denis-Courmont
Developer
Developer
Posts: 15260
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: x.265 VLC vs libvlc

Postby Rémi Denis-Courmont » 05 Jan 2017 14:41

You are not answering the question; I can't help you.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

mangokm40
Cone that earned his stripes
Cone that earned his stripes
Posts: 130
Joined: 20 May 2010 20:00

Re: x.265 VLC vs libvlc

Postby mangokm40 » 06 Jan 2017 16:47

You are not answering the question; I can't help you.

Hmmm...The answer is yes. I am using the defaults for both.
I was trying to be more specific, in case I missed something. That's why I mentioned HOW I believe I'm using defaults.

Thanks for time.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 15 guests