终于用了下硬解码的测试程序

该多媒体测试应用展示了Real6410平台上多种视频编解码器的播放效果,包括H.264、MPEG4、H.263及VC-1等,并支持摄像头预览与编码、多窗口播放等功能。

[root@Real6410 apps]# cd /usr/local

[root@Real6410 local]# ls

[1;34mQtEmbedded-4.5.2[0m          [1;34metc[0m                       [1;34mmultimedia_test_real6410[0m

[1;34mbin[0m                       [1;34mlib[0m

[root@Real6410 local]# cd multi*

[root@Real6410 multimedia_test_real6410]# ls

[1;32mCubeDemo1_1[0m      [1;32mCubeDemo2_0[0m      [1;34mTestVectors[0m      [1;32mmultimedia_test[0m

[root@Real6410 multimedia_test_real6410]# ./multimedia_test

======= Real6410 Media Demo Application ========

=                                                =

=  1.   H.264 display                            =

=  2.   MPEG4 display                            =

=  3.   H.263 display                            =

=  4.   VC-1  display                            =

=  5.   4-windows display                        =

=  6.   Camera preview & MFC encoding            =

=  7.   MFC decoding & Camera preview            =

=  8.   Camera input and JPEG encoding           =

=  9.   JPEG decoding and display                =

=  10.  H.264 decoding thru TVOUT                =

=  11.  MFC decoding & Camera preview thru TV    =

=  12.  Exit                                     =

=                                                =

==================================================

Select number --> 1

======= H.264 File Decodec Test ========

########<STREAMINFO> width=320   height=240.

 

[1. H.264 display]

Using IP          : MFC, Post processor, LCD

Input filename    : wanted.264

Input vector size : VGA(640x480)

Display size      : WVGA(800x480)

Bitrate           : 971 Kbps

FPS               : 30

s3c-nand: 1 bit(s) error detected, corrected successfully

s3c-nand: 1 bit(s) error detected, corrected successfully

======= Real6410 Media Demo Application ========

=                                                =

=  1.   H.264 display                            =

=  2.   MPEG4 display                            =

=  3.   H.263 display                            =

=  4.   VC-1  display                            =

=  5.   4-windows display                        =

=  6.   Camera preview & MFC encoding            =

=  7.   MFC decoding & Camera preview            =

=  8.   Camera input and JPEG encoding           =

=  9.   JPEG decoding and display                =

=  10.  H.264 decoding thru TVOUT                =

=  11.  MFC decoding & Camera preview thru TV    =

=  12.  Exit                                     =

=                                                =

==================================================

Select number --> 2

 

[2. MPEG4 display]

Using IP          : MFC, Post processor, LCD

Input filename    : shrek.m4v

Input vector size : QVGA(320x240)

Display size      : WVGA(800x480)

Bitrate           : 482 Kbps

FPS               : 24

======= Real6410 Media Demo Application ========

=                                                =

=  1.   H.264 display                            =

=  2.   MPEG4 display                            =

=  3.   H.263 display                            =

=  4.   VC-1  display                            =

=  5.   4-windows display                        =

=  6.   Camera preview & MFC encoding            =

=  7.   MFC decoding & Camera preview            =

=  8.   Camera input and JPEG encoding           =

=  9.   JPEG decoding and display                =

=  10.  H.264 decoding thru TVOUT                =

=  11.  MFC decoding & Camera preview thru TV    =

=  12.  Exit                                     =

=                                                =

==================================================

Select number --> 3

 

[3. H.263 display]

Using IP          : MFC, Post processor, LCD

Input filename    : iron.263

Input vector size : QVGA(320x240)

Display size      : WVGA(800x480)

Bitrate           : 460 Kbps

FPS               : 30

s3c-nand: 1 bit(s) error detected, corrected successfully

 

Select number --> 4

 

[4. VC-1 display]

Using IP          : MFC, Post processor, LCD

Input filename    : test2_0.rcv

Input vector size : QVGA(320x240)

Display size      : WVGA(800x480)

Bitrate           : 460 Kbps

FPS               : 30

 

 

Select number --> 5

====== 4 Windows muti-Format decode Test ======

 

[4-windows display]

Using IP : MFC, Post processor, LCD

**********************************************************************

*                                 *                                  *

* Frame buffer      : 0           * Frame buffer      : 1            *

* Codec             : H.264       * Codec             : MPEG4        *

* Input filename    : veggie.264  * Input filename    : shrek.m4v    *

* Input vector size : QVGA        * Input vector size : QVGA         *

* Display size      : 400x240     * Display size      : 400x240      *

* Bitrate           : 460 Kbps    * Bitrate           : 482 Kbps     *

* FPS               : 30          * FPS               : 24           *

*                                 *                                  *

**********************************************************************

*                                 *                                  *

* Frame buffer      : 2           * Frame buffer      : 3            *

* Codec             : H.263       * Codec             : VC-1         *

* Input filename    : iron.263    * Input filename    : test2_0.rcv  *

* Input vector size : QVGA        * Input vector size : QVGA         *

* Display size      : 400x240     * Display size      : 400x240      *

* Bitrate           : 460 Kbps    * Bitrate           : 460 Kbps     *

* FPS               : 30          * FPS               : 30           *

*                                 *                                  *

**********************************************************************

 

Select number --> 6

==== Camera Preview & Encode to H264 Test ====

V4L2 : Camera Input(V4L2_INPUT_TYPE_CAMERA )

s3c-fimc: external camera initialized

 

[8. Camera preview & MFC encoding]

Using IP          : MFC, Post processor, LCD, Camera

Display size      : VGA(640x480)

 

e : Encoding

x : Exit

Select ==> Segmentation fault

 

 

[root@Real6410 multimedia_test_real6410]# 7

-/bin/sh: 7: not found

[root@Real6410 multimedia_test_real6410]# ./multimedia_test

======= Real6410 Media Demo Application ========

=                                                =

=  1.   H.264 display                            =

=  2.   MPEG4 display                            =

=  3.   H.263 display                            =

=  4.   VC-1  display                            =

=  5.   4-windows display                        =

=  6.   Camera preview & MFC encoding            =

=  7.   MFC decoding & Camera preview            =

=  8.   Camera input and JPEG encoding           =

=  9.   JPEG decoding and display                =

=  10.  H.264 decoding thru TVOUT                =

=  11.  MFC decoding & Camera preview thru TV    =

=  12.  Exit                                     =

=                                                =

==================================================

Select number --> 8

====== Camera Preview & JPEG Encode ======

 

VIDIOC_ENUMINPUT = 0

[11. Camera input & JPEG encoding]

Using IP            : Post processor, LCD, Camera, JPEG

Camera preview size : VGA(640x480)

Capture size        : VGA(640x480)

 

c : Capture

x : Exit

Select ==> Segmentation fault

 

==================================================

Select number --> 9

======= JPEG decodec Test ========

======= Real6410 Media Demo Application ========

=                                                =

=  1.   H.264 display                            =

=  2.   MPEG4 display                            =

=  3.   H.263 display                            =

=  4.   VC-1  display                            =

=  5.   4-windows display                        =

=  6.   Camera preview & MFC encoding            =

=  7.   MFC decoding & Camera preview            =

=  8.   Camera input and JPEG encoding           =

=  9.   JPEG decoding and display                =

=  10.  H.264 decoding thru TVOUT                =

=  11.  MFC decoding & Camera preview thru TV    =

=  12.  Exit                                     =

=                                                =

==================================================

Select number --> 10

<STREAMINFO> width=320   height=240. s3c_tvscaler_init 

TV-OUT: VIDIOC_ENUMINPUT : index = 1

TV-OUT: VIDIOC_S_INPUT 

TV-OUT: VIDIOC_ENUMOUTPUT : index = 0

TV-OUT: VIDIOC_S_OUTPUT 

C: VIDIOC_S_FMT 

TV-OUT: MFC path operation set

 

Device file open

V4L2 APPL : Name of the interface is S3C TV-OUT driveTVENCODER

V4L2 APPL : [1]: IN channel name Memory input (MSDMA)

V4L2 APPL : DMA INPUT 

V4L2 APPL : [0]: OUT channel name TV-OUT

V4L2 APPL : TV OUT 

==================================================

Select number --> 9

======= JPEG decodec Test ========

======= Real6410 Media Demo Application ========

=                                                =

=  1.   H.264 display                            =

=  2.   MPEG4 display                            =

=  3.   H.263 display                            =

=  4.   VC-1  display                            =

=  5.   4-windows display                        =

=  6.   Camera preview & MFC encoding            =

=  7.   MFC decoding & Camera preview            =

=  8.   Camera input and JPEG encoding           =

=  9.   JPEG decoding and display                =

=  10.  H.264 decoding thru TVOUT                =

=  11.  MFC decoding & Camera preview thru TV    =

=  12.  Exit                                     =

=                                                =

==================================================

Select number --> 10

<STREAMINFO> width=320   height=240. s3c_tvscaler_init 

TV-OUT: VIDIOC_ENUMINPUT : index = 1

TV-OUT: VIDIOC_S_INPUT 

TV-OUT: VIDIOC_ENUMOUTPUT : index = 0

TV-OUT: VIDIOC_S_OUTPUT 

C: VIDIOC_S_FMT 

TV-OUT: MFC path operation set

 

Device file open

V4L2 APPL : Name of the interface is S3C TV-OUT driveTVENCODER

V4L2 APPL : [1]: IN channel name Memory input (MSDMA)

V4L2 APPL : DMA INPUT 

V4L2 APPL : [0]: OUT channel name TV-OUT

V4L2 APPL : TV OUT 

 

Select number --> 9

======= JPEG decodec Test ========

======= Real6410 Media Demo Application ========

=                                                =

=  1.   H.264 display                            =

=  2.   MPEG4 display                            =

=  3.   H.263 display                            =

=  4.   VC-1  display                            =

=  5.   4-windows display                        =

=  6.   Camera preview & MFC encoding            =

=  7.   MFC decoding & Camera preview            =

=  8.   Camera input and JPEG encoding           =

=  9.   JPEG decoding and display                =

=  10.  H.264 decoding thru TVOUT                =

=  11.  MFC decoding & Camera preview thru TV    =

=  12.  Exit                                     =

=                                                =

==================================================

Select number --> 10

<STREAMINFO> width=320   height=240. s3c_tvscaler_init 

TV-OUT: VIDIOC_ENUMINPUT : index = 1

TV-OUT: VIDIOC_S_INPUT 

TV-OUT: VIDIOC_ENUMOUTPUT : index = 0

TV-OUT: VIDIOC_S_OUTPUT 

C: VIDIOC_S_FMT 

TV-OUT: MFC path operation set

 

Device file open

V4L2 APPL : Name of the interface is S3C TV-OUT driveTVENCODER

V4L2 APPL : [1]: IN channel name Memory input (MSDMA)

V4L2 APPL : DMA INPUT 

V4L2 APPL : [0]: OUT channel name TV-OUT

V4L2 APPL : TV OUT 

 

Select number --> 9

======= JPEG decodec Test ========

======= Real6410 Media Demo Application ========

=                                                =

=  1.   H.264 display                            =

=  2.   MPEG4 display                            =

=  3.   H.263 display                            =

=  4.   VC-1  display                            =

=  5.   4-windows display                        =

=  6.   Camera preview & MFC encoding            =

=  7.   MFC decoding & Camera preview            =

=  8.   Camera input and JPEG encoding           =

=  9.   JPEG decoding and display                =

=  10.  H.264 decoding thru TVOUT                =

=  11.  MFC decoding & Camera preview thru TV    =

=  12.  Exit                                     =

=                                                =

==================================================

Select number --> 10

<STREAMINFO> width=320   height=240. s3c_tvscaler_init 

TV-OUT: VIDIOC_ENUMINPUT : index = 1

TV-OUT: VIDIOC_S_INPUT 

TV-OUT: VIDIOC_ENUMOUTPUT : index = 0

TV-OUT: VIDIOC_S_OUTPUT 

C: VIDIOC_S_FMT 

TV-OUT: MFC path operation set

 

Device file open

V4L2 APPL : Name of the interface is S3C TV-OUT driveTVENCODER

V4L2 APPL : [1]: IN channel name Memory input (MSDMA)

V4L2 APPL : DMA INPUT 

V4L2 APPL : [0]: OUT channel name TV-OUT

V4L2 APPL : TV OUT 

 

到了这里,就不动了。

只好重启。

测试结果和说明书的上的清晰的效果相比,差距很大。

几乎全部都是不清晰的,而且速度很快。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

等风来不如迎风去

你的鼓励是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值