neurospeech / xamarin-android-ffmpeg

Xamarin Android FFMpeg binding
MIT License
30 stars 6 forks source link

Need to rebuild the project with latest android transcoder from /ypresto #31

Open minglu opened 1 year ago

minglu commented 1 year ago

The current Nuget release couldn't compress video with higher resolution settings or on recently released devices like Samsung S21 with FHD as the default camera settings. Old android-transcoder dll from ypresto had a profile check for non-baseline profile (not 66) video

if (profileIdc != PROFILE_IDC_BASELINE) { throw new InvalidOutputFormatException("Non-baseline AVC video profile is not supported by Android OS, actual profile_idc: " + profileIdc); }

Fatal error while transcoding, this might be invalid format or bug in engine or Android. net.ypresto.androidtranscoder.engine.InvalidOutputFormatException: Non-baseline AVC video profile is not supported by Android OS, actual profile_idc: 100

The latest https://github.com/ypresto/android-transcoder removed the profile check.