Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (111)

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

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

Sur d’autres sites (6195)

  • How to stream video form device to ingestion server using nodejs

    28 juillet 2021, par rocky

    I'm building a live streaming app (one-to-many) and am using AWS IVS as my ingestion server.

    


    Now, I get the video feed from mediaRecorder api transmits the video using socket.io as a buffer. Now the challenge is to parse the real-time buffers to AWS IVS or any other ingestion server.

    


    I figured that the only way to stream the video is by using ffmpeg and that's where am completely stuck.

    


    Here is my code

    


    // ffmpeg config
const { spawn, exec } = require("child_process");

let ffstr = `-re -stream_loop -1 -i ${input} -r 30 -c:v libx264 -pix_fmt yuv420p -profile:v main -preset veryfast -x264opts "nal-hrd=cbr:no-scenecut" -minrate 3000 -maxrate 3000 -g 60 -c:a aac -b:a 160k -ac 2 -ar 44100 -f flv rtmps://${INGEST_ENDPOINT}:443/app/${STREAM_KEY}`;

let ffmpeg = spawn("ffmpeg", ffstr.split(" "));

// Socket.io
socket.on("binarystream", async (mBuffer) => {
      // TODO: Get the buffer
      // TODO: Ingest/convert to mp4
      // TODO: Stream to IVS

      // TODO: FFMpeg is your best bet
      // console.log(mBuffer);

      ffmpeg.stdin.write(mBuffer);
      
  });


    


    PS : Even if you don't have the direct answers I'm available for discussion

    


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