Full HD video freezes on AT3IONT-I

This forum is about all development around libVLC.
PeterH
New Cone
New Cone
Posts: 4
Joined: 06 Sep 2011 13:22

Full HD video freezes on AT3IONT-I

Postby PeterH » 07 Sep 2011 12:35

Hi friends,

I have mainboard ASUS AT3IONT-I. While I play full HD movie (from hard disk or from RTP stream) via VLC player, movie plays without problem. CPU consumes up to 10%.
But when I try to play the same stream in my WPF application (with --ffmpeg-hw ), audio plays without problem, but video freezes. Log contains a lot of following messages:

main warning: picture is too late to be displayed (missing 213 ms)
main debug: picture might be displayed late (missing 7 ms)

In this case, CPU consumes cca 40%

My WPF player control uses WindowsFormsHost control with WinForm Panel. I tried also WinForm application and VLC embeded in HTML with the same result.

Do you have som hints, how to solve this issue?

Thanks
Peter

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Full HD video freezes on AT3IONT-I

Postby Jean-Baptiste Kempf » 08 Sep 2011 23:21

Are you sure there is no chroma conversion?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

PeterH
New Cone
New Cone
Posts: 4
Joined: 06 Sep 2011 13:22

Re: Full HD video freezes on AT3IONT-I

Postby PeterH » 09 Sep 2011 12:03

I instantiate libvlc instance without arguments, so I expect defalut setting will be used.
This is short excerpt from my code:

// create vlc instance
IntPtr _vlcInstance = LibVlcMethods.libvlc_new(0, null);
// create media
IntPtr media = LibVlcMethods.libvlc_media_new_path(_vlcInstance, Encoding.UTF8.GetBytes(path));
// create player from media
IntPtr _vlcPlayer = LibVlcMethods.libvlc_media_player_new_from_media(media);
// set window handle
LibVlcMethods.libvlc_media_player_set_hwnd(this._vlcPlayer, this._hwnd);
// release media
LibVlcMethods.libvlc_media_release(media);
// play media
LibVlcMethods.libvlc_media_player_play(this._vlcPlayer);
...

Thanks,
Peter

rvs75
Blank Cone
Blank Cone
Posts: 38
Joined: 01 Jul 2010 11:48

Re: Full HD video freezes on AT3IONT-I

Postby rvs75 » 10 Sep 2011 08:08

I don't know the wrapper you use, but, it should be a function like "LibVlcMethods.libvlc_media_add_option".
Probable use in your code : libvlc_media_add_option(media ,"-ffmpeg-hw") or libvlc_media_add_option(media ,Encoding.UTF8.GetBytes("-ffmpeg-hw"))

PeterH
New Cone
New Cone
Posts: 4
Joined: 06 Sep 2011 13:22

Re: Full HD video freezes on AT3IONT-I

Postby PeterH » 13 Sep 2011 07:30

Thank you rvs75,

your hint, together with new build, solved my problem.

Thanks again,
Peter

PeterH
New Cone
New Cone
Posts: 4
Joined: 06 Sep 2011 13:22

Re: Full HD video freezes on AT3IONT-I

Postby PeterH » 14 Sep 2011 08:28

hmm.... Now all HD videos are ok, but when I tried to play non HD from RTP stream, video output is fragmented.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 14 guests