Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (66)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

Sur d’autres sites (7803)

  • FFMPEG- how to set presentation timestamp of a second video while merging a second video side-by-side with a first video

    14 octobre 2020, par Sankalpa Sarkar

    I was trying to merge a second video into a first video, side-by-side in a stacked fashion as a self-interest work. The twist is the video is a recording of a video call, where a second user might join at a later stage than the first user. The cumulative recording of the video call must reflect that the second user joins at a later stage than the first user. For this, I am using this code :

    


    DIFF=$(($start_ts-$BASEts))
DIFFms=`echo "scale=0;$DIFF/1000" | bc`
DIFFs=`echo "scale=4;$DIFF/1000000" | bc`
ffmpeg -i $a.webm -i b.webm -filter_complex \
    "[0]pad=2*iw:1*ih[l];[1]setpts=PTS-STARTPTS+$DIFFs/TB[1v]; [l][1v]overlay=x=W/2[v]; \
    [1]adelay=$DIFFms|$DIFFms[1a]; \
    [0][1a]amix=inputs=2[a]" \
    -map "[v]" -map "[a]" -vcodec libvpx -cpu-used -5 -deadline realtime finalOutput.webm


    


    However, the error being thrown here is :

    


    [Parsed_setpts_1 @ 0x55ada9df1dc0] [Eval @ 0x7ffff35acb60] Undefined constant or missing '(' in '/TB'
[Parsed_setpts_1 @ 0x55ada9df1dc0] Error while parsing expression 'PTS-STARTPTS+/TB'
[AVFilterGraph @ 0x55ada9d6c2a0] Error initializing filter 'setpts' with args 'PTS-STARTPTS+/TB'
Error initializing complex filters.
Invalid argument


    


    It is unable to read the $DIFFs variable at all, is what I figured. Can anybody help me out here ?

    


  • Overlay a video and an image over a background video and shift that background video's position to the right

    4 août 2023, par sybr

    I'm currently working on a way to improve my production process for the videos that I'm making. I usually edit videos using two folders full of clips. Being able to automate putting these together in Premiere would save me a lot of time.

    


    I'm using the FFMpegCORE C# library, as well as Xabe.FFMpeg to achieve what I'm trying to do, and I've currently reached the point of creating two separate videos using the clips I mentioned earlier.

    


    The final step that I need to solve is to overlay the overlay video (overlay.mp4) over the background video (background.mp4), add an overlay image to add a clean divider (overlay.png) between the edges of the videos, and to somehow shift the position of the background video 33% to the right (background.mp4).

    


    This is the script I've come up with so far :

    


    ffmpeg -i overlay.mp4 -i background.mp4 -i overlay.png -filter_complex \ 
"[1:v]scale=608:1080[a]; [0:v]pad=1920:1080[b]; [b][a]overlay[out]; \
[out][2:v]overlay[out]; [0][1]amix[a];" \
-map [out] -map [a] -c:v libx264 -crf 30 -pix_fmt yuv420p -y output.mp4


    


    Is there a way to shift the background video to the right ? Or should I manually edit the video files ?

    


    Would love some help here, also eager to learn more about FFmpeg, so some explanation would be highly appreciated !

    


    Edit :

    


    Just found the solution, padding the background video for 33% and then cropping the final out back to 1920x1080 seemed to do the trick !

    


    ffmpeg -i overlay.mp4 -i background.mp4 -i overlay.png -filter_complex "[1:v]scale=608:1080[a]; [0:v]pad=2560:0:x=1920:y=1080[b]; [b][a]overlay[out]; [out][2:v]overlay[out]; [out]crop=1920:1080:0:0[out]; [0][1]amix[a];" -map [out] -map [a] -c:v libx264 -crf 30 -pix_fmt yuv420p -y output.mp4


    


  • Play video overlay over video not working in ffmpeg

    24 décembre 2017, par Sumit Marwha

    I am trying to play video over another video using ffmpeg. When i am trying to play video from starting then overlay video plays. But if i try to overlay video from n seconds it doesn’t work

    ffmpeg -i input.mp4 -i overlay.mp4
    -filter_complex [1:v]scale=920:920[out],[out][0]overlay=0:0:enable='between(t\,4\,8)'[out]
    -map [out] output.mp4

    If i change between(t\,4\,8) to between(t\,0\,4) then overlay video works normally. It is not working for between(t\,4\,8). Please help how to solve it