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
Solved! Go to Solution.
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
Leo, thanks a lot. It helped a lot and is working as expected.
Best Wishes,
Shri
Use mfw_ipucsc instead of videoscale, this way you accelerate the scaling step.
Leo
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.
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