Comments (5)
I added includeAudio param to the compressVideo method
MediaInfo mediaInfo = await VideoCompress.compressVideo(
videoPath,
quality: VideoQuality.LowQuality,
deleteOrigin: false,
includeAudio: true
);
from videocompress.
having the issue on my side too below getting null even the path I'm getting is not null
I/flutter (21309): VideoCompress: You can try to subscribe to the
I/flutter (21309): compressProgress$ stream to know the compressing state.
E/MethodChannel#video_compress(21309): Failed to handle method call
E/MethodChannel#video_compress(21309): kotlin.KotlinNullPointerException
E/MethodChannel#video_compress(21309): at com.example.video_compress.VideoCompressPlugin.onMethodCall(VideoCompressPlugin.kt:83)
E/MethodChannel#video_compress(21309): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:226)
E/MethodChannel#video_compress(21309): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/MethodChannel#video_compress(21309): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:631)
E/MethodChannel#video_compress(21309): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#video_compress(21309): at android.os.MessageQueue.next(MessageQueue.java:336)
E/MethodChannel#video_compress(21309): at android.os.Looper.loop(Looper.java:181)
E/MethodChannel#video_compress(21309): at android.app.ActivityThread.main(ActivityThread.java:7550)
E/MethodChannel#video_compress(21309): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#video_compress(21309): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
E/MethodChannel#video_compress(21309): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
I/flutter (21309): Error from VideoCompress:
I/flutter (21309): Method: compressVideo
I/flutter (21309): PlatformException(error, null, null)
flutter doctor
[✓] Flutter (Channel stable, v1.17.1, on Linux, locale en_IN)
• Flutter version 1.17.1 at /home/akshya/Aeologic/Flutter_sdks/flutter_v17.1/flutter_linux_1.17.1-stable/flutter
• Framework revision f7a6a7906b (6 months ago), 2020-05-12 18:39:00 -0700
• Engine revision 6bc433c6b6
• Dart version 2.8.2
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /home/akshya/Android_2.3/Sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: /home/akshya/Aeologic/android_studio_4.0/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Android Studio (version 2.3)
• Android Studio at /home/akshya/Android_2.3/android-studio
• Flutter plugin version 31.3.3
• Dart plugin version 182.5124
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[✓] Android Studio (version 4.0)
• Android Studio at /home/akshya/Aeologic/android_studio_4.0/android-studio
• Flutter plugin version 48.1.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.49.1)
• VS Code at /usr/share/code
• Flutter extension version 3.9.1
[✓] Connected device (1 available)
• Redmi Note 7 Pro • a27a689a • android-arm64 • Android 10 (API 29)
• No issues found!
Process finished with exit code 0
from videocompress.
I added includeAudio param to the compressVideo method
MediaInfo mediaInfo = await VideoCompress.compressVideo(
videoPath,
quality: VideoQuality.LowQuality,
deleteOrigin: false,
includeAudio: true
);
can confirm
from videocompress.
我在includeVideo方法中添加了includeAudio参数
MediaInfo mediaInfo =等待VideoCompress.compressVideo(
videoPath,
quality:VideoQuality.LowQuality,
deleteOrigin:false,
includeAudio:true
);可以确认
This solves my problem
from videocompress.
Fixed on 2.1.1
from videocompress.
Related Issues (20)
- Video Compress returns null value HOT 13
- Video compression not starting for some videos... HOT 4
- Compressing the video has the black space on left half. HOT 1
- Error occurred during video compression HOT 2
- Compress speed is too slow.
- Getting FATAL EXCEPTION: java.lang.RuntimeException: setDataSource failed: status = 0xFFFFFFEA HOT 5
- Compressed video on Android phones is too large HOT 2
- getByteThumbnail problem (only first image) HOT 1
- Returning State.Wait because source can't read AUDIO right now.
- "Failed to stop the muxer" error using video_compress 3.1.1 HOT 10
- compression duration is not working as expected HOT 4
- 3.1.2/lib/src/video_compress/video_compressor.dart:60:26: Error: 'Uint8List' isn't a type. HOT 1
- Can't build the app for Android while using the package: failed for task ':app:checkDebugAarMetadata' HOT 20
- com.otaliastudios:transcoder:0.9.1 is not supported HOT 9
- .bitRate() not working HOT 1
- need conversion format
- no find [remove audio] method HOT 2
- iOS i can set AVFileType, but android not found how to set Type
- Error: Type 'Uint8List' not found. ../…/video_compress/video_compressor.dart:53 Future<Uint8List?> getByteThumbnail( ) HOT 2
- Package error: HOT 1
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 videocompress.