在线时间61 小时
UID2106868
注册时间2014-9-2
NXP金币0
该用户从未签到
中级会员
 
- 积分
- 278
- 最后登录
- 2015-4-22
|
本帖最后由 FSL_TICS_Rita 于 2014-10-9 17:47 编辑
我用i.MX6 SDB板测试VPU h.264,BSP版本为L3.0.35_4.1.0_130816,系统用的是min_profile
在提供的例子中有unit_tests/autorun-vpu.sh 加以config_enc 、config_dec、config_net,通过修改config_enc、config_dec都实现了自定义的编解码功能。
下面是修改后的config_net文件
# Write your options here!
#以下操作用来做什么?没有用到,有些不懂
# Type of operation encode or decode; encode = 1, decode = 2
operation=2
# read input from file. For network, leave blank. If not specified for encode
# then default is camera
input=
# write output to file. For decode, if not specified, then default is LCD
output=
# port number for server to listen. If none specified, default is 5555
port=
# format; 0 - MPEG4, 1 - H.263, 2 - H.264, 3 - VC1, 7 - MJPG
format=2
# mp4Class; 0 - MPEG4, 1 - DIVX 5.0 or higher, 2 - XVID, 5 - DIVX 4.0
mp4Class=
# rotation angle (0, 90, 180, 270). Do not specify anything if not needed.
rotation=90
# ipu_rot, 1 - Enable IPU rotation and disable VPU rotation when output
# to LCD for display
ipu_rot=
# chromaInterleave, 1 - CbCr is interleaved.
# Suggest to enable this option since performance is better.
chromaInterleave=1
# prescan, 1 - Enable prescan
# Suggest to enable this option since decoder performs scanning stream buffers
# to check whether data is enough to preventing decoder hanging.
prescan=1
# count, number of frames to encode or decode
count=
# deblocking . 1 - Enable deblock
deblock=
# mirroring (0, 1, 2 , 3)
mirror=
# width, display width for decoding
width=
# height, display height for decoding
height=
# bitrate. default is auto
bitrate=
# gop size. default is 0
gop=
# This option specifies the end of option list for one instance
# Each option list must be end with this option. This is mandatory.
end
#我只使用以下操作来压缩传输码流
# Type of operation encode or decode; encode = 1, decode = 2
operation=1
# read input from file. leave blank for network. If not specified for encode
# then default is camera
input=test.yuv
# write output to file. For decode, if not specified, then default is LCD
output=test.264
# send encoded data to server. specify server ip address
ip=192.168.100.13
# port number of server. If none specified, default is 5555.
port=1234
# format; 0 - MPEG4, 1 - H.263, 2 - H.264, 3 - VC1
format=2
# rotation angle (0, 90, 180, 270). Do not specify anything if not needed.
rotation=
# chromaInterleave, 1 - CbCr is interleaved
# Suggest to enable this option since performance is better.
chromaInterleave=1
# count, number of frames to encode or decode
count=
# deblocking . 1 - Enable deblock
deblock=
# mirroring (0, 1, 2 , 3)
mirror=
# width for encoding. This will be the capture/yuv image width
width=240
# height for encoding. This will be the capture/yuv image height
height=320
# bitrate. default is auto
bitrate=0
# gop size. default is 0
gop=0
# This option specifies the end of option list for one instance
# Each option list must be end with this option. This is mandatory.
end
现在要测试config_net,本地数据test. yuv压缩为h.264码流test.264,然后传输到PC(IP:192.168.100.13),PC端通过wireshark看接收到了数据,但如何验证数据的正确性,PC这边该用什么播放器?或者要自己写代码来验证?
|
|