After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 783501 - Provide GstPreset for vaapi encoders.
Provide GstPreset for vaapi encoders.
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gstreamer-vaapi
git master
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
P2
Depends on:
Blocks:
 
 
Reported: 2017-06-07 08:36 UTC by Hyunjun Ko
Modified: 2018-11-03 15:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Initial propose for GstVaapiEncodeH264.prs (740 bytes, text/plain)
2017-06-30 08:41 UTC, Hyunjun Ko
Details

Description Hyunjun Ko 2017-06-07 08:36:02 UTC
There's GstPreset supported in gstreamer.
If we support this for vaapi encoders, I expect this can be involved to gst-validate scenario for vaapi.(bug #773304)

Eg. If we have "Main" preset for main profile with dct8x8 disabled,

gst-launch-1.0 videotestsrc num-buffers=50 ! encodebin profile="video/quicktime,varient=iso:video/x-h264+Main" ! filesink location=test.mp4

and we can also include preset to gst-validate tools as the following:

gst-validate-transcoding-1.0 -o "video/quicktime,variant=iso;:video/x-h264+Main" [input] [output]
Comment 1 Thibault Saunier 2017-06-07 13:42:32 UTC
That would indeed be nice to add, but you should try to have the same profiles as x264enc: https://phabricator.freedesktop.org/diffusion/GSTUGLY/browse/master/ext/x264/GstX264Enc.prs

GstValidate and encodebin serialization format do support presets, we might want to start using some in the default testsuites.
Comment 2 Hyunjun Ko 2017-06-08 01:53:25 UTC
(In reply to Thibault Saunier from comment #1)
> That would indeed be nice to add, but you should try to have the same
> profiles as x264enc:
> https://phabricator.freedesktop.org/diffusion/GSTUGLY/browse/master/ext/x264/
> GstX264Enc.prs
Yes I know this preset and have tried with this. But there's some different properties. Anyway we can refer to this preset.

> 
> GstValidate and encodebin serialization format do support presets, we might
> want to start using some in the default testsuites.
Good information. Thanks.
Comment 3 Hyunjun Ko 2017-06-08 01:54:57 UTC
(In reply to Hyunjun Ko from comment #2)
> (In reply to Thibault Saunier from comment #1)
> > That would indeed be nice to add, but you should try to have the same
> > profiles as x264enc:
> > https://phabricator.freedesktop.org/diffusion/GSTUGLY/browse/master/ext/x264/
> > GstX264Enc.prs
> Yes I know this preset and have tried with this. But there's some different
> properties. Anyway we can refer to this preset.

Hmm, probably we should use same profile name to generalize for gst-validate.
Comment 4 Hyunjun Ko 2017-06-30 08:41:09 UTC
Created attachment 354723 [details]
Initial propose for GstVaapiEncodeH264.prs

Now I would propose initial version of GstVaapiEncodeH264.prs including:

- Profile Baseline
- Profile Main
- Profile High
 => Same as x264enc

- Profile Stereo High
- Profile Multiview High
=> though it's not working perfectly (See bug #784321, bug #784372), these should be included imho.

- Profile High Compression
- Profile Low Power
=> This is supported by property in vaapih264enc. Do you think these should be included?

- Profile Youtube
=> Same as x264enc


It would be happy if there's someone giving opinions :)
Comment 5 Víctor Manuel Jáquez Leal 2017-07-03 17:07:40 UTC
Comment on attachment 354723 [details]
Initial propose for GstVaapiEncodeH264.prs

We'll need a patch for Makefile.am and meson.build

why did you set the max-bframes to 1 in all the profiles?

can you set multiple profiles, like "Main/High Compression"??

Otherwise, I guess there is no point to have the High Compression / Low Power profiles, since they might be parameters for all the profiles. As a matter of fact I would set tune=1 in Youtube's profile.
Comment 6 GStreamer system administrator 2018-11-03 15:50:03 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/issues/55.