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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
2,988 Views
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

Labels (2)
0 Kudos
1 Solution
1,864 Views
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

View solution in original post

0 Kudos
4 Replies
1,864 Views
AGNI
Contributor I

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

Best Wishes,

Shri

0 Kudos
1,864 Views
LeonardoSandova
Specialist I

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

Leo

1,864 Views
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 Kudos
1,865 Views
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 Kudos