Recherche avancée

Médias (91)

Autres articles (37)

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

  • Emballe Médias : Mettre en ligne simplement des documents

    29 octobre 2010, par

    Le plugin emballe médias a été développé principalement pour la distribution mediaSPIP mais est également utilisé dans d’autres projets proches comme géodiversité par exemple. Plugins nécessaires et compatibles
    Pour fonctionner ce plugin nécessite que d’autres plugins soient installés : CFG Saisies SPIP Bonux Diogène swfupload jqueryui
    D’autres plugins peuvent être utilisés en complément afin d’améliorer ses capacités : Ancres douces Légendes photo_infos spipmotion (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (2410)

  • How to use Jaffree with Spring Boot for streaming a RTSP flow

    25 août 2022, par Jmarchi

    Im trying to build a APIRest and one of the things i want to do is recirculate the rtsp video provided by some security cameras to the frontend.

    


    I have found the Jaffree, a dependency that integrates the ffmpeg into spring, until then all is good.

    


    The problem is when i try to send the video to the frontend (make in React) i recieve this error :

    


    


    Starting process : ffmpeg

    


    Waiting for process to finish

    


    ...

    


    Input #0, mpjpeg, from __________

    


    Duration : N/A, bitrate : N/A

    


    Stream #0:0 : Video : mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn

    


    [warning] Codec AVOption b (set bitrate (in bits/s)) specified for output file #0 (tcp ://127.0.0.1:52225) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.

    


    Output #0, ismv, to 'tcp ://127.0.0.1:52225' :

    


    Metadata :

    


    encoder : Lavf59.27.100

    


    Stream #0:0 : Video : mjpeg (Baseline) (mp4v / 0x7634706D), yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 tbr, 10000k tbn

    


    Stream mapping :

    


    Stream #0:0 -> #0:0 (copy)

    


    frame= 21 fps=7.2 q=-1.0 size= 252kB time=00:00:00.80 bitrate=2580.9kbits/s speed=0.275x

    


    ...

    


     : Interrupting starter thread (task-1) because of exception : TCP negotiation failed

    


    


    The code in the backend is this :

    


    @GetMapping(value = "/{id}/video")&#xA;public ResponseEntity<streamingresponsebody> getVideo() {&#xA;        String url = "**********";&#xA;&#xA;        return ResponseEntity.ok()&#xA;                .contentType(MediaType.APPLICATION_OCTET_STREAM)&#xA;                .body(os ->{&#xA;                    FFmpeg.atPath()&#xA;                            .addArgument("-re")&#xA;                            .addArguments("-acodec", "pcm_s16le")&#xA;                            // .addArguments("-rtsp_transport", "tcp")&#xA;                            .addArguments("-i", url)&#xA;                            .addArguments("-vcodec", "copy")&#xA;                            .addArguments("-af", "asetrate=22050")&#xA;                            .addArguments("-acodec", "aac")&#xA;                            .addArguments("-b:a", "96k" )&#xA;                            .addOutput(PipeOutput.pumpTo(os)&#xA;                                    .disableStream(StreamType.AUDIO)&#xA;                                    .disableStream(StreamType.SUBTITLE)&#xA;                                    .disableStream(StreamType.DATA)&#xA;                                    .setFrameCount(StreamType.VIDEO, 100L)&#xA;                                     //1 frame every 10 seconds&#xA;                                    .setFrameRate(0.1)&#xA;                                    .setDuration(1, TimeUnit.HOURS)&#xA;                                    .setFormat("ismv"))&#xA;                            .addArgument("-nostdin")&#xA;                            .execute();&#xA;                });&#xA;    }&#xA;</streamingresponsebody>

    &#xA;

    And this is the html part :

    &#xA;

    <video width="100%" height="auto" controls="controls" autoplay="autoplay" muted="muted" src="http://localhost:7500/***/1/video">&#xA;                Sorry, your browser doesn&#x27;t support embedded videos.&#xA;            </video>&#xA;

    &#xA;

    What is it missing for the TCP negotiation ?

    &#xA;

  • Revision 29953 : Hop première version utilisable de la version 0.2 du plugin ... Au menu : ...

    18 juillet 2009, par kent1@… — Log

    Hop première version utilisable de la version 0.2 du plugin ...
    Au menu :
    - Possibilité de comptabiliser les pages de l’espace privé si sélectionné dans la config
    - Deux types d’insertion dans l’espace public :
    - Par pipeline (ne permettant pas de configuration avancée car le pipeline insert_head est mis en cache)
    - Par balise #PIWIK mise dans les squelettes (inc-pied semble le meilleur choix) permettant de filtrer les auteurs (voir la suite)
    - Possibilité de filtrer (enlever du comptage) les utilisateurs (s’ils sont connectés) par statut ou par id_auteur (dans l’espace privé ou dans le public)
    - On utilise les saisies du plugin saisies pour générer la configuration

  • Concatenate / Join MP4 files using ffmpeg and windows command line batch NOT LINUX

    10 septembre 2022, par julesverne

    I've written a batch script that attempts to take a generic introductory title video (MP4) that runs for 12 seconds and attaches it to the beginning of 4 other MP4 videos (same video but each has a different language audio track)

    &#xA;&#xA;

    According to ffmpeg syntax here : http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20concatenate%20%28join,%20merge%29%20media%20files the concat demuxer needs to be run from a text file that looks like this :

    &#xA;&#xA;

    # this is a comment&#xA;file &#x27;/path/to/file1&#x27;&#xA;file &#x27;/path/to/file2&#x27;&#xA;file &#x27;/path/to/file3&#x27;&#xA;

    &#xA;&#xA;

    I believe everything in my script up until the point of joining the files appears to be working correctly. But I get this error :

    &#xA;&#xA;

    [concat @ 04177d00] Line 2: unknown keyword &#x27;&#x27;C:\Users\Joe\1May\session3\readyforfinalconversion\frenchfile.mp4&#x27;&#xA;filelistFrench.txt: Invalid data found when processing input&#xA;[concat @ 03b70a80] Line 2: unknown keyword &#x27;&#x27;C:\Users\Joe\1May\session3\readyforfinalconversion\spanishfile.mp4&#x27;&#xA;filelistSpanish.txt: Invalid data found when processing input&#xA;[concat @ 0211b960] Line 2: unknown keyword &#x27;&#x27;C:\Users\Joe\1May\session3\readyforfinalconversion\basquefile.mp4&#x27;&#xA;filelistBasque.txt: Invalid data found when processing input&#xA;[concat @ 03a20a80] Line 2: unknown keyword &#x27;&#x27;C:\Users\Joe\1May\session3\readyforfinalconversion\Englishfile.mp4&#x27;&#xA;filelistEnglish.txt: Invalid data found when processing input&#xA;

    &#xA;&#xA;

    I believe the issue lies in the text file I'm creating. Please excuse my n00b ignorance, but sometimes new script makers like myself get confused about developer jargon and may take things literally.

    &#xA;&#xA;

    So when I look at that example text file they gave, am I correct in thinking THIS is what my text file should look like ?

    &#xA;&#xA;

    # this is a comment&#xA;Titlefile.mp4 &#x27;C:\Users\Joe\1May\session3\readyforfinalconversion\Titlefile.mp4&#x27;&#xA;Englishfile.mp4 &#x27;C:\Users\Joe\1May\session3\readyforfinalconversion\Englishfile.mp4&#x27;&#xA;

    &#xA;&#xA;

    Again, am I being too literal ? are the quotations correct ? Are the slashes correct ? In the example they provide the slashes in the path are / instead of normal windows \ . I'll provide the entire script in case it helps.

    &#xA;&#xA;

    @echo off&#xA;&#xA;setlocal EnableDelayedExpansion&#xA;&#xA;rem Create an array of languages&#xA;set i=0&#xA;for %%a in (French Spanish Basque English) do (&#xA;   set /A i&#x2B;=1&#xA;   set term[!i!]=%%a&#xA;)&#xA;&#xA;rem Get the title video file name from user&#xA;&#xA;set /p titlevideofilename=What is the title video file &#xA;&#xA;name?&#xA;&#xA;rem create a path variable for the title video file&#xA;&#xA;set pathtotitlevideo=%~dp0%titlevideofilename%&#xA;&#xA;rem Get the names of the different language video files to append to the title video&#xA;rem create a path variable for each different language video files&#xA;&#xA;for /L %%i in (1,1,4) do (&#xA;   set /p language[%%i]=what is the name of the !term&#xA;&#xA;[%%i]! file you want to append after the title video?&#xA;   set pathtofile[%%i]=%~dp0!language[%%i]!&#xA;)&#xA;&#xA;rem create data file for ffmpeg based on variable data&#xA;&#xA;for /L %%i in (1,1,4) do (&#xA;    echo # this is a comment>>filelist!term[%&#xA;&#xA;%i]!.txt&#xA;    echo file &#x27;%pathtotitlevideo%&#x27;>>filelist!term[%&#xA;&#xA;%i]!.txt&#xA;    echo file &#x27;!pathtofile[%%i]!&#x27;>>filelist!term[%&#xA;&#xA;%i]!.txt&#xA;)&#xA;&#xA;cls&#xA;&#xA;rem join files using ffmpeg concat option&#xA;&#xA;for /L %%i in (1,1,4) do (&#xA;   c:\ffmpeg\ffmpeg\bin\ffmpeg.exe -loglevel error -f &#xA;&#xA;concat -i filelist!term[%%i]!.txt -c copy !language[%&#xA;&#xA;%i]!.!term[%%i]!.withtitle.mp4&#xA;)&#xA;&#xA;endlocal&#xA;&#xA;:eof&#xA;exit&#xA;

    &#xA;&#xA;

    EDIT
    &#xA;Thanks to @foxidrive making me look at the simplicity of it... it occurred to me that Apparently I wasn't being literal enough. I made these 3 changes and script works perfectly now&#xA;1 : "file" in there example literally meant the word "file" &#xA;2 : needed the use of single quotes not double quotes as it shows in there example. &#xA;3 : Used "\" instead of "/" as they have in there example.

    &#xA;&#xA;

    So NOW my code to create the text files looks like this :

    &#xA;&#xA;

    rem create data file for ffmpeg based on variable data&#xA;&#xA;for /L %%i in (1,1,4) do (&#xA;    echo # this is a comment>>filelist!term[%&#xA;&#xA;%i]!.txt&#xA;    echo file &#x27;%pathtotitlevideo%&#x27;>>filelist!term[%&#xA;&#xA;%i]!.txt&#xA;    echo file &#x27;!pathtofile[%%i]!&#x27;>>filelist!term[%&#xA;&#xA;%i]!.txt&#xA;)&#xA;

    &#xA;&#xA;

    So NOW my text file looks like this :

    &#xA;&#xA;

    # this is a comment    &#xA;file &#x27;C:\Users\Joe\1May\session3\readyforfinalconversion\Titlefile.mp4&#x27;&#xA;file &#x27;C:\Users\Joe\1May\session3\readyforfinalconversion\Englishfile.mp4&#x27;&#xA;

    &#xA;