Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

video editor

flutter api: video editor allows trim, crop, rotate and scale video with a super flexible ui design.

features

  • super flexible ui design.
  • support actions:
    • crop
    • trim
    • scale
    • rotate

installation (more info on flutter ffmpeg)

android

add on android/build.gradle file and define package name in ext.flutterffmpegpackage variable.

ext.flutterffmpegpackage = "min-gpl-lts"

ios

(flutter >= 1.20.x)

  • edit ios/podfile, add the following block before target 'runner do and specify the package name in min-gpl-lts section:
      # "fork" of method flutter_install_ios_plugin_pods (in fluttertools podhelpers.rb) to get lts version of ffmpeg
      def flutter_install_ios_plugin_pods(ios_application_path = nil)
       # defined_in_file is set by cocoapods and is a pathname to the podfile.
        ios_application_path ||= file.dirname(defined_in_file.realpath) if self.respond_to?(:defined_in_file)
        raise 'could not find ios application path' unless ios_application_path
    
        # prepare symlinks folder. we use symlinks to avoid having podfile.lock
        # referring to absolute paths on developers' machines.
    
        symlink_dir = file.expand_path('.symlinks', ios_application_path)
        system('rm', '-rf', symlink_dir) # avoid the complication of dependencies like fileutils.
    
        symlink_plugins_dir = file.expand_path('plugins', symlink_dir)
        system('mkdir', '-p', symlink_plugins_dir)
    
        plugins_file = file.join(ios_application_path, '..', '.flutter-plugins-dependencies')
        plugin_pods = flutter_parse_plugins_file(plugins_file)
        plugin_pods.each do |plugin_hash|
          plugin_name = plugin_hash['name']
          plugin_path = plugin_hash['path']
    
          if (plugin_name && plugin_path)
              symlink = file.join(symlink_plugins_dir, plugin_name)
              file.symlink(plugin_path, symlink)
    
              if plugin_name == 'flutter_ffmpeg'
                  pod plugin_name + '/min-gpl-lts', :path => file.join('.symlinks', 'plugins', plugin_name, 'ios')
              else
                  pod plugin_name, :path => file.join('.symlinks', 'plugins', plugin_name, 'ios')
              end
          end
        end
      end
    
  • ensure that flutter_install_all_ios_pods file.dirname(file.realpath(__file__)) function is called within
    target 'runner' do block. in that case, it is mandatory that the added function is named
    flutter_install_ios_plugin_pods and that you do not make an explicit call within that block.

(flutter < 1.20.x)

  • edit ios/podfile file and modify the default # plugin pods block as follows. do not forget to specify the package
    name in min-gpl-lts section.

      # prepare symlinks folder. we use symlinks to avoid having podfile.lock
      # referring to absolute paths on developers' machines.
      system('rm -rf .symlinks')
      system('mkdir -p .symlinks/plugins')
      plugin_pods = parse_kv_file('../.flutter-plugins')
      plugin_pods.each do |name, path|
          symlink = file.join('.symlinks', 'plugins', name)
          file.symlink(path, symlink)
          if name == 'flutter_ffmpeg'
              pod name+'/min-gpl-lts', :path => file.join(symlink, 'ios')
          else
              pod name, :path => file.join(symlink, 'ios')
          end
      end
    

example (the ui design is fully customizable on the example)

crop video rotate video
crop_video video editor
trim video export video
trim_video export_video

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.