Recherche avancée

Médias (91)

Autres articles (75)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

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

Sur d’autres sites (9046)

  • FFmpeg doesn't work on android 10, goes strait to onFailure(String message) with empty message

    18 janvier 2020, par nolanic

    I’m using FFmpeg in one of my projects for video compression. On Android 10 (Google Pixel 3a), it goes straight to onFailure(String message) with empty message for any command sent for execution.

    so I have (api ’com.writingminds:FFmpegAndroid:0.3.2’) specified in my app gradle file,

    permission (android.permission.WRITE_EXTERNAL_STORAGE) in the manifest is specified

    So I do :

    InitializationCallback initializationCallback = new InitializationCallback();
       try {
           FFmpeg.getInstance(context).loadBinary(initializationCallback);
       } catch (FFmpegNotSupportedException e) {
           initializationCallback.onFailure();
           initializationCallback.onFinish();
       }

    Initializes just fine, no problems here.

    Later :

    void getData(File inputFile) {
    //inputFile points to: /storage/emulated/0/Android/data/{package_name}/files/temp_files/temp_1.mp4
           String[] cmd = ("-i " + inputFile.getAbsolutePath()).split(" ");
           try {
               FFmpeg.getInstance(App.instance).execute(cmd, this);
           } catch (FFmpegCommandAlreadyRunningException e) {
               throw new Error(e);
           }
       }

       @Override
       public void onStart() {
            //This method is called
       }

       @Override
       public void onSuccess(String message) {
            //This method is NOT called
            extractAvailableData(message);
       }

       @Override
       public void onProgress(String message) {
           //This method is NOT called
           extractAvailableData(message);
       }

       @Override
       public void onFailure(String message) {
           //This method is called and the message is empty
           extractAvailableData(message);
       }

       @Override
       public void onFinish() {
           //This method is called
       }

    If I do something like :

    String command = "-i ***/file1.mp4 -map 0:v -map 0:a -preset ultrafast -s:v 750:350 ***/file2.mp4";
    //file2.mp4 is a non existent file at this point
    // (***) --> is just a replacement for the full path of the file, just to keep things shorter here.

    String[] cmd = command.split(" ");
           try {
               FFmpeg.getInstance(App.instance).execute(cmd, this);
           } catch (FFmpegCommandAlreadyRunningException e) {
               throw new Error(e);
           }

    gives the same result, no video conversion, just a call to onFailure("Nothing")

    Even if I do :

    String[] cmd = {"-version"};
           try {
               FFmpeg.getInstance(App.instance).execute(cmd, this);
           } catch (FFmpegCommandAlreadyRunningException e) {
               throw new Error(e);
           }

    I get nothing, no output at all.

    I encountered this issue only on Android 10 so far, it works fine on other devices.

  • ffmpeg include issue - some functions are missing

    27 septembre 2019, par Thomas Ayoub

    I try to follow and adapt this example to convert a video thanks to FFMPEG but some function seems to be missing like :

    int avcodec_open ( AVCodecContext * avctx, AVCodec * codec)    

    When I go in the doc to see where it come from, I find it in the file libavcodec/avcodec.h which is included in my program #include "libavcodec/avcodec.h" (in the top of my .h file).

    Given this, I don’t understand why Qt throw me this error :

    ../../Dev/Joker/libs/PhVideo/PhVideoEncoder.cpp:360:6: error: use of undeclared identifier 'avcodec_open'
       if (avcodec_open(c, codec) < 0) {
  • FFmpeg - Check if folder contains a matching filename with 2 different extensions and ignore both files. Process only filenames with 1 extension

    9 septembre 2019, par slyfox1186

    I need to batch convert all mkv files in a folder recursively to mp4.

    If a filename exists and matches both extensions, ignore both files and process only filenames that contain mkv, without matching mp4.

    Example : cat.mkv exists in folder with cat.mp4 = ignore both files

    Example : cat.mkv exists in folder and cat.mp4 does not = process cat.mkv to cat.mp4

    I have included a script that doesn’t work well. It processes all mkv files and mp4 files. The mp4 files throw an error as FFmpeg will not encode the same format in this manner over itself.

    As always thank you to anyone who might have a few ideas.

    UPDATE : I may have gotten it to work. I changed a few things from the original. If anyone has success or an idea to improve I’m all ears. Thanks.

    VERSION 2

    @ECHO ON
    SETLOCAL
    PROMPT $G
    COLOR 0A

    REM Set FFmpeg.exe location if not in system PATH already
    SET FF=C:\MAB\local64\bin-video\ffmpeg.exe

    REM Set MKV files root folder to recursively search
    SET "mkvPATH=C:\Encoding\1_Original\Test\"

    REM Change into mkvPATH DIR
    CD "C:\Encoding\1_Original\Test"

    REM Set temp file name
    SET TEMPFILE=convert_mkv.bat

    REM Create empty convert file
    COPY NUL "%TEMPFILE%" >NUL 2>&1

    REM ADD @ECHO OFF to top of blank convert_mkv.bat script
    ECHO @ECHO OFF >>"%TEMPFILE%"

    REM Recursively search MKV root folder
    FOR /R "%mkvPATH%" %%G IN (*.mkv *.mp4) DO (
       SET "GPATH=%%~fG"
       SET "GNAME=%%~nG"
       SETLOCAL ENABLEDELAYEDEXPANSION

       REM Ignore all files that have both
       REM extensions ".mkv" and ".mp4" in the file name
       IF "%%~nG.mkv"=="%%~nG.mkv" (
           IF NOT EXIST "%%~nG.mp4" (
               CALL :DO_FFmpeg "!GPATH!"
               IF "%%~nG.mkv"=="%%~nG.mkv" (
                   IF EXIST "%%~nG.mp4" (
                       ECHO(>>"%TEMPFILE%"
                   ) ELSE ENDLOCAL
               )
           )
       )
    )
    GOTO END

    REM CALL variables for use in FFmpeg's command line
    :DO_FFmpeg
    IF "%~1"=="" GOTO :END
    FOR %%I IN ("%~1") DO (
       SET "FOLDER=%%~dpI"
       SET "NAME=%%~nxI"
    )

    REM Export info to "%TEMPFILE% and RUN ffmpeg.exe's command line in the cmd.exe window
    ECHO %FF% -y -i "%~1" -ss 0 -t 300 -codec copy "%FOLDER%%~n1.mp4">>"%TEMPFILE%" && %FF% | %FF% -y -i "%~1" -ss 600 -t 30 -codec copy "%FOLDER%%~n1.mp4"

    :END
    PAUSE
    EXIT /B