Recherche avancée

Médias (1)

Mot : - Tags -/vidéo

Autres articles (34)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

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

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (8047)

  • 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