Recherche avancée

Médias (1)

Mot : - Tags -/vidéo

Autres articles (60)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

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

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

Sur d’autres sites (8538)

  • avcodec/tiff_data : Avoid relocations for TiffGeoTagNameType

    9 mars 2024, par Andreas Rheinhardt
    avcodec/tiff_data : Avoid relocations for TiffGeoTagNameType
    

    Instead store all the strings in one continugous string
    (with internal \0) and use offsets to access the actual
    substrings. This replaces the pointers to the strings
    and therefore avoids relocations (and on x64, it actually
    shrinks TiffGeoTagNameType by reusing padding to store
    the offset field).

    This saves 720B of .data.rel.ro and 1080B of .rela.dyn
    (containing the relocation records) here while increasing
    .rodata by 384B.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/tiff.c
    • [DH] libavcodec/tiff.h
    • [DH] libavcodec/tiff_data.h
  • how to copy mp4 file generated by FFMPEG spawn using another FFMPEG spawn

    2 mai 2021, par Abadi

    I am using the following code that records screen on Linux and the output is an mp4 file.

    &#xA;

    const transcodeStreamToOutput = spawn(&#x27;ffmpeg&#x27;,[&#xA;&#x27;-hide_banner&#x27;,&#xA;&#x27;-loglevel&#x27;, &#x27;error&#x27;,&#xA;// disable interaction via stdin&#xA;&#x27;-nostdin&#x27;,&#xA;// screen image size&#xA;&#x27;-s&#x27;, `${BROWSER_SCREEN_WIDTH}x${BROWSER_SCREEN_HEIGHT}`,&#xA;// video frame rate&#xA;&#x27;-r&#x27;, `${VIDEO_FRAMERATE}`,&#xA;// hides the mouse cursor from the resulting video&#xA;&#x27;-draw_mouse&#x27;, &#x27;0&#x27;,&#xA;// grab the x11 display as video input&#xA;&#x27;-f&#x27;, &#x27;x11grab&#x27;,&#xA;    &#x27;-i&#x27;, `${DISPLAY}`,&#xA;// grab pulse as audio input&#xA;&#x27;-f&#x27;, &#x27;pulse&#x27;,&#xA;    &#x27;-ac&#x27;, &#x27;2&#x27;,&#xA;    &#x27;-i&#x27;, &#x27;default&#x27;,&#xA;// codec video with libx264&#xA;&#x27;-c:v&#x27;, &#x27;libx264&#x27;,&#xA;    &#x27;-pix_fmt&#x27;, &#x27;yuv420p&#x27;,&#xA;    &#x27;-profile:v&#x27;, &#x27;main&#x27;,&#xA;    &#x27;-preset&#x27;, &#x27;veryfast&#x27;,&#xA;    &#x27;-x264opts&#x27;, &#x27;nal-hrd=cbr:no-scenecut&#x27;,&#xA;    &#x27;-minrate&#x27;, `${VIDEO_BITRATE}`,&#xA;    &#x27;-maxrate&#x27;, `${VIDEO_BITRATE}`,&#xA;    &#x27;-g&#x27;, `${VIDEO_GOP}`,&#xA;// apply a fixed delay to the audio stream in order to synchronize it with the video stream&#xA;&#x27;-filter_complex&#x27;, &#x27;adelay=delays=1000|1000&#x27;,&#xA;// codec audio with aac&#xA;&#x27;-c:a&#x27;, &#x27;aac&#x27;,&#xA;    &#x27;-b:a&#x27;, `${AUDIO_BITRATE}`,&#xA;    &#x27;-ac&#x27;, `${AUDIO_CHANNELS}`,&#xA;    &#x27;-ar&#x27;, `${AUDIO_SAMPLERATE}`,&#xA;// adjust fragmentation to prevent seeking(resolve issue: muxer does not support non seekable output)&#xA;&#x27;-movflags&#x27;, &#x27;frag_keyframe&#x2B;empty_moov&#x27;,&#xA;// set output format to mp4 and output file to stdout&#xA;&#x27;-f&#x27;, &#x27;mp4&#x27;, &#x27;-&#x27;&#xA;]&#xA;

    &#xA;

    ) ;

    &#xA;

    I need to run ffmpeg -i captured.mp4 -c copy new.mp4 using another spawn process on the output.&#xA;I tried the following :

    &#xA;

    const newStdOut =  spawn(&#x27;ffmpeg&#x27;,[&#xA;&#xA;    &#x27;-i&#x27;, `${transcodeStreamToOutput.stdout}`, &#xA;    &#x27;-codec:v&#x27;, &#x27;copy&#x27;, &#xA;    &#x27;-codec:a&#x27;, &#x27;copy&#x27;, &#xA;    &#x27;-f&#x27;, &#x27;mp4&#x27;, &#x27;-&#x27;&#xA;    ]&#xA;);&#xA;

    &#xA;

    But it is not working. I would appreciate any help.

    &#xA;

  • ffmpeg record before and after applying filters

    7 mai 2019, par Mark

    I’m trying to use ffmpeg to do the following things :

    • acquire input streaming [OK]
    • save to disk the video as is [TODO]
    • apply filter, i.e. drawtext [OK]
    • save to disk the overlayed video [OK]
    • preview the overlayed video [OK]

    Here my current command line :

    ffmpeg -rtsp_transport tcp -i  -vf "[in]drawtext=textfile='text.txt': reload=1: font=arial: fontcolor=red: fontsize=80: box=1: boxcolor=yellow@0.5: boxborderw=5: x=(w-text_w)/2: y=(h-text_h)/2[out]" -vcodec libx264 -f tee -map 0:v "[f=mp4]test.mp4|[f=nut]pipe:" | ffplay pipe:

    The only thing I don’t understand how to do is the recording of the video before drawtext. I guess I have to create another tee :

    INPUT ---> TEE ---->RECORD
                   |
                   |-->FILTERS---> TEE ---->RECORD
                                        |
                                        |-->PLAY

    So I tried with this cumbersome command :

    ffmpeg -rtsp_transport tcp -i  -vcodec libx264 -f tee -map 0:v "[f=mp4]before.mp4|[f=nut]pipe:" | ffmpeg -f mp4 -i pipe: -vf "[in]drawtext=textfile='text.txt': reload=1: font=arial: fontcolor=red: fontsize=80: box=1: boxcolor=yellow@0.5: boxborderw=5: x=(w-text_w)/2: y=(h-text_h)/2[out]" -vcodec libx264 -f tee -map 0:v "[f=mp4]after.mp4|[f=nut]pipe:" | ffplay pipe:

    It doesn’t throw errors, records "before.mp4" but neither "after.mp4" nor the preview are working. Surely I forgot something in the syntax.