Page 1 of 1
x.265 VLC vs libvlc
Posted: 30 Dec 2016 15:52
by mangokm40
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.
Re: x.265 VLC vs libvlc
Posted: 30 Dec 2016 16:46
by Rémi Denis-Courmont
Are you configuring the video output in any way, or do you let LibVLC create its own independent video window?
Re: x.265 VLC vs libvlc
Posted: 30 Dec 2016 17:06
by mangokm40
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.
Re: x.265 VLC vs libvlc
Posted: 30 Dec 2016 20:51
by Rémi Denis-Courmont
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.
Re: x.265 VLC vs libvlc
Posted: 30 Dec 2016 21:29
by mangokm40
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.
Re: x.265 VLC vs libvlc
Posted: 30 Dec 2016 22:50
by mangokm40
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.
Re: x.265 VLC vs libvlc
Posted: 31 Dec 2016 10:27
by Rémi Denis-Courmont
Well then, are you sure you did not change the VLC preferences? LibVLC should play pretty much like VLC with default settings.
Re: x.265 VLC vs libvlc
Posted: 03 Jan 2017 15:07
by mangokm40
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.
Re: x.265 VLC vs libvlc
Posted: 04 Jan 2017 15:24
by mangokm40
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.
Re: x.265 VLC vs libvlc
Posted: 04 Jan 2017 15:43
by Rémi Denis-Courmont
Repeating myself but did you use default settings in both tests?
Re: x.265 VLC vs libvlc
Posted: 04 Jan 2017 16:37
by mangokm40
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.
Re: x.265 VLC vs libvlc
Posted: 05 Jan 2017 14:41
by Rémi Denis-Courmont
You are not answering the question; I can't help you.
Re: x.265 VLC vs libvlc
Posted: 06 Jan 2017 16:47
by mangokm40
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.