Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (69)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • 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" (...)

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (12754)

  • mp4 audio file trimming form url

    4 juillet 2021, par Masum

    I am using a URL for audio and the file type is mp4 which comes to URL. Now I want to trim this audio in my system was using Media store. If I use existing audio from media store it's working fine. Now my question how I use my URL mp4 audio using this system or another.

    


        Cursor c = mAdapter.getCursor();
    int dataIndex = c.getColumnIndexOrThrow(MediaStore.Audio.Media.DATA);
    String filename = c.getString(dataIndex);
    try {


        Intent intent = new Intent(getApplicationContext(), RingdroidEditActivity.class);
        intent.putExtra("was_get_content_intent", mWasGetContentIntent);
        intent.putExtra("mFileName", Uri.parse(filename).toString());
        startActivity(intent);

    } catch (Exception e) {
        Log.e("Ringdroid", "Couldn't start editor");
    }


    


    How can pass the same way my URL mp4 file ?

    


    Mp4 auddio : Link

    


  • The FFmpeg just show the number form the input text (no characters , just numbers) error=13, Permission denied

    14 avril 2021, par gejivi2011

    I was trying to use FFmpeg to create a video form gif and audio, on Android 10, doesn't work
The code is working fine on android 9 and below, and not work 10 and above
the Cmd, as I mentioned it is work so good on android 9 and below

    


     String[] cmd = new String[24];
    cmd[0] = "-i";
    cmd[1] = audio.getPath();
    cmd[2] = "-ignore_loop";
    cmd[3] = "0";
    cmd[4] = "-i";
    cmd[5] = image_path;
    cmd[6] = "-vf";
    cmd[7] = "scale=trunc(iw/2)*2:trunc(ih/2)*2";
    cmd[8] = "-filter:v";
    cmd[9] = ayat_drawer + qara_draw;
    cmd[10] = "-vcodec";
    cmd[11] = "libx264";
    cmd[12] = "-pix_fmt";
    cmd[13] = "yuv420p";
    cmd[14] = "-r";
    cmd[15] = "25";
    cmd[16] = "-preset";
    cmd[17] = "ultrafast";
    cmd[18] = "-c:a";
    cmd[19] = "aac";
    cmd[20] = "-b:a";
    cmd[21] = "128k";
    cmd[22] = "-shortest";
    cmd[23] = outputLocation.getPath();


    


    The Java code :

    


     FFmpeg mFFmpeg = FFmpeg.getInstance(context);&#xA;        try {&#xA;            mFFmpeg.execute(cmd, new ExecuteBinaryResponseHandler() {&#xA;                @Override&#xA;                public void onProgress(String message) {&#xA;                    super.onProgress(message);&#xA;                    callback.onProgress(message);&#xA;                }&#xA;&#xA;                @Override&#xA;                public void onSuccess(String message) {&#xA;                    super.onSuccess(message);&#xA;                    Utils.refreshGallery(outputLocation.getPath(), context);&#xA;                    callback.onSuccess(outputLocation, "video");&#xA;                }&#xA;&#xA;                @Override&#xA;                public void onFailure(String message) {&#xA;                    super.onFailure(message);&#xA;                    if (outputLocation.exists()) {&#xA;                        outputLocation.delete();&#xA;                    }&#xA;                    callback.onFailure(new IOException(message));&#xA;                }&#xA;&#xA;                @Override&#xA;                public void onStart() {&#xA;                    Log.d("TAG", "<ffmpeg>Started command : mFFmpeg " &#x2B; java.util.Arrays.toString(cmd));&#xA;                }&#xA;&#xA;                @Override&#xA;                public void onFinish() {&#xA;                    Log.d("TAG", "<ffmpeg>Finished command : mFFmpeg " &#x2B; java.util.Arrays.toString(cmd));&#xA;                    super.onFinish();&#xA;                    callback.onFinish();&#xA;                }&#xA;            });&#xA;        } catch (FFmpegCommandAlreadyRunningException e) {&#xA;            Log.e("MAS" , e.getMessage());&#xA;            e.printStackTrace();&#xA;        }&#xA;</ffmpeg></ffmpeg>

    &#xA;

    I think that because FFmpeg using Asynctask and it is deprecated

    &#xA;

  • How to create video file using fs from react form ?

    7 avril 2021, par Kirasiris

    I'm developing a section in which I need to create a video from a form that I'm using in a React application ; the returned data that I get from said file is this :

    &#xA;

    File >&#xA;   lastModified: 1617759553928&#xA;   lastModifiedDate: Tue Apr 06 2021 20:39:13 GMT-0500 (Central Daylight Time) {}&#xA;   name: "Shinobi Sisters.mp4"&#xA;   path: "Shinobi Sisters.mp4"&#xA;   size: 2564227&#xA;   type: "video/mp4"&#xA;   webkitRelativePath: ""&#xA;   __proto__: File&#xA;

    &#xA;

    I'm sending all of that to a function called createDirectoryAndFile(path, file), which so far looks like this :

    &#xA;

    // CREATE VIDEO FILE&#xA;const dir = &#x27;./temp&#x27;;&#xA;const createDirectoryAndFile = async (inputPath, inputContent) => {&#xA;  if (!fs.existsSync(dir)) {&#xA;    fs.mkdir(dir, { recursive: true });&#xA;  }&#xA;&#xA;  fs.writeFile(inputPath, inputContent, (err) => {&#xA;    if (err) {&#xA;      console.error(&#x27;An error ocurred&#x27;, err);&#xA;    } else {&#xA;      console.log(&#x27;Your file has been made&#x27;);&#xA;    }&#xA;  });&#xA;};&#xA;

    &#xA;

    It gets to the point in which is able to create the 'temp' directory but fails to place the video within it. Is there a reason for this ?

    &#xA;

    I need this because this is the starting point for me to work in my application. I'm trying to upload a video, create a second copy of it with a watermark(thanks to ffmpeg and ffprobe) and then finally upload it to AWS S3.

    &#xA;

    From my understanding all of that is only possible if the video is actually exists(not in memory).

    &#xA;

    Do you have guys have any idea ? Yes, I already installed ffmpeg and ffprobe

    &#xA;