Comments (5)
You can also look at the Https tab of Android test application under the ffmpeg-kit-test
project. It has an example for getting MediaInformation
from session using an ExecuteCallback
.
from ffmpeg-kit.
It Worked, Thank you very much for your help and effort, you always helped me and never disappointed!!
from ffmpeg-kit.
Could you be more specific please? I don't understand what is this issue about.
from ffmpeg-kit.
Let me explain, in older version i'm using given code for getting audio file information such as audio/video bitrate, format, sample rate, etc..
GetMediaInformationCallback mediaInformationCallback = mediaInformation -> {
if (mediaInformation != null && mediaInformation.getStreams() != null) {
if (mediaInformation.getFormat() != null) {
txt_infoFormat.setText(mediaInformation.getFormat());
}
for (StreamInformation stream : mediaInformation.getStreams()) {
if (stream.getBitrate() != null) {
txt_infoBitrate.setText("" + stream.getBitrate() + "kbps");
} else {
if (txt_infoBitrate != null) {
txt_infoBitrate.setText("-");
}
}
if (stream.getChannelLayout() != null) {
txt_infoChannel.setText(stream.getChannelLayout());
}
if (stream.getSampleRate() != null) {
txt_infoFrequency.setText("" + stream.getSampleRate() + "Hz");
}
}
}
};
AsyncGetMediaInformationTask asyncGetMediaInformationTask = new AsyncGetMediaInformationTask(mediaInformationCallback);
asyncGetMediaInformationTask.execute(audioLocation);
But in this repo i can't find similar to this methods, i searched for my requirement but i just found the same but it is for execution time, what i want is suppose i have different activity where i shows output file's info, which i converted using ffmpeg, by clicking on file i display pop-up and show above given file infos by given code..
from ffmpeg-kit.
In FFmpegKit
, sessions created by running FFprobeKit.getMediaInformation
encapsulate MediaInformation
object. Because of that, you no longer need a separate callback named GetMediaInformationCallback
. You can set an ExecuteCallback
and get MediaInformation
from the session using ((MediaInformationSession) session).getMediaInformation()
.
It is still possible to use AsyncGetMediaInformationTask
if you prefer to do so. But again, to get the MediaInformation
you need to use the session created.
from ffmpeg-kit.
Related Issues (20)
- In flutter library provide a properties getters and setters in dart syntax, as a property, instead of methods get*() and set*() HOT 1
- Multiple commands produce ~'/Frameworks/ffmpegkit.framework' HOT 1
- File conversion to mp3 returning failure everytime. HOT 2
- Can't remove console.logs in index.js HOT 1
- Request support for vulkan and libplacebo HOT 1
- React-Native/Expo | Cannot use libx265 HOT 4
- [EXPO] How to use --speed flag? HOT 1
- No such filter: 'transpose=2' HOT 4
- [Android] - [Question] Create video from in memory images? HOT 1
- get some error while merging audio with image HOT 1
- Add clearCompletedSessions please:
- MissingPluginException(No implementation found for method getLogLevel on channel flutter.arthenica.com/ffmpeg_kit) package:flutter/src/services/platform_channel.dart 332:7 MethodChannel._invokeMethod HOT 9
- Is there any way to pause and resume the conversion process? HOT 4
- configureCodec returning error -61
- Android No match for targetSdk 34
- Can not set libx264 encoder Settings will report error other encoders no problem HOT 1
- Feature Request: Support --speed flag in ffmpeg_kit_flutter
- Draw Text HOT 1
- Android | Thumbnail generation for HLS video stream
- Apple | Not able to build project
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ffmpeg-kit.