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
Remove videoToGif and instead add creating a short video without sound #24
Comments
I would also add additional quality parameters if that is ok with you? |
Regift can be solved with the below settings pre_install do |installer|
installer.analysis_result.specifications.each do |s|
if s.name == 'Regift'
s.swift_version = '4.0'
# elsif s.name == 'other-Plugin'
# s.swift_version = '5.0'
# else
# s.swift_version = '4.0'
end
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
end
end remove videoToGif will make it complicates
I plan adding other qualities to IOS, It is convenient to solve on Android |
I plan to do the following things class CustomModel {
Sting title;
Sting otherField;
}
class FlutterVideoCompress {
_mediaInfo = {
'title': MediaMetadataRetriever.METADATA_KEY_TITLE;
}
void setMediaInfoTemplate(Map<String, MediaMetadataRetriever> custom) {
_mediaInfo = custom;
}
Future<T = MediaInfo> getMediaInfo(String path) async {
invoke(.., _mediaInfo)
}
}
await getMediaInfo<CustomModel>(path) |
Cool. I'll try the Regift fix. However, I don't understand what you plan to do with CustomModel? You want to switch from json to your data classes? |
User can customize MediaInfo return and expectation data structures. |
I understand, is there any performance reason why you are doing this, or you just want more structured response? |
Just want more structured response |
An option to set new aspect ratio would be nice too! Edit: |
@vlada3003 I suggest this should be better. Future<MediaInfo> startCompress(
String path, {
VideoQuality quality = VideoQuality.DefaultQuality,
bool deleteOrigin = false,
bool includeAudio = false,
int frameRate = 24,
}) async {
}
Future<MediaInfo> cropAndCompress(
String path, {
VideoQuality quality = VideoQuality.DefaultQuality,
bool deleteOrigin = false,
bool includeAudio = false,
int frameRate = 24,
int startTime = 0,
int endTime = -1,
int duration = -1,
}) async {
} |
@TenkaiRuri for the cropAndCompress method, what is meant by crop part? |
@vlada3003 Crop video |
I understand that, but crop to what? |
Due to my English I am very sorry, I may think too much. This enhancement is great Future<MediaInfo> startCompress(
String path, {
VideoQuality quality = VideoQuality.DefaultQuality,
bool deleteOrigin = false,
bool includeAudio = false,
int frameRate = 24,
int startTime = 0,
int endTime = -1,
int duration = -1,
}) async {} |
Description
Since Gif is lossless format, gifs made from video have are bigger in size than short videos without audio. Also, there is a problem with Regift library since it is targeting iOS 11.1. My suggestion is to remove videoToGif and add a couple of optional parameters to startCompression for creating video preview.
Platform
Both
Code Example (if has)
Expected solution
I will implement this by adding parameters to this method if @TenkaiRuri agrees?
The text was updated successfully, but these errors were encountered: