We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
thanks author,you are great. when i user size() function set exact value,this lib not working.so how can i select output size?
The text was updated successfully, but these errors were encountered:
i found /etc/media_codecs.xml record current device support size。
Sorry, something went wrong.
we can first check size value!!
for (MediaCodecInfo codecInfo : new MediaCodecList(MediaCodecList.ALL_CODECS).getCodecInfos()) { if (!codecInfo.isEncoder()) continue; String[] types = codecInfo.getSupportedTypes(); for (int j = 0; j < types.length; j++) { if ("video/avc".equalsIgnoreCase(types[j])) { MediaCodecInfo.CodecCapabilities codecCaps = codecInfo.getCapabilitiesForType("video/avc"); MediaCodecInfo.VideoCapabilities vidCaps = codecCaps.getVideoCapabilities(); Range<Integer> framerates = vidCaps.getSupportedFrameRates(); Range<Integer> widths = vidCaps.getSupportedWidths(); Range<Integer> heights = vidCaps.getSupportedHeights(); Log.d("H.264Encoder", "Found encoder with\n" + widths.toString() + " x " + heights.toString() + " @ " + framerates.toString() + " fps aligned to " + vidCaps.getWidthAlignment()); } } }
No branches or pull requests
thanks author,you are great.
when i user size() function set exact value,this lib not working.so how can i select output size?
The text was updated successfully, but these errors were encountered: