Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

Using Gstreamer to decode 4K video to 1080p

66

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
66

Using Gstreamer to decode 4K video to 1080p

Posted at 7/28/2017 20:45:31      View:13201 | Replies:14        Print     [Copy Link] 1#
Hello,

I have tried both the Firefly Ubuntu image and also making my own following the guide at http://rockchip.wikidot.com/linux-user-guide , but I am not able to use vpudec in Gstreamer.
Doing ls /dev I can find vpu_service and rkvdec.
In the build script for rockchip-linux it also installs rockchip_mpp libraries(https://github.com/rockchip-linu ... er/mk-rootfs.sh#L69).
How can I enable the VPU to do the 4K decoding? And how can I enable 1080p h264 encoder?
Reply

Use props Report

66

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
66
Posted at 7/29/2017 19:18:42      2#
I am able to compile the mpp and rkximage part of the rockchip-gstreamer plugin, however, after it is done I do not find mppvideodec and mpph264enc available in Gstreamer when doing gst-inspect.
Reply

Use props Report

66

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
66
Posted at 8/7/2017 18:21:30      3#
If I specify with --gst-plugin-path=/usr/local/lib/gstreamer-1.0/ I get the following message:

(gst-plugin-scanner:18102): GStreamer-WARNING **: Failed to load plugin '/usr/local/lib/gstreamer-1.0/libgstrockchipmpp.so': /usr/local/lib/gstreamer-1.0/libgstrockchipmpp.so: undefined symbol: gst_pad_get_task_state

How can I fix this?
Reply

Use props Report

66

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
66
Posted at 8/14/2017 15:14:39      4#
It is important for me to be able to choose which software etc. to flash on the image. That's why I choose to use the rockchip-linux rootfs script. Can you provide a similar script to generate your Firefly Ubuntu image? That way I can add the software and settings I need in my script.
Reply

Use props Report

66

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
66
Posted at 8/15/2017 16:28:17      5#
Thank you,
this works, but it is not a satisfactory solution for me. I want to be able to automate building several images with different settings (for example different SSIDs on wifi). With this method I would have to do this for each image separately.
Reply

Use props Report

66

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
66
Posted at 8/15/2017 20:31:13      6#
By the way, are you able to provide an Ubuntu image with working mppvideodec and mpph264enc in Gstreamer?
Reply

Use props Report

66

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
66
Posted at 8/17/2017 18:58:49      7#
Thank you,

this is what I am using. But then mppvideodec and mpph264enc are not enabled.
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list