Hi - I'm trying to use tremor with libesp-tremor.a (instead of compiling myself tremor). Strangely, my application fails when calling ov_open_callbacks, it returns an OV_EREAD but my read callback is not even called. The exact same code works fine when compile on my x86 or arm Linux box. All the callbacks except read are set to NULL (I've tried with non-NULL callbacks as well).
The only thing I can think of is that my datasource points to an object of my own that is not of any kind knows by esp-idf, but that why you do have callbacks that pass you back that datasource, don't you?
When I compile tremor directly, it works but consumes 16k of stacks which I'm unhappy with, so I could need to find out why (using -fstack-usage of gcc did not give any useful information, there has to be some recusing happening somewhere), but I'd prefer to use the espressif-provided version of tremor.
Using libesp-tremor directtly fails on av_open_callbacks
-
- Posts: 26
- Joined: Thu May 23, 2019 3:05 pm
Re: Using libesp-tremor directtly fails on av_open_callbacks
Hi , I have not come across anything like this. Before solving the problem, i need to confirm the following things.
1. Did something go wrong with ESP-ADF demo?
2. Does the music you used work on other players?
if the answers are YES, could you give me the log and your used music for helping to reproduction? Thank you.
1. Did something go wrong with ESP-ADF demo?
2. Does the music you used work on other players?
if the answers are YES, could you give me the log and your used music for helping to reproduction? Thank you.
-
- Posts: 26
- Joined: Thu May 23, 2019 3:05 pm
Re: Using libesp-tremor directtly fails on av_open_callbacks
Hi - Thanks for answeringhouhaiyan wrote: ↑Thu May 30, 2019 2:35 amHi , I have not come across anything like this. Before solving the problem, i need to confirm the following things.
1. Did something go wrong with ESP-ADF demo?
2. Does the music you used work on other players?
if the answers are YES, could you give me the log and your used music for helping to reproduction? Thank you.
1.No
2.Absolutely. And my exact same source code works with my own tremor-compiled library.
BTW, I could not find a call to av_open_callbacks by scanning through *.c and *.h of the esp-adf. Do you use it?
Re: Using libesp-tremor directtly fails on av_open_callbacks
I see.
The function `av_open_callbacks` is used in decoding.
what can i do for you?
The function `av_open_callbacks` is used in decoding.
what can i do for you?
-
- Posts: 26
- Joined: Thu May 23, 2019 3:05 pm
Re: Using libesp-tremor directtly fails on av_open_callbacks
We can probably leave it there. I wanted to leverage your libs rather than building mine, as I thought you have probably made a better optimization job than I did, but it's not the end of the world. There is probably something different in the header files you've compiled libtremor against, which explains that there is a mis-parameter passing when I'm calling them.
Who is online
Users browsing this forum: No registered users and 18 guests