Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (103)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (10041)

  • How to upload and overlay animation.html file from system and overlay over video in HTML or ANGULAR

    23 septembre 2020, par Hiren

    Hey I am trying to build an app which has a functionality of allowing a user to upload a pre-existing .HTML file from his system which contains a simple animation init

    


    I want to get that file and overlay the animation contained in .HTML file on my video and display it to the user.

    


    is that possible please help me if it is.

    


    

    

    body {
  background: #;
}

#fullScreenBox {
  height: 500px;
  width: 50%;
  background: #;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

#hiddenBox {
  width: 50%;
  height: 500px;
  background: #;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  overflow: hidden;
}

#title {
  width: 100%;
  height: 150px;
  background: #;
  /*U can also use #*/
  position: absolute;
  top: 200px;
  font-family: arial;
  font-size: 50px;
  color: white;
  text-align: center;
  opacity: 0;
}

#subtitle {
  width: 100%;
  height: 50px;
  background: #;
  /*U can also use #*/
  position: absolute;
  top: 300px;
  font-family: arial;
  font-size: 50px;
  color: red;
  text-align: center;
  opacity: 0;
}

#line01 {
  width: 25%;
  height: 4px;
  background: white;
  /*U can also use #*/
  position: absolute;
  top: 50px;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  color: white;
  opacity: 0;
}

#overlay {
  position: absolute;
  color: #FFF;
  text-align: center;
  font-size: 20px;
  padding: 10px 0;
  width: 50%;
  height: 500px;
  background: #;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

