اذهب إلى المحتوى

السؤال

نشر

مرحبا 
انا اقوم بعمل تطبيق على flutter 
انا اريد النتيجة وهي : امكانية دمج اكثر من صورة مع ملف صوت وتحويل الى ملف فيديو
بصورة مبسطة عمل slide show بصيغة mp4 مثلا لامكانية مشاركته ك فيديو كبر مواقع التواصل الاجتماعي 
- انا استخدمت  بكيج ffmpeg_kit_flutter: ^4.5.1
لكني واجهت مشكلة انا الصور تظهر في الثانية الاولى فقط ويتابع الفيديو بالصورة الاخيرة فقط 
الكود::
Future<void> VideoMerger() async { loading = true; notifyListeners(); if(await Permission.storage.request().isGranted){ String commandToExecute ='-r 15 -f mp3 -i /storage/emulated/0/Download/khh.mp3 -f image2 -i /storage/emulated/0/Download/%01d.jpg -y /storage/emulated/0/Download/output.mp4'; await FFmpegKit.executeAsync(commandToExecute).then((rc) { loading = false; notifyListeners(); print('FFmpeg process exited with rc: $rc'); }); }else if (await Permission.storage.isPermanentlyDenied){ loading = false; notifyListeners(); openAppSettings(); } }

Recommended Posts

لا توجد أي إجابات على هذا السؤال بعد

انضم إلى النقاش

يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.

زائر
أجب على هذا السؤال...

×   لقد أضفت محتوى بخط أو تنسيق مختلف.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   جرى استعادة المحتوى السابق..   امسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

  • إعلانات

  • تابعنا على



×
×
  • أضف...