Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8245387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:09:41+00:00 2026-06-07T22:09:41+00:00

I am trying to play around with GStreamer-java and it’s h.264 encoder (x264enc) on

  • 0

I am trying to play around with GStreamer-java and it’s h.264 encoder (x264enc) on Android.

Now, I tried to encode raw video from test video source (set its is-live property to TRUE), and when data starts flowing into the x264enc Element, I get SIGSEGV in libx264.so and my app crashes. And it looks like code is dereferencing a NULL… Exact error location is in file "gstreamer_ndk_bundle/x264/encoder/analyse.c" line 963. And it is this line:

h->mc.memcpy_aligned( h->mb.pic.i8x8_dct_buf, h->dct.luma8x8, sizeof(h->mb.pic.i8x8_dct_buf) );

My device’s CPU is Cortex 8 and it has NEON feature…

I tried to printout to a file all h structure fields, and no field is uninitialized.

Android DEBUG info from LogCat: HERE

My questions:

  1. How can I know what is throwing SIGSEGV, because this line of code seems to be ok?
  2. Is this a known bug or an expected behavior of x264 encoder on ARM CPU or I am missing some encoder configuration?
  3. I noticed that if I set property analyse of the encoder to 0x3:0x113 (some random value I found online) I don’t get SIGSEGV, encoder seems to work, but I get error in pipeline: Data flow error. Can I just set analyse to a meaningful value?

Update

I fprintf-ed all important "h" fields just before execution runs in x264_mb_analyse_intra() function and just before the line that it breaks, guess it could help: http://pastebin.com/sAfX239j

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T22:09:43+00:00Added an answer on June 7, 2026 at 10:09 pm

    As you can see HERE, problem is in x264_memcpy_aligned function which for some reason is jumping to zero address, and that makes SIGSEGV happen. To fix this comment out this line:

    pf->memcpy_aligned = x264_memcpy_aligned_neon;
    

    In file /x264/common/arm/mc-c.c. It is supposed to be 250th line but I found out that it is not, so search for that text, it only occurs once in the file.

    Now x264enc is working on Android, with less NEON support though…

    If you follow this thread you will see that guys are working on fixing this problem, so this hack will soon be unimportant.

    If you want to debug it yourself, see these:

    1. Stack trace
    2. Field values before the function it breaks, and before line that it breaks
    3. ELF of unstripped libx264.so library
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to code a basic text editor to play around with Java's file objects
I'm trying to play around with an Android Service but the more I play
I'm trying to play around with Android development, but I can't seem to get
I'm just starting to play around with the android SDK, and was trying to
at the moment i´m trying to play around with JNI. My Java-Code : public
I am trying to play around with mocha running on node under Windows. I've
I'm trying to play around with some music clustering algorithms, and I thought that
Hi I am trying to play around with async.parallel and here is my code
My XQuery knowledge is pretty lacking but I'm trying to play around with XQIB
I'm trying to follow this guide to play around with Google Predict from the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.