查看: 4282|回复: 5

[已解决] i.MX6 h.264网络传输问题(已解决)

[复制链接]

该用户从未签到

10

主题

61

帖子

0

中级会员

Rank: 3Rank: 3

积分
278
最后登录
2015-4-22
发表于 2014-9-25 10:25:10 | 显示全部楼层 |阅读模式
本帖最后由 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这边该用什么播放器?或者要自己写代码来验证?





我知道答案 目前已有5人回答
回复

使用道具 举报

该用户从未签到

10

主题

61

帖子

0

中级会员

Rank: 3Rank: 3

积分
278
最后登录
2015-4-22
 楼主| 发表于 2014-9-25 10:48:14 | 显示全部楼层
我自己写了一个小程序,用RTP协议,将一个文件test.264传输到PC上,PC端用VLC播放器可以播放视频。
但config_net用的是什么协议,看不懂,
回复 支持 反对

使用道具 举报

该用户从未签到

145

主题

4926

帖子

0

金牌会员

Rank: 6Rank: 6

积分
9267
最后登录
1970-1-1
发表于 2014-9-25 11:19:55 | 显示全部楼层
楼主你好,你的问题我已经帮你转给我们的I.MX工程师,他会帮你解答,还请耐心等待下。
回复 支持 反对

使用道具 举报

该用户从未签到

45

主题

2369

帖子

0

金牌会员

Rank: 6Rank: 6

积分
3275
最后登录
1970-1-1
发表于 2014-9-25 17:46:02 | 显示全部楼层
楼主你好,今天事情比较多,没有来得及处理,明天帮你看哈~~
回复 支持 反对

使用道具 举报

该用户从未签到

10

主题

61

帖子

0

中级会员

Rank: 3Rank: 3

积分
278
最后登录
2015-4-22
 楼主| 发表于 2014-9-26 10:52:43 | 显示全部楼层
我找到这个unit_tests的源码了,我自己看看。
回复 支持 反对

使用道具 举报

该用户从未签到

45

主题

2369

帖子

0

金牌会员

Rank: 6Rank: 6

积分
3275
最后登录
1970-1-1
发表于 2014-9-26 15:43:10 | 显示全部楼层
楼主你好,这里是一些参数说明,你就是你在播放视频或图像的时候需要设置参数的。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 注册/登录

本版积分规则

关闭

站长推荐上一条 /3 下一条

Archiver|手机版|小黑屋|恩智浦技术社区

GMT+8, 2025-7-20 23:53 , Processed in 0.096760 second(s), 26 queries , MemCache On.

Powered by Discuz! X3.4

Copyright © 2001-2024, Tencent Cloud.

快速回复 返回顶部 返回列表