Flutter / Dart:找到两个视频片段并将其合并为一个有效的视频文件? [英] Flutter/Dart: Find two video segments and merge them into a single valid video file?
问题描述
我的iPhone上有两个视频文件。
好,所以有一个用于Futter的FFMpeg插件,您可以执行所有这些操作。
https://github.com/tanersener/flutter-ffmpeg
剪切15秒从第二秒20开始的视频片段:
ffmpeg -i Funny.mkv -ss 00:00:20 -codec copy -t 15 Funny_cut.mkv
合并存储在videos.txt中的视频列表:
ffmpeg -f concat -i videos.txt -c复制Funny_join.mkv
有关FFMpeg的更多信息:
https://www.poftut.com/ffmpeg-command-tutorial-examples-video-audio/
I have two video files on my iPhone. Is it possible, using Dart, to find two specific 10-second segments in each, and merge them both into a valid 20 second video file?
Ok, so there's a FFMpeg plugin for flutter that allows you to do all of this.
https://github.com/tanersener/flutter-ffmpeg
Cutting a 15 second video segment starting at second 20:
ffmpeg -i Funny.mkv -ss 00:00:20 -codec copy -t 15 Funny_cut.mkv
Merging a list of videos that is stored in videos.txt:
ffmpeg -f concat -i videos.txt -c copy Funny_join.mkv
For more about FFMpeg:
https://www.poftut.com/ffmpeg-command-tutorial-examples-video-audio/
这篇关于Flutter / Dart:找到两个视频片段并将其合并为一个有效的视频文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!