Page 1 of 1

Full HD video freezes on AT3IONT-I

Posted: 07 Sep 2011 12:35
by PeterH
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

Re: Full HD video freezes on AT3IONT-I

Posted: 08 Sep 2011 23:21
by Jean-Baptiste Kempf
Are you sure there is no chroma conversion?

Re: Full HD video freezes on AT3IONT-I

Posted: 09 Sep 2011 12:03
by PeterH
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

Re: Full HD video freezes on AT3IONT-I

Posted: 10 Sep 2011 08:08
by rvs75
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"))

Re: Full HD video freezes on AT3IONT-I

Posted: 13 Sep 2011 07:30
by PeterH
Thank you rvs75,

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

Thanks again,
Peter

Re: Full HD video freezes on AT3IONT-I

Posted: 14 Sep 2011 08:28
by PeterH
hmm.... Now all HD videos are ok, but when I tried to play non HD from RTP stream, video output is fragmented.