Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (53)

  • Formulaire personnalisable

    21 juin 2013, par

    Cette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
    Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire. (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Qu’est ce qu’un masque de formulaire

    13 juin 2013, par

    Un masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
    Chaque formulaire de publication d’objet peut donc être personnalisé.
    Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
    Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)

Sur d’autres sites (11229)

  • Trim Audio Flutter ( ffmpeg_kit_flutter Package) Not Working

    23 septembre 2024, par Sharath Appesh

    Audio Trim is not working

    


    Flutter Version : 3.0.2
Dart : 2.17.3

    


    Package used :
ffmpeg_kit_flutter : ^4.5.1

    


    Input file path :
"/data/user/0/com.goonetech.v1.gofinal/cache/file_picker/sample-15s.mp3"

    


    Output file path :
"/data/user/0/com.goonetech.v1.gofinal/app_flutter/output.mp3"

    


    &#xA;double start=2, &#xA;double end=5;&#xA;&#xA;String path="/data/user/0/com.goonetech.v1.gofinal/cache/file_picker/sample-15s.mp3"&#xA;&#xA;&#xA;    static Future<string> cutAudio(String path, double start, double end) async {&#xA;    final Directory dir = await getApplicationDocumentsDirectory();&#xA;    final outPath = "${dir.path}/output.mp3";&#xA;    double start = 1;&#xA;    double end = 5;&#xA;&#xA;    try &#xA;{&#xA;      await File(outPath).delete();&#xA;    } catch (e) {&#xA;      print("Delete Error");&#xA;    }&#xA;&#xA;    var cmd =&#xA;        "-y -i \"$path\" -vn -ss $start -to $end -ar 16k -ac 2 -b:a 96k -acodec libmp3lame $outPath";&#xA;&#xA;    FFmpegKit.executeAsync(cmd, (session) async {&#xA;      final returnCode = await session.getReturnCode();&#xA;      print("returnCode $returnCode");&#xA;    });&#xA;&#xA;    return outPath;&#xA;  }&#xA;&#xA;</string>

    &#xA;

    The output is :&#xA;returnCode 1

    &#xA;

    The output path does not have the file (File not found exception)

    &#xA;

  • How to merge two videos from Firebase Database and local file ? [closed]

    2 avril 2020, par i i

    I need to merge two videos from a local file and Firebase Storage. How can I solve it ?&#xA;I can get the file from a local file but I couldn't get the video from Firebase Storage.

    &#xA;&#xA;

    Part of my code :

    &#xA;&#xA;

    if(secondlength >0){&#xA;        if (secondlength > secondinterval) {&#xA;            final File source = new File(files.get(1));&#xA;            //  String filename = "https://firebasestorage.googleapis.com/v0/b/***.appspot.com/o/video_covers%2Fvideo_ornek.mp4?alt=media&amp;token=10c3fa8a-4510-4984-8247-8036fffe18b3";&#xA;            //  filesname.add(filename);&#xA;            //  final File output = new File(Uri.parse(filename).getPath());&#xA;            String filename = String.format(Environment.getExternalStorageDirectory().getAbsolutePath() &#x2B; "/" &#x2B; System.currentTimeMillis() &#x2B; ".mp4");&#xA;            filesname.add(filename);&#xA;            final File output = new File(filename);&#xA;            startTrim(source, output, startsecond, startsecond &#x2B; secondinterval);&#xA;            startsecond = startsecond &#x2B; secondinterval &#x2B; .7;&#xA;            secondlength = secondlength - secondinterval;&#xA;            Log.e("filename2 in 10", "" &#x2B; filename);&#xA;        } else {&#xA;            final File source = new File(files.get(1));&#xA;            String filename = String.format(Environment.getExternalStorageDirectory().getAbsolutePath() &#x2B; "/" &#x2B; System.currentTimeMillis() &#x2B; ".mp4");&#xA;            filesname.add(filename);&#xA;            final File output = new File(filename);&#xA;            String DownloadUrl = "https://firebasestorage.googleapis.com/v0/b/*****.appspot.com/o/video_covers%2Fvideo_ornek.mp4?alt=media&amp;token=10c3fa8a-4510-4984-8247-8036fffe18b3";&#xA;            DownloadManager.Request request1 = new DownloadManager.Request(Uri.parse(DownloadUrl));&#xA;            request1.setDescription("Sample Music File");   //appears the same in Notification bar while downloading&#xA;            request1.setTitle("File1.mp3");&#xA;            request1.setVisibleInDownloadsUi(false);&#xA;&#xA;            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {&#xA;                request1.allowScanningByMediaScanner();&#xA;                request1.setNotificationVisibility(DownloadManager.Request.VISIBILITY_HIDDEN);&#xA;            }&#xA;            request1.setDestinationInExternalFilesDir(getApplicationContext(), "/File", "Question1.mp4");&#xA;&#xA;            DownloadManager manager1 = (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE);&#xA;            Objects.requireNonNull(manager1).enqueue(request1);&#xA;            if (DownloadManager.STATUS_SUCCESSFUL == 8) {&#xA;                Toast.makeText(AllVideoMerge.this, "success", Toast.LENGTH_SHORT).show();&#xA;            }&#xA;&#xA;            startTrim(source, output, startsecond, startsecond &#x2B; secondlength);&#xA;            startsecond = 0;&#xA;            secondlength = 0;&#xA;&#xA;&#xA;            Log.e("filename2", "" &#x2B; filename);&#xA;        }&#xA;    }&#xA;

    &#xA;

  • Is it possible for me to put a mask over a transparent image with ffmpeg ?

    14 juin 2019, par Pedro Valle

    I’m trying to make an overlay with a mask over a transparent image with ffmpeg, but the background of the image that gets the mask turns black, is there any way to make this background remain transparent ?

    ffmpeg -i background.jpg -loop 1 -i image.png -loop 1 -i mask.png -filter_complex [0]setpts=PTS-STARTPTS,scale=720:720[background];[2]alphaextract,scale=640x320[mask];[1]scale=640x320[image];[image][mask]alphamerge[final_mask];[background][final_mask]overlay=100:100[final] -map [final] -t 00:00:05.000 -y result.mp4
    result