Recherche avancée

Médias (3)

Mot : - Tags -/Valkaama

Autres articles (111)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • 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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (10244)

  • avformat/dhav : fix backward scanning for get_duration and optimize seeking

    21 mars, par Justin Ruggles
    avformat/dhav : fix backward scanning for get_duration and optimize seeking
    

    The backwards scanning done for incomplete final packets should not
    assume a specific alignment at the end of the file. Truncated files
    result in hundreds of thousands of seeks if the final packet does not
    fall on a specific byte boundary, which can be extremely slow.
    For example, with HTTP, each backwards seek results in a separate
    HTTP request.

    This changes the scanning to check for the end tag 1 byte at a time
    and buffers the last 1 MiB to avoid additional seek operations.

    Co-authored-by : Derek Buitenhuis <derek.buitenhuis@gmail.com>
    Signed-off-by : Justin Ruggles <justinr@vimeo.com>
    Signed-off-by : Derek Buitenhuis <derek.buitenhuis@gmail.com>

    • [DH] libavformat/dhav.c
  • ProcessBuilder is not called when trying to start a process

    15 juin 2022, par xnok

    I am trying to understand more about the ffmpeg usage in JavaCV for android studio and for said task I am trying to use ProcessBuilder. I tried writting a simple program to debug the pb.start(); Although, I am not getting a response. What I did was to start a default/empty activity and pasted the following program :

    &#xA;

    package com.example.myapplication;&#xA;&#xA;import androidx.annotation.RequiresApi;&#xA;import androidx.appcompat.app.AppCompatActivity;&#xA;import java.io.BufferedReader;&#xA;import java.io.IOException;&#xA;import java.io.InputStreamReader;&#xA;import java.io.OutputStream;&#xA;&#xA;import org.bytedeco.javacpp.Loader;&#xA;&#xA;import android.os.Build;&#xA;import android.os.Bundle;&#xA;import android.util.Log;&#xA;&#xA;public class MainActivity extends AppCompatActivity {&#xA;    static final int cols = 192;&#xA;    static final int rows = 108;&#xA;    static final String ffmpeg = Loader.load(org.bytedeco.ffmpeg.ffmpeg.class);&#xA;    static final String rtmp_url = "test.flv";&#xA;    static final String[] command = {ffmpeg,&#xA;            "-y",&#xA;            "-f", "rawvideo",&#xA;            "-vcodec", "rawvideo",&#xA;            "-pix_fmt", "bgr24",&#xA;            "-s", (Integer.toString(cols) &#x2B; "x" &#x2B; Integer.toString(rows)),&#xA;            "-r", "10",&#xA;            "-i", "pipe:",&#xA;            "-c:v", "libx264",&#xA;            "-pix_fmt", "yuv420p",&#xA;            "-preset", "ultrafast",&#xA;            "-f", "flv",&#xA;            rtmp_url};&#xA;    @RequiresApi(api = Build.VERSION_CODES.O)&#xA;    @Override&#xA;    protected void onCreate(Bundle savedInstanceState) {&#xA;        super.onCreate(savedInstanceState);&#xA;        setContentView(R.layout.activity_main);&#xA;        new Thread(t1).start();&#xA;&#xA;    }&#xA;    private static Runnable t1 = () -> {&#xA;        Log.e("TAG", "void OnCreate called successfully!");&#xA;        ProcessBuilder pb = new ProcessBuilder(command).redirectErrorStream(true);&#xA;        pb.redirectErrorStream(true);&#xA;        try {&#xA;            Process process = pb.start();&#xA;            BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));&#xA;            OutputStream writer = process.getOutputStream();&#xA;            Log.e("TAG", "Something good happened here");&#xA;        } catch (IOException e) {&#xA;            e.printStackTrace();&#xA;            Log.e("TAG", "Nothing good happened here");&#xA;        }&#xA;    };&#xA;&#xA;&#xA;}&#xA;

    &#xA;

    My current problem is that I can't seem to start properly the processBuilder process via pb.start() ;

    &#xA;

    I get the following logs from the logcat panel :

    &#xA;

    2022-06-14 17:24:46.328 13371-13371/com.example.myapplication E/TAG: void OnCreate called successfully!&#xA;2022-06-14 17:24:46.333 13371-13371/com.example.myapplication E/TAG: Nothing good happened here&#xA;

    &#xA;

    I'd like to understand why is it skipping the try/catch block and not starting the process ?

    &#xA;

    EDIT : I made some changes as per @g00se's suggestions and I got the following stack trace from the code above :

    &#xA;

    2022-06-15 00:32:26.700 29787-29787/? E/USNET: USNET: appName: com.example.myapplication&#xA;2022-06-15 00:32:29.328 29787-29828/com.example.myapplication E/TAG: void OnCreate called successfully!&#xA;2022-06-15 00:32:29.330 29787-29828/com.example.myapplication E/AndroidRuntime: FATAL EXCEPTION: Thread-4&#xA;    Process: com.example.myapplication, PID: 29787&#xA;    java.lang.NullPointerException&#xA;        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1012)&#xA;        at com.example.myapplication.MainActivity.lambda$static$0(MainActivity.java:48)&#xA;        at com.example.myapplication.MainActivity$$ExternalSyntheticLambda0.run(Unknown Source:0)&#xA;        at java.lang.Thread.run(Thread.java:920)&#xA;

    &#xA;

  • Anomalie #2751 : conflit d’url propres

    5 juillet 2012, par Alexandre C

    Après nouveau test, oui ça marche. Au final ne rajoutait pas les suffixes id. Re-confirmer les réglages de "configuration d’url" en admin a réglé le problème. Désolé pour le bruit.