Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (58)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (10509)

  • 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

  • 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 ?
I can get the file from a local file but I couldn't get the video from Firebase Storage.

    



    Part of my code :

    



    if(secondlength >0){
        if (secondlength > secondinterval) {
            final File source = new File(files.get(1));
            //  String filename = "https://firebasestorage.googleapis.com/v0/b/***.appspot.com/o/video_covers%2Fvideo_ornek.mp4?alt=media&token=10c3fa8a-4510-4984-8247-8036fffe18b3";
            //  filesname.add(filename);
            //  final File output = new File(Uri.parse(filename).getPath());
            String filename = String.format(Environment.getExternalStorageDirectory().getAbsolutePath() + "/" + System.currentTimeMillis() + ".mp4");
            filesname.add(filename);
            final File output = new File(filename);
            startTrim(source, output, startsecond, startsecond + secondinterval);
            startsecond = startsecond + secondinterval + .7;
            secondlength = secondlength - secondinterval;
            Log.e("filename2 in 10", "" + filename);
        } else {
            final File source = new File(files.get(1));
            String filename = String.format(Environment.getExternalStorageDirectory().getAbsolutePath() + "/" + System.currentTimeMillis() + ".mp4");
            filesname.add(filename);
            final File output = new File(filename);
            String DownloadUrl = "https://firebasestorage.googleapis.com/v0/b/*****.appspot.com/o/video_covers%2Fvideo_ornek.mp4?alt=media&token=10c3fa8a-4510-4984-8247-8036fffe18b3";
            DownloadManager.Request request1 = new DownloadManager.Request(Uri.parse(DownloadUrl));
            request1.setDescription("Sample Music File");   //appears the same in Notification bar while downloading
            request1.setTitle("File1.mp3");
            request1.setVisibleInDownloadsUi(false);

            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
                request1.allowScanningByMediaScanner();
                request1.setNotificationVisibility(DownloadManager.Request.VISIBILITY_HIDDEN);
            }
            request1.setDestinationInExternalFilesDir(getApplicationContext(), "/File", "Question1.mp4");

            DownloadManager manager1 = (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE);
            Objects.requireNonNull(manager1).enqueue(request1);
            if (DownloadManager.STATUS_SUCCESSFUL == 8) {
                Toast.makeText(AllVideoMerge.this, "success", Toast.LENGTH_SHORT).show();
            }

            startTrim(source, output, startsecond, startsecond + secondlength);
            startsecond = 0;
            secondlength = 0;


            Log.e("filename2", "" + filename);
        }
    }


    


  • 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;