-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hw encoder picked up on termux, fails #25
Comments
Hm, I am not sure what we can do here. In line https://github.com/anyc/avcut/blob/1d6f289a4dc1f9a244a28cfec194c900f44d5a28/avcut.c#L421C13-L421C33 we open the encoder based on the codec_id of the input codec which seems to denote the input format. |
@anyc, may be examine returned AVCodec structure and replace mediacodec family with software ones?
|
Hm, it looks like it is possible to replace the function avcodec_find_encoder() I referenced above with a combination of avcodec_descriptor_get_by_name() and avcodec_find_encoder_by_name() like implemented here: |
I just added the possibility to select the video encoder by CLI argument. Let me know if this helps. |
Better but stil segfault at the muxing stage ....
|
As avcut just copies the codec config from the decoder to the encoder, there might be something incompatible in there. I guess you have to gather a backtrace with a ffmpeg library with debug symbols. |
(If I execute avcut with "-e libx264" it works normally with my test video.) |
You could also try to setup a profile. That's maybe easier than getting ffmpeg with debug symbols. |
@anyc I do have ffmpeg source (just compiled for unrelated reason of testing dvd pcm audio encoder, there is curious difference between decoder supporting 32/44.1 khz sampling and encoder not. So I altered encoder and mpv still plays sound, but no idea if hw dvd player will pick it up. mediainfo for sure is confused) on my termux install, just need to point avcut to there ... |
On termux (Android 11, aarch64) :
It will be useful if there was way to filter out / blacklist some encoders?
The text was updated successfully, but these errors were encountered: