Playing multiple video using libvlc and Qt -


i have created sample application in qt have display camera stream in 2x2 grid. using libvlc play stream , able display video well. facing few issues

  1. vlc creating separate window render video. not displayed on area provided qt application.

here code

void playerview::createplayer()     {         const char *const vlc_args[] = {                   "--avcodec-hw=any",                   "--plugin-path=c:\qtsdk\vlc-2.2.1\plugins" };          vlcinstance = libvlc_new(sizeof(vlc_args) / sizeof(vlc_args[0]), vlc_args);          const char* url = "rtsp://<camera ip>/cam0_0";           /* create new libvlc media descriptor */         media = libvlc_media_new_location(vlcinstance, url);          // create media player playing environement         vlcmp = libvlc_media_player_new(vlcinstance);          libvlc_media_player_set_hwnd(vlcmp, (void*)videodisplay->winid());         libvlc_media_player_set_media(vlcmp, media);         libvlc_media_player_play (vlcmp);     } 
  1. as need display 3 videos in 2x2 grid, creating 3 vlc player instances play video. 2 windows getting created , video played. on creating 3rd one, crashes below error.

    directdraw vout display error: win32voutcreatewindow registerclass failed (err=1410) direct2d vout display error: win32voutcreatewindow registerclass failed (err=1410) warning: option --plugin-path no longer exists. warning: option --plugin-path no longer exists. warning: option --plugin-path no longer exists. warning: option --plugin-path no longer exists. warning: option --plugin-path no longer exists. warning: option --plugin-path no longer exists. [008ceb04] directdraw vout display error: win32voutcreatewindow registerclass failed (err=1410) [008ceb04] direct2d vout display error: win32voutcreatewindow registerclass failed (err=1410) glwin32 vout display error: win32voutcreatewindow registerclass failed (err=1410) wingdi vout display error: win32voutcreatewindow registerclass failed (err=1410) [008ceb04] glwin32 vout display error: win32voutcreatewindow registerclass failed (err=1410) [008ceb04] wingdi vout display error: win32voutcreatewindow registerclass failed (err=1410) core vout display error: failed change zoom caca vout display error: unsupported query in vout display caca core vout display error: failed set on top core vout display error: failed change source ar [008ceb04] core vout display error: failed change zoom [008ceb04] caca vout display error: unsupported query in vout display caca [008ceb04] core vout display error: failed set on top [008ceb04] core vout display error: failed change source ar core vout display error: failed set on top [h264 decoder @ 0387aee0] invalid mixed idr / non idr frames cannot decoded in slice multithreading mode [h264 @ 038b8400] decode_slice_header error [h264 @ 038b8400] decode_slice_header error [h264 @ 038b8400] decode_slice_header error [h264 @ 038b8400] decode_slice_header error [h264 @ 038b8400] decode_slice_header error [h264 @ 038b8400] decode_slice_header error [h264 @ 038b8400] decode_slice_header error [h264 @ 038b8400] decode_slice_header error [h264 @ 038b8400] decode_slice_header error [h264 @ 038b8400] decode_slice_header error [h264 @ 038b8400] decode_slice_header error [h264 @ 038b8400] decode_slice_header error [h264 @ 038b8400] decode_slice_header error [h264 decoder @ 038fd000] invalid mixed idr / non idr frames cannot decoded in slice multithreading mode [038c6544] core vout display error: failed set on top core input error: es_out_reset_pcr called core input error: es_out_reset_pcr called [02c4264c] core input error: es_out_reset_pcr called [02c41a1c] core input error: es_out_reset_pcr called core input error: es_out_reset_pcr called [h264 @ 038c3d00] decode_slice_header error [h264 @ 038c3d00] decode_slice_header error [h264 decoder @ 0cb12c40] invalid mixed idr / non idr frames cannot decoded in slice multithreading mode [02c427b4] core input error: es_out_reset_pcr called

    error related gpu , dont have idea how fix issue using libvlc. search doesnt find right solution.

please show me light proceed m totally stuck !!


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -