Community
cancel
Showing results for 
Search instead for 
Did you mean: 
iambaeba1
Beginner
65 Views

simple_player can't add video render

Dear support

I got the IPP 6.0 evalution. and complie the simple_player project.
I execute the simple_player.exe followed command.

c:>simple_player.exe -v dx sd.mpg

Audio Render : DSOUND
Video Render : NULL
-RenderFormat: YV12

Stream Type : MPEG2T
Video Info :
-Video Type : MPEG2
-Resolution : 720x480
-Frame Rate : 29.97
Audio Info :
-Audio Type : AC3
-S.Frequency : 48000
-Num.Channel : 2
-BitPerSample: 16

DecRate:740.44 fps(Dec 1.08ms/f + Conv 0.28ms/f = 1.35ms/f) RndrRate 30.12fps Audio Dec 364.55chnls
DecRate:1144.41 fps(Dec 0.71ms/f + Conv 0.16ms/f = 0.87ms/f) RndrRate 29.97fps Audio Dec 413.30chnls
DecRate:1203.44 fps(Dec 0.67ms/f + Conv 0.16ms/f = 0.83ms/f) RndrRate 30.11fps Audio Dec 425.18chnls

Audio render is good..
But video render is not added to simple_player.
-v fw, fwf option is good. others is not ignored..( -v gdi, -v dx -v blt)

Thank you

Bae

ps : If simple_player is executed, can I see the decoded frames of movie in windows ?

ps : Using IPP 5.3's, I can see the decoded video frame in simple_player.
But only -v gdi option can produce correct display.. others -v option can't produce.

ps : my environment is followed
. I first installed IPP 5.3
. I installed Microstudio 2008.
. I installed IPP 6.0.2.074 evaluation
. I complied simple_player.exe
And OS is WinXP. and CPU is Core2 Duo T9400 2.53GHz, 4GB RAM.

ps : video information is followed
General
ID : 1
Complete name : D:\sd.mpg
Format : MPEG-TS
File size : 168 MiB
Duration : 3mn 41s
Overall bit rate : 6 387 Kbps

Video
ID : 3008 (0xBC0)
Menu ID : 3470 (0xD8E)
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, Matrix : Default
Duration : 3mn 41s
Bit rate mode : Constant
Bit rate : 5 941 Kbps
Nominal bit rate : 6 000 Kbps
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 4/3
Frame rate : 29.970 fps
Standard : NTSC
Colorimetry : 4:2:0
Scan type : Interlaced
Scan order : Top Field First
Bits/(Pixel*Frame) : 0.574

Audio
ID : 3009 (0xBC1)
Menu ID : 3470 (0xD8E)
Format : AC-3
Format/Info : Audio Coding 3
Duration : 3mn 41s
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 2 channels
Channel positions : L R
Sampling rate : 48.0 KHz
Video delay : -32ms




0 Kudos
5 Replies
Vladimir_Dudnik
Employee
65 Views

Hello,

did you try to run simple_player with default parameters (not specifying a particular video render)?

Vladimir
iambaeba1
Beginner
65 Views

Hello,

did you try to run simple_player with default parameters (not specifying a particular video render)?

Vladimir

Dear Vladmir

I checked the source code for IPP 6.0 samples (simpler_player project)
I found that simple_player can't support -v blt, gdi, blt. -_-
You may check the source code in ipp-samplesaudio-video-codecscoreumcincludeumc_defs.h
Video rederers are defined only two mode.

// video renderers
#define UMC_ENABLE_DX_VIDEO_RENDER
#define UMC_ENABLE_FW_VIDEO_RENDER

In IPP 5.3 version, video renderers has 4 modes
// video renderers
#define UMC_ENABLE_DX_VIDEO_RENDER
#define UMC_ENABLE_BLT_VIDEO_RENDER
#define UMC_ENABLE_GDI_VIDEO_RENDER
#define UMC_ENABLE_FW_VIDEO_RENDER

And IPP 6.0's simple_player's source code has a problem calling DirectX modules.
In ipp-samplesaudio-video-codecsiovideo_renderssrcdx_drv.cpp, line 263 code occurs errors

/* Trying to create max_b, max_b-1, ..., min_b overlays. */
for (bufs_num = max_b; bufs_num >= min_b; --bufs_num)
{
ddsdOverlay.dwBackBufferCount = bufs_num;
hRes = drv->dd_obj->CreateSurface(&ddsdOverlay, &drv->dd_srf_front, NULL); // line 263
if (SUCCEEDED(hRes))
break;
}

the error code is 0x88760091.
I have only called "simpler_player -v dx d:sd.mpg".

I don't know the directX calling fail.


Thanks

Bae






Chao_Y_Intel
Employee
65 Views


Bae,

The DX render is supported in the current release. gdi and bltrenders weresupported inold releases.Our new releasehas removed them. Can DX render be used there?

Thanks,
Chao
iambaeba1
Beginner
65 Views

Quoting - Chao Yu (Intel)

Bae,

The DX render is supported in the current release. gdi and bltrenders weresupported inold releases.Our new releasehas removed them. Can DX render be used there?

Thanks,
Chao

Dear Chao

I have tested all of combination of simple_player's parameters.
for directx displaying, the following options are success

-v dx -f rgb565
-v dx -f yuy2

other options can't display the screen.

I have debugged the sample source code becacuse simple_player can't display the screen.
video_reders's project's dx_drv.cpp/dx_drv.h include the followed code.

const DDPIXELFORMAT umc_dx_overlay_formats[] =
{
{sizeof(DDPIXELFORMAT), DDPF_FOURCC | DDPF_YUV, MAKEFOURCC('Y','V','1','2'), 12, 0, 0, 0, 0}, /* YV12 */
{sizeof(DDPIXELFORMAT), DDPF_FOURCC | DDPF_YUV, MAKEFOURCC('Y','U','Y','2'), 16, 0, 0, 0, 0}, /* YUY2 */
{sizeof(DDPIXELFORMAT), DDPF_FOURCC | DDPF_YUV, MAKEFOURCC('U','Y','V','Y'), 16, 0, 0, 0, 0}, /* UYVY */
{sizeof(DDPIXELFORMAT), DDPF_FOURCC | DDPF_YUV, MAKEFOURCC('N','V','1','2'), 12, 0, 0, 0, 0}, /* NV12 */
{sizeof(DDPIXELFORMAT), DDPF_RGB, 0, 16, 0xf800, 0x07e0, 0x001f, 0} /* RGB565 */
};

typedef enum DDVideoDrvColorFormat
{
DXVideoDrv_YV12 = 0,
DXVideoDrv_YUY2 = 1,
DXVideoDrv_UYVY = 2,
DXVideoDrv_NV12 = 3,
DXVideoDrv_RGB565 = 4
} DDVideoDrvColorFormat;

simple_player's option have yv12, yuv420, yuv422, yuy2, rgb565, rgb24.
But the original source code support yu12, yu2, uyvy, nv12, rgb565.


And I don't know the reason that other pixel fomat option can't display the screen.
(I'm begginer for directX mechanism...^^;;;)


Thanks

Bae


yosepho
Beginner
65 Views

I am also having trouble rendering simple player to the screen.

C:Program FilesIntelIPP6.0.0.062ia32ipp-samplesaudio-video-codecs_binWi
n32release>simple_player.exe -v fw -f yuy2 M:VideoImagingTesterH.264Test_Seq
uence480_200_25_HQ.mp4
Usage: ????????e??w???2?????????????????????????????4????????????????????????
?????????????????????????????????????????????????????????????
[-s(ilent)]
[-b(lind)]
[-n(atural temp)]
[-u(nrendered audio)
[-d(einterlacing)
[-i
[-t
[-p (must be in quotes if it contains gaps)]
[-v
-in the case of -vfwf>]
[-a
-in the case of -afwf]
[-f]
(-l |stream>(must be in quotes if it contains gaps)

What am I doing Wrong???

Joe