Recherche avancée

Médias (1)

Mot : - Tags -/pirate bay

Autres articles (93)

Sur d’autres sites (16455)

  • How to extract audio from video with ffmpegKit in flutter

    8 juillet 2024, par Carlos Peñaranda

    I want to extract audio from video with this method :

    


     Future<audio> extractAudio(Video video, String formatAudioByUser) async {&#xA;   &#xA;    final pathAudio = video.pathIn;&#xA;&#xA;    FFmpegKit.execute(&#xA;            &#x27;-i ${video.pathIn} -q:a 0 -map a audio_${video.title}.mp3&#x27;)&#xA;        .then((session) async {&#xA;      final returnCode = await session.getReturnCode();&#xA;&#xA;      if (ReturnCode.isSuccess(returnCode)) {&#xA;        Fluttertoast.showToast(msg: &#x27;Extraccion exitosa&#x27;);&#xA;      } else if (ReturnCode.isCancel(returnCode)) {&#xA;        Fluttertoast.showToast(msg: &#x27;Extraccion cancelada&#x27;);&#xA;      } else {&#xA;        final error = await session.getFailStackTrace();&#xA;        Fluttertoast.showToast(msg: &#x27;Fallo al extraer audio: $error&#x27;);&#xA;      }&#xA;    });&#xA;&#xA;//creates object&#xA;  final audio = Audio(&#xA;      id: &#x27;audio_${video.id}&#x27;,&#xA;      title: &#x27;audio_${video.title}&#x27;,&#xA;      duration: video.duration,&#xA;      pathIn: video.pathIn, &#xA;      pathOut:pathAudio,&#xA;      format: formatAudioByUser,&#xA;    );&#xA;    &#xA;    return audio;&#xA;  }&#xA;</audio>

    &#xA;

    which i use in my datasource_impl.

    &#xA;

    But when choosing the media (video) and running the method, it doesn't work from the ffmpegkit script, and it shows this error : "Fallo al extraer audio: null"

    &#xA;

    I've reviewed the debugging mode, and created brakpoints, but all the video data looks good.

    &#xA;

  • How to execute this CMD Script in a Batch File ?

    10 août 2024, par Edgar Ferreira

    &#xA;

    I am trying to make a batch file that when executes makes a list named VideosToJoin.txt of the files with the extension .mp4, .mts and .avi in the folder and the after that proceed with the concat of those same files creating a final one named FinalVideo.mp4&#xA;I need some help here, because i want to automatize a specific process...

    &#xA;

    (for %i in (*.mp4,*.mts,*.avi) do @echo file &#x27;%i&#x27;) > VideosToJoin.txt   &#xA;  &#xA;ffmpeg -f concat -i VideosToJoin.txt -c copy FinalVideo.mp4&#xA;

    &#xA;

    The expected result is to have the final video by executing just one file, that's all i want, please help.

    &#xA;

  • Creating Video Maker in flutter

    22 avril 2023, par Manglam Industrial Product

    I have a application which allow user to pick multiple image from device add text and make a fresh final image using RepaintBoundry Widget which save the final image but now i want to add some more features like user can pick multiple videos and it will save video to device i have made full video editor but my problem is in saving that video which user created. If you want any code then you can ask in comments.

    &#xA;