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 730349 - gst-omx aac encoder on msm89x6
gst-omx aac encoder on msm89x6
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gst-omx
1.x
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-05-19 02:33 UTC by Jun Ji
Modified: 2018-05-05 16:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
to enable aacencoder on qcom msm89x6 (13.16 KB, patch)
2014-05-19 02:33 UTC, Jun Ji
needs-work Details | Review

Description Jun Ji 2014-05-19 02:33:01 UTC
I just found that slomo recently updated gst-omx and I couldn't see yet if the patch is to solve issues that I was able to workaround by my patch that I'm posting now.

However, this is true that aacencoder didn't work as itself at least the moment that I made this patch.

My device is qcom msm89x6 and the below is what my patch tries to fix:

1. qcom chipset needs not to disable any ports in gst_omx_audio_enc_set_format()
-> this is what slomo noticed me a long time ago and probably what he just updated.

2. gstomxaacenc.c doesn't seem to work with the general gstreamer negotiation routine.
-> this encoder tries to use undefined caps yet by negotiation feature and dies making severe error. (not-negotiated...) so I had to put some workaround to gstomxaacenc.c


This is my first time to upload to bugzilla so please inform me if I missed something.
Comment 1 Jun Ji 2014-05-19 02:33:53 UTC
Created attachment 276738 [details] [review]
to enable aacencoder on qcom msm89x6
Comment 2 Jun Ji 2014-05-19 02:41:35 UTC
still the omxaacenc may have a wrong sinkcap but the encoding feature should be enabled by this patch.

e.g) wav -> aac

gst-launch-1.0 filesrc location=[.wav] ! wa
vparse ! omxaacenc ! 3gppmux ! filesink location=output.aac
Comment 3 Sebastian Dröge (slomo) 2014-05-19 08:19:20 UTC
Can you attach a new patch that applies cleanly against latest GIT master? Yours contains some rather weird looking changes in there right now.

For that just clone the gst-omx GIT repository, apply your changes and commit the locally. Then you can extract them into patches with "git format-patch", and attach them here.


1) is fixed now btw, if you set hacks=no-disable-outport in your gstomx.conf

2) I don't really understand, what exactly is the problem there?
Comment 4 Sebastian Dröge (slomo) 2014-05-19 08:20:17 UTC
Also thanks for your patch :) And I forgot to mention that it's usually easier to review patches if you have one functional change per patch, and not multiple orthogonal changes in the same patch
Comment 5 Jun Ji 2014-05-19 08:27:19 UTC
For the second one, I'll reproduce the issue and post more detailed information with the log message.

OK, one functional change per patch. :)
Comment 6 Jun Ji 2014-06-25 07:56:36 UTC
I confirmed that this patch works for gstreamer 1.2 + -base 1.2 + gst-omx (based on 1.2) on msm89x26.
Comment 7 Jun Ji 2014-10-02 06:55:32 UTC
slomo, may I break the patch into each one for each file?
Comment 8 Sebastian Dröge (slomo) 2014-10-02 07:31:08 UTC
Not necessarily, but break it into one functional change per patch instead of having lots of unrelated changes in a single patch
Comment 9 Vivia Nikolaidou 2018-05-05 16:11:43 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug report if you can provide the information that was asked for in a previous comment.
Thanks!