Recherche avancée

Médias (1)

Mot : - Tags -/framasoft

Autres articles (63)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

Sur d’autres sites (7114)

  • libavfilter/vf_dnn_detect : Add yolo support

    21 novembre 2023, par Wenbin Chen
    libavfilter/vf_dnn_detect : Add yolo support
    

    Add yolo support. Yolo model doesn't output final result. It outputs
    candidate boxes, so we need post-process to remove overlap boxes to
    get final results. Also, the box's coordinators relate to cell and
    anchors, so we need these information to calculate boxes as well.

    Model detail please refer to : https://github.com/openvinotoolkit/open_model_zoo/tree/master/models/public/yolo-v2-tf

    Signed-off-by : Wenbin Chen <wenbin.chen@intel.com>
    Reviewed-by : Guo Yejun <yejun.guo@intel.com>

    • [DH] libavfilter/dnn/dnn_backend_openvino.c
    • [DH] libavfilter/vf_dnn_detect.c
  • How to use FFmpeg in android to edit video ? [closed]

    24 juillet 2023, par Rakesh Saini

    i am learning android. I tried the ffmpeg lib to merge the video and audio, but getting ffmpeg permission denied error. I search lot of but unable to find the solution.

    &#xA;

    Please anyone help if have the solution.

    &#xA;

            package com.example.mytestapp.Activity;&#xA;    &#xA;    import android.content.Context;&#xA;    import android.os.AsyncTask;&#xA;    import android.os.Environment;&#xA;    import android.util.Log;&#xA;    import com.github.hiteshsondhi88.libffmpeg.ExecuteBinaryResponseHandler;&#xA;    import com.github.hiteshsondhi88.libffmpeg.FFmpeg;&#xA;    import com.github.hiteshsondhi88.libffmpeg.exceptions.FFmpegCommandAlreadyRunningException;&#xA;    &#xA;    public class MergeAudioVideoTask extends AsyncTask {&#xA;        private static final String TAG = MergeAudioVideoTask.class.getSimpleName();&#xA;    &#xA;        private Context context;&#xA;        private String videoFilePath;&#xA;        private final String audioFilePath;&#xA;        private final String outputFilePath;&#xA;    &#xA;        public MergeAudioVideoTask(String videoFilePath, String audioFilePath, String outputFilePath) {&#xA;            this.videoFilePath = videoFilePath;&#xA;            this.audioFilePath = audioFilePath;&#xA;            this.outputFilePath = outputFilePath;&#xA;        }&#xA;    &#xA;    //    String inputAudioPath = "https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3";&#xA;        String outputVideoPath = Environment.getExternalStorageDirectory() &#x2B; "/trimVideos" &#x2B; "sangtest.mp4";&#xA;    &#xA;    //    String[] command = {"-i", vpath, "-i", inputAudioPath, "-c:v", "copy", "-c:a", "aac", "-map", "0:v:0", "-map", "1:a:0", "-shortest", outputVideoPath};&#xA;    &#xA;    &#xA;        @Override&#xA;        protected Boolean doInBackground(Void... params) {&#xA;            String[] cmd = {"-i", videoFilePath, "-i", audioFilePath, "-shortest", outputVideoPath};&#xA;            try {&#xA;                FFmpeg.getInstance(context).execute(cmd, new ExecuteBinaryResponseHandler() {&#xA;                    @Override&#xA;                    public void onStart() {&#xA;                        Log.e("Started", "yes");&#xA;                    }&#xA;    &#xA;                    @Override&#xA;                    public void onProgress(String message) {&#xA;                        // do nothing&#xA;                    }&#xA;    &#xA;                    @Override&#xA;                    public void onFailure(String message) {&#xA;                        Log.e("Failed ", "yes");&#xA;                    }&#xA;    &#xA;                    @Override&#xA;                    public void onSuccess(String message) {&#xA;                        Log.e("Success ", "yes");&#xA;                    }&#xA;    &#xA;                    @Override&#xA;                    public void onFinish() {&#xA;                        // do nothing&#xA;                    }&#xA;                });&#xA;            } catch (FFmpegCommandAlreadyRunningException e) {&#xA;                e.printStackTrace();&#xA;            }&#xA;    &#xA;            return null;&#xA;        }&#xA;    &#xA;        @Override&#xA;        protected void onPostExecute(Boolean success) {&#xA;            if (success) {&#xA;            } else {&#xA;            }&#xA;        }&#xA;    &#xA;    }&#xA;

    &#xA;

    I am using this but getting 'permission denied error for ffmpeg' i have already added storage permission in manifiest.

    &#xA;

  • How to combine multiple Audio Files into single using ffmpeg_kit_flutter

    17 septembre 2023, par sunil kalwani

    I want to play multiple Audio files in a sequence to form a question for the users.
    &#xA;For that, I tried the AudioPlay package in the loop but they took some pause to play it in between which did not look good.

    &#xA;

    So as the alternative I want to combine audio files into a single file to play.
    &#xA;For that I have used ffmpeg_kit_flutter package, but this returns 1 which means error in merging the files.

    &#xA;

    List<string> assetAudioFiles = [&#xA;  &#x27;audio/S1B_1.mp3&#x27;, // Replace with the URLs or local paths of your audio files&#xA;  &#x27;audio/L2_31.mp3&#x27;,&#xA;  &#x27;audio/S1B_2.mp3&#x27;,&#xA;  &#x27;audio/L1s20.mp3&#x27;,&#xA;];&#xA;&#xA;Future> copyAssetFilesToStorage() async {&#xA;  List<string> localFilePaths = [];&#xA;&#xA;  for (String assetFile in assetAudioFiles) {&#xA;    String localFilePath = await copyAssetToFile(assetFile);&#xA;    localFilePaths.add(localFilePath);&#xA;  }&#xA;&#xA;  return localFilePaths;&#xA;}&#xA; &#xA;Future<string> copyAssetToFile(String assetFilePath) async {&#xA;  final ByteData data = await rootBundle.load(assetFilePath);&#xA;  final Directory tempDir = await getTemporaryDirectory();&#xA;  final File tempFile =&#xA;    File(&#x27;${tempDir.path}/${assetFilePath.split(&#x27;/&#x27;).last}&#x27;);&#xA;  await tempFile.writeAsBytes(data.buffer.asUint8List(), flush: true);&#xA;  return tempFile.path;&#xA;}&#xA; &#xA;Future<void> combineAudio(List<string> audioFiles) async {&#xA;  Directory tempDir = await getTemporaryDirectory();&#xA;  String tempPath = tempDir.path;&#xA;&#xA;  // Create a temporary output file path&#xA;  String combinedAudioPath = &#x27;$tempPath/output.mp3&#x27;;&#xA;&#xA;  // Prepare the FFmpeg command to concatenate audio files&#xA;  String inputFiles = audioFiles.join(&#x27;|&#x27;);&#xA;&#xA;  String command =&#xA;    &#x27;ffmpeg -i "concat:$inputFiles" -acodec copy $combinedAudioPath&#x27;;&#xA;&#xA;  var cmd2 =&#xA;    "-i ${audioFiles[0]} -i ${audioFiles[1]} -i ${audioFiles[2]} -filter_complex [0:0][1:0][2:0]concat=n=3:v=0:a=1[out] -map [out] $combinedAudioPath";&#xA;     &#xA;  FFmpegKit.execute(cmd2).then((session) async {&#xA;    print(&#x27;session $session&#x27;);&#xA;    final returnCode = await session.getReturnCode();&#xA;    print(&#x27;returnCode $returnCode&#x27;);&#xA;&#xA;    if (ReturnCode.isSuccess(returnCode)) {&#xA;     print(&#x27;Audio files merged successfully $returnCode&#x27;);&#xA;     // SUCCESS&#xA;    } else if (ReturnCode.isCancel(returnCode)) {&#xA;     print(&#x27;isCancel $returnCode&#x27;);&#xA;     // CANCEL&#xA;    } else {`enter code here`&#xA;     print(&#x27;Error merging audio files: $returnCode&#x27;);&#xA;     // audioPlayer.play(DeviceFileSource(outputFilePath));&#xA;    }&#xA;  });&#xA;}&#xA;  &#xA;void combineAndPlayAudio() async {&#xA;  List<string> localFilePaths = await copyAssetFilesToStorage();&#xA;  await combineAudio(localFilePaths); //localFilePaths&#xA;&#xA;  // Now you can play the combined audio using an audio player or other methods.&#xA;}&#xA;</string></string></void></string></string></string>

    &#xA;

    So can you please let me know how to combine multiple audio files into single or a way to play multiple audio in sequence ?

    &#xA;