Closed kartikdutt18 closed 6 months ago
Hi @Yahweasel, I also tried adding a is zero check in ffmpeg (by applying another patch), however that further results in another error. Check added:
} else if (num >= den && den > 0) { f->val += num / den; num = num % den; }
New error:
test-decode-audio.html:1 Uncaught (in promise) RuntimeError: null function or function signature mismatch
RuntimeError: null function or function signature mismatch
at interleaved_write_packet (http://localhost:8080/libav-mp4-aac.wasm.wasm:wasm-function[1174]:0x156639)
at write_packet_common (http://localhost:8080/libav-mp4-aac.wasm.wasm:wasm-function[1172]:0x1560af)
at write_packets_common (http://localhost:8080/libav-mp4-aac.wasm.wasm:wasm-function[1167]:0x154bcb)
at av_interleaved_write_frame (http://localhost:8080/libav-mp4-aac.wasm.wasm:wasm-function[1173]:0x156364)
at ret.
Can you please help me out with this issue, thank you!
RuntimeError: null function or function signature mismatch
Ahh, so this implies out of memory access. Maybe? Or is it a type thing?
After an hour of wasting my time, I have determined nothing more than the fact that the bug is not mine. libav.js is a binding; if you believe there's a bug in libav itself, you're barking up the wrong tree. Personally, I think the way you create your streams is probably incorrect in some subtle way, but I've expended all the time I'm willing to to debug it. Do not open issue reports on this repository unless the issue is with this repository's code.
I'm trying to convert an aac file into an mp4 / m4a / aac file. I've made changes in the test-decode-audio.js and using that to transcode the aac file.
Issue: It fails in the libav.ff_write_multi step with a division by zero error. On debugging (compiling with g3 flag instead), the error occurs when frac_add method is called by compute_muxer_pkt_fields and it fails there. Stack: av_interleaved_write_frame -> write_packets_common -> write_packet_common -> compute_muxer_pkt_fields -> frac_add (where it throws)
Hi @Yahweasel, Can you please help me figure out the issue here. Thanks! I've attached code, flags used and some other things I tried.
Code file:
Flags used for compiling ffmpeg:
Other things I tried: