Recherche avancée

Médias (91)

Autres articles (30)

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

  • 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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (5648)

  • DrawText and crossfade effect - ffmpeg

    22 juillet 2018, par Geek

    I have one video with crossfade effect and i want add text on this video (drawtext).
    However when i add a filter text, he remove a crossfade effect in the final video.

    Command to create video with crossfade effect :

    ffmpeg -i first.mp4 -i second.mp4 -filter_complex
       "[0:v]trim=start=0:end=2,setpts=PTS-STARTPTS[0_clip_1];
       [0:v]trim=start=2:end=3,setpts=PTS-STARTPTS[fadeoutsrc_0];
       [fadeoutsrc_0]format=pix_fmts=yuva420p,fade=t=out:st=0:d=1:alpha=1[fadeout_0];
       [fadeout_0]fifo[fadeoutfifo_0];[1:v]trim=start=1,setpts=PTS-STARTPTS[1_clip_2];
       [1:v]trim=start=0:end=1,setpts=PTS-STARTPTS[fadeinsrc_1];
       [fadeinsrc_1]format=pix_fmts=yuva420p,fade=t=in:st=0:d=1:alpha=1[fadein_1];
       [fadein_1]fifo[fadeinfifo_1];
       [fadeoutfifo_0][fadeinfifo_1]overlay[crossfade_1];
       [0_clip_1][crossfade_1][1_clip_2]concat=n=3[output];[0:a][1:a] acrossfade=d=1 [audio]"
    -map "[output]" -map "[audio]" videoWithCrossfade.mp4

    Command to add filter text :

    ffmpeg -i videoWithCrossfade.mp4 -filter_complex
       "/Windows/fonts/arial.ttf':text='hello world!':fontcolor=white:fontsize=40:box=1:boxcolor=red
       @0.5:boxborderw=10:x=500:y=500"
       output.mp4

    this is the link of video : http://www.mediafire.com/file/kw3lvdb2rp1bs6u/videoWithCrossfade.mp4/file
    http://www.mediafire.com/file/iycdzozsqzosq87/output.mp4/file

    Thanks for your help !

  • FFMPEG output to the Exact Folder using Python

    6 août 2021, par Ande Caleb

    i'm working on a simple script using ffmpeg, to reduce the size of a video and add watermark to the video, then move the final output into the compressed folder... this is my script.

    


    the compression works, the watermark works, but the issue i'm having is that the final output is placed in the root folder, and not in the compressed folder... below i my folder structure and my scripts

    


    Folder Structure

    


       rootfolder
    |
    |--media
       |--vids
          |--(video files, mov, mp4s)..
       |--compressed
    |--encode.py


    


    Script (encode.py) file

    


    import os    
import subprocess
from pathlib import Path


dir_path = os.path.dirname(os.path.realpath(__file__))    
vidfile = dir_path + '/media/vids/mv1.mov'    
watermark = dir_path + '/media/watermark.png'
compressed = str(Path.cwd() / '/media/compressed/')

# 1. compress the video and store it in the media out folder

media_out = str(dir_path + "/compressed_mv1s.mov").replace(" ", "\\ ") 
subprocess.run("ffmpeg -i " + vidfile.replace(" ", "\\ ") +
               " -vcodec libx264 -crf 22 " + media_out, shell=True)  

#2.add watermark to the video and move it to the compressed folder 

media_watermarked = str(compressed + '/w_mv1.mov').replace(" ", "\\ ")
subprocess.run("ffmpeg -i " + media_out + " -i " + watermark +
               " -filter_complex \"overlay=main_w-(overlay_w+10) : main_h-(10+overlay_h)\" " + media_watermarked, shell=True)


    


    in summary, compressing the video works, adding watermark works, but the last line, the error is from the media_watermarked variable, i'm not sure what i'm doing wrong but it isn't resolving the folder correctly moving the final output to the folder.. this is the error i get

    


    enter image description here

    


    Also, how can i run two ffmpeg commands concurrently to compress the video and add watermark at once without doing it seperately.
Thanks.

    


  • avcodec : add AV_CODEC_ID_IVTV_VBI

    14 décembre 2024, par Scott Theisen
    avcodec : add AV_CODEC_ID_IVTV_VBI
    

    IVTV, a Linux driver for TV tuners, and V4L2 utilize
    a coding named after IVTV to carry sliced VBI data
    in MPEG streams produced by tuner cards with
    VBI capture capability and an MPEG-2 encoder SoC.

    IVTV or V4L2 driver will transport the coded data into a
    MPEG-PS private stream ("IVTV") that can be captured
    from the card alongside the video/audio.

    The data could include :
    EIA-608, Teletext, WSS (PAL widescreen signaling),
    or VPS (PAL VCR signaling).

    Signed-off-by : Marth64 <marth64@proxyid.net>

    • [DH] doc/APIchanges
    • [DH] libavcodec/codec_desc.c
    • [DH] libavcodec/codec_id.h
    • [DH] libavcodec/version.c