How to raise quality of H.264 encoder

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to raise quality of H.264 encoder

1,357 次查看
MaxLapshin
Contributor I

I capture video 640x360 from excelent USB web camera (Logitech 910) and push it into vpuencoder:

gst-launch v4l2src device=/dev/video0 ! video/x-raw-yuv,width=640,height=360,framerate=15/1  ! mfw_vpuencoder codec-type=std_avc bitrate=800  gopsize=150 ! video/x-h264,width=640,height=360 ! rtph264pay pt=96 ! udpsink host=192.168.0.95 port=5000 sync=false

Currently result is awful. Is it possible to tune quality? I'm ready to raise delay and refuse from gstreamer to make direct calls to vpu.

标签 (1)
标记 (2)
0 项奖励
回复
4 回复数

1,189 次查看
ZhongliHe
NXP Employee
NXP Employee

The encoding quality depends on the raw video quality captured by camera as well as the encoding parameters. Normally, bad encoding quality is caused by noisy raw video captured in low lux.

Can you increase your light to see whether the encoding quality gets better ? 

Can you also share your compressed H264 bitstream so that I can check the encoding parameters you used ?  

 

Thanks

Jones

0 项奖励
回复

1,189 次查看
WilfredYou
Contributor I

maybe you can increase the frame rate to 24?

0 项奖励
回复

1,189 次查看
MaxLapshin
Contributor I

Yes, of course. But 800 kbit video 640x360 is much much worser, that 300 kbit compressed by libx264.

I realize that hardware encoder is much worser, than software one, but I want to find the way to do its best.

0 项奖励
回复

1,189 次查看
HugoMarcondes
Contributor I

Did you try to increase your video bitrate ?

0 项奖励
回复