Need help in improving playback speed of .264 file using gstreamer pipeline

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

Need help in improving playback speed of .264 file using gstreamer pipeline

跳至解决方案
4,179 次查看
AGNI
Contributor I

Hi,

I have a file named file1.264 which I am able to play successfully using the below mentioned pipeline on the display unit. However the playback speed is very slow. I would like to know if someone can help me in modifying this pipeline to get the normal expected playback speed.

Pipeline used:

gst-launch -v filesrc location=/video/file1.264 ! 'video/x-h264' ! 'vpudec framerate=(fraction)30/1' ! videoscale ! 'video/x-raw-yuv, width=800, height=480' ! mfw_v4lsink sync=false

Please note that I have used Playbin2 and it works very well, but I want to use the pipeline which has source, codec and sink explicitly mentioned and thus cant use Playbin2.

Thanks,

Shri

标签 (2)
标记 (4)
0 项奖励
回复
1 解答
3,055 次查看
LeonardoSandova
Specialist I

You may need to add some queue elements after decoding and after rescaling. Generate .dot files and convert to some image format, so you can see what is complete pipeline playbin2 is constructing. For this check this link

Leo

在原帖中查看解决方案

0 项奖励
回复
4 回复数
3,055 次查看
AGNI
Contributor I

Leo, thanks a lot. It helped a lot and is working as expected.

Best Wishes,

Shri

0 项奖励
回复
3,055 次查看
LeonardoSandova
Specialist I

Use mfw_ipucsc instead of videoscale, this way you accelerate the scaling step.

Leo

3,055 次查看
AGNI
Contributor I

Leo,

Thank you very much. It helped in improving the speed comparatively but is not matching to the speed with which the same video file was playing when using Playbin2. Do you think this would be the best speed that we can expect or do see any area for improvement?

Thank you very much.

0 项奖励
回复
3,056 次查看
LeonardoSandova
Specialist I

You may need to add some queue elements after decoding and after rescaling. Generate .dot files and convert to some image format, so you can see what is complete pipeline playbin2 is constructing. For this check this link

Leo

0 项奖励
回复