#v {
  height: 500px;
  width: 100%;
}

    


    &#xA;&#xA;  <div>&#xA;    <div class="">&#xA;      <div class="webvfx" data-animate="&#x27;{&#xA;">&#xA;        LONDON&#xA;      </div>&#xA;      <div class="webvfx" data-animate="&#x27;{&#xA;">&#xA;&#xA;      </div>&#xA;&#xA;      <div class="webvfx" data-animate="&#x27;{&#xA;">&#xA;        City of Dreams!&#xA;      </div>&#xA;    </div>&#xA;</div>

    &#xD;&#xA;

    &#xD;&#xA;

    &#xD;&#xA;&#xA;

    This is my HTML file that contains a simple animation for example which is in user system

    &#xA;

    In my application when user upload this file i want to overlay the animation contained in this file on the video as he uploads it is these any way&#xA;Thank you

    &#xA;

  • How can I add a random watermark to a video during processing in Node.js and Express.js using FFmpeg ?

    3 avril 2023, par Ariful islam

    I want to add a watermark to a video that changes randomly during processing. I am using Node.js and Express.js with FFmpeg. Currently, I am able to add a static watermark to the video using the drawtext filter. However, I want to change the watermark text randomly every few seconds.

    &#xA;

    How can I achieve this using FFmpeg in my Node.js and Express.js app ? Here's my current code :

    &#xA;

    const email = &#x27;name@gmail.com&#x27;;&#xA;app.post(&#x27;/addwatermark&#x27;, upload.single(&#x27;video&#x27;), (req, res) => {&#xA;const fileName = path.basename(req.file.path) &#x2B; &#x27;.mp4&#x27;;&#xA;const outputPath = `public/reduceSize/${fileName}`;&#xA;const outputPathWithWatermark = `public/reduceSize/${fileName}-wm.mp4`;&#xA;let watermarkPosition = { x: 10, y: 650 };&#xA;&#xA;// Create the directory if it doesn&#x27;t exist&#xA;const outputDir = path.dirname(outputPathWithWatermark);&#xA;if (!fs.existsSync(outputDir)) {&#xA;    fs.mkdirSync(outputDir, { recursive: true });&#xA;}&#xA;&#xA;// Send a comment to keep the connection alive&#xA;res.write(&#x27;: ping\n\n&#x27;);&#xA;&#xA;// Function to randomly generate watermark position&#xA;const changeWatermarkPosition = () => {&#xA;    watermarkPosition = { x: Math.floor(Math.random() * 100), y: Math.floor(Math.random() * 100) };&#xA;};&#xA;&#xA;// Change watermark position every 5 seconds &#xA;setInterval(changeWatermarkPosition, 5000);&#xA;const watermarkStyle = `-vf drawtext=text=&#x27;${email}&#x27;:x=(w-text_w-10):y=(h-text_h-10):fontcolor=white:fontsize=24:shadowcolor=black:shadowx=1:shadowy=1:box=1:y=${watermarkPosition.y}:fontcolor=red:fontsize=24:shadowcolor=black:shadowx=1:shadowy=1:box=1:boxcolor=black@0.5`&#xA;&#xA;ffmpeg(req.file.path)&#xA;    .addOption(watermarkStyle)&#xA;    .output(outputPathWithWatermark)&#xA;    .videoCodec(&#x27;libx264&#x27;)&#xA;    .audioCodec(&#x27;aac&#x27;)&#xA;    .size(&#x27;50%&#x27;)&#xA;    .on(&#x27;error&#x27;, (err) => {&#xA;        console.error(`FFmpeg error: ${err.message}`);&#xA;        res.status(500).json({ message: err.message });&#xA;    })&#xA;    .on(&#x27;progress&#x27;, (progress) => {&#xA;        // Set the watermark position every 5 seconds randomly&#xA;        changeWatermarkPosition();&#xA;&#xA;        const mb = progress.targetSize / 1024;&#xA;        const data = {&#xA;            message: `Processing: ${mb.toFixed(2)} MB converted`,&#xA;            watermark: `Adding watermark to video: ${progress.framesProcessed} frames processed`&#xA;        };&#xA;        console.log(data.message);&#xA;        res.write(`data: ${JSON.stringify(data)}\n\n`);&#xA;&#xA;    })&#xA;    .on(&#x27;end&#x27;, () => {&#xA;        console.log(`Video successfully converted to ${outputPathWithWatermark}`);&#xA;        // Remove the temporary file&#xA;    })&#xA;    .run();&#xA; });&#xA;

    &#xA;

    I want to secure my video from unauthorized person by using email in a video and the email will be move around the video randomly every 5 seconds.

    &#xA;

    I have read this (Add dynamic watermark that randomly changes position over video React/Node) document but didn't get any solution.

    &#xA;

  • Can not add images after add background to audio

    16 mars 2017, par Thanh Dao

    I use below command to concat background to an audio file :

    "ffmpeg" -i /path/to/image.png -i /path/to/audio.mp3 -vsync vfr -pix_fmt yuv420p /path/to/video-1.mp4 2>&amp;1

    Next, I use that command to add other images to created video :

    "ffmpeg" -f concat -safe 0 -i /path/to/text.txt -i /path/to/video-1.mp4 /path/to/video-2.mp4 2>&amp;1

    Content of my text.txt file :

    /path/to/img1.jpg
    duration 6
    /path/to/img2.jpg
    duration 6
    /path/to/img3.jpg
    duration 6
    /path/to/img4.jpg
    duration 6

    Obtained video display only background image. Other images have not been shown.

    What are my wrong in these commands ? And how to set the display position of other images in video ? To display images by position, I use below command, but after it ran, my machine was crashed :

    "ffmpeg" -f concat -safe 0 -i /path/to/text.txt -i /path/to/video-1.mp4 -filter_complex "overlay=0:0, scale=640:640" /path/to/video-2.mp4 2>&amp;1

    Update :

    I do follow order by below steps and got video with text and images, but the position is incorrect. I can’t find any solution for custom :

    "ffmpeg" -f concat -safe 0 -i /path/to/text.txt -i /path/to/audio.mp3 -vsync vfr -pix_fmt yuv420p /path/to/tmp-video-1.mp4 2>&amp;1

    "ffmpeg" -i /path/to/background.png -i /path/to/tmp-video-1.mp4 -filter_complex "overlay=0:0" /path/to/tmp-video-2.mp4 2>&amp;1

    "ffmpeg" -i /path/to/tmp-video-2.mp4 -vf "[in]<define texts="texts" and="and" duration="duration">[out]" -codec:a copy /path/to/endvideo.mp4 2>&amp;1
    </define>

    Please take a look my video : http://184.171.170.45/cron/tmp/funny-1489648654.mp4
    I tried to set overlay property in second command : -640:0, let images in horizontal center of background, but its not working