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,224件の閲覧回数
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,100件の閲覧回数
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,100件の閲覧回数
AGNI
Contributor I

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

Best Wishes,

Shri

0 件の賞賛
返信
3,100件の閲覧回数
LeonardoSandova
Specialist I

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

Leo

3,100件の閲覧回数
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,101件の閲覧回数
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 件の賞賛
返信