Recherche avancée

Médias (1)

Mot : - Tags -/berlin

Autres articles (82)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (8528)

  • Overlay with fade in-out not showing

    3 mai 2018, par Pier Giorgio Misley

    I can actually add an overlay image in the center of a video from a start time A to an end time B.

    Reading here and there I tried to add a fade-in/fade-out effect to my overlayed image but the result is the image not showing at all in my final video.

    This is my "experiment" :

    -i output.mp4 -i 1.png -filter_complex "[1:v]format=rgba,scale=300:300,fade=in:st=0:d=1:alpha=1,fade=out:st=5:d=1[im];[0][im]overlay=(main_w-overlay_w)/2:(main_h - overlay_h) / 2:enable='between(t,0,5)'" -pix_fmt yuv420p -c:a copy output_0.mp4

    If in understood :

    fade=in:st=0:d=1

    Means that the image should appear at 0’’ with a fade-in effect of 1’’ duration

    fade=out:st=5:d=1

    Means that the image should disappear at 5’’ with a fade-out effect of 1’’ duration

    Isn’t it ?

    Second part would be to add a zoom effect of the image when it is fading in, can I combine the fade-in and the zoom effect toghether ?

    I think that something like this should zoom for a duration of 3 seconds my image overlay, can I add it with another "," separating the filter to the overlayed image ?

    zoompan=z='if(lte(zoom,1.0),1.5,max(1.001,zoom-0.0015))':d=3

    Thanks

    edit :

    The video is 10 sec long. I want an image to be shown with fade in-out and zoom in from 0 to 5 and another from 5 to 10 with the same effect

    Step 1 : adding fade in-out

    -i 0_vid.mp4 -loop 1 -t 1 -i 1.png -filter_complex "[1:v]format=rgba,fade=in:st=0:d=1:alpha=1,fade=out:st=4:d=1:alpha=1[im];[0][im]overlay=(main_w-overlay_w)/2:(main_h - overlay_h)/2:shortest=1" -pix_fmt yuv420p -c:a copy output_0.mp4

    With this solution the fade in works, but the fade out is not even taken in consideration.

    If I add the zoom :

    -i 0_vid.mp4 -loop 1 -t 1 -i 1.png -filter_complex "[1:v]format=rgba,zoompan=z='if(lte(zoom,1.0),1.5,max(1.3875,zoom-0.0015))':d=625,fade=in:st=0:d=1:alpha=1,fade=out:st=4:d=1:alpha=1[im];[0][im]overlay=(main_w-overlay_w)/2:(main_h - overlay_h)/2:shortest=1" -pix_fmt yuv420p -c:a copy output_0.mp4

    This way the image is stretched full screen width and the height is cut. But during the 5 sec animation the image is not resized as normal.

    What I’m aiming for is the image to be zoomed in the video but not to be cut/stretched. I would like to have the image to look smaller at the start and bigger at the end. Is it possible ?

    And also, what am I doing wrong with fade out animation

  • ffmpeg install within existing Node.js docker image

    1er septembre 2021, par Peza

    I need to use ffmpeg in a Node.js application that runs in a docker container (created using docker-compose). I'm very new to Docker, and would like to know how to command Docker to install ffmpeg when creating the image.

    



    DockerFile

    



    FROM node:carbon
WORKDIR /usr/src/app

# where available (npm@5+)
COPY package*.json ./
RUN npm install -g nodemon
RUN npm install --only=production
COPY . .

EXPOSE 3000
CMD [ "npm", "start" ] 


    



    package.json :

    



    {
  "name": "radcast-apis",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node ./bin/www",
    "dev": "nodemon --inspect-brk=0.0.0.0:5858 ./bin/www"
  },
  "dependencies": {
    "audioconcat": "^0.1.3",
    "cookie-parser": "~1.4.3",
    "debug": "~2.6.9",
    "express": "~4.16.0",
    "firebase-admin": "^5.12.1",
    "http-errors": "~1.6.2",
    "jade": "~1.11.0",
    "morgan": "~1.9.0"
  },
  "devDependencies": {
    "nodemon": "^1.11.0"
  }
}


    



    docker-compose.yml :

    



    version: "2"
services:
  web:
    volumes:
    - "./app:/src/app"
    build: .
    command: npm run dev
    ports:
    - "3000:3000"
    - "5858:5858"


    


  • Merge mp4 file with ffmpeg

    7 mars 2014, par user3156324

    I have two mp4 files i.e. a.mp4 and a1.mp4, I have to merge both the files into c.mp4 using ffmpeg.

    So how can do this..

    Thanks

    Actually I have two mp4 files that one contain video+audio and one contain only video,
    So I have to combine both the files means play both the files at same time. I not mean concate (add one after another ) the file.