I will just repeat my answer:
Use -qscale 30 or -qscale 50 as -qscale 0 will create extremely large file depend of video size and length, file can easy reach 100GB.
You force using -qscale 0 but you do not understand what that command do. There is all kind of limits in Android system, you break some of them, for example is not possible to write file over 4GB on SD card.
You can see crash with unfiltered logs as crash is not in library but system kill your app.
EDIT:
You can also try to start app in Release mode.