Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (47)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • 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

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (10190)

  • Install graphicsmagik and ffmpeg for nodeJS application running as docker container

    25 septembre 2017, par user3142695

    I am deploying a nodeJS application (which is based on meteorJS and build with meteor build) to a docker container on my ubuntu 16.04 server.
    My application needs graphicsmagick and ffmpeg.
    As far as I know, the ffmpeg should be in the libav-tools package.

    My question is how do I get those two needed packages into my application running as docker container ?

    I think it is wrong to install them via apt-get graphicsmagick on the server itself, right ?

    For this nodeJS application I’m using this Dockerfile to create a docker image :

    FROM node:4.8-slim

    # Copy the application files
    COPY . /

    # Set required environment variables
    ENV NODE_ENV production
    ENV MONGO_URL mongodb://mongo:27017/
    ENV ROOT_URL http://localhost
    ENV PORT 80
    EXPOSE 80

    # Download the required packages for production
    RUN (cd programs/server && npm install --silent)

    # Make the application run when running the container
    CMD ["node", "main.js"]

    My application uses this package.json :

    {
     ...
     "dependencies": {
       ...
       "ffmpeg": "0.0.4",
       "fluent-ffmpeg": "^2.1.2",
       "gm": "^1.23.0",
       ...
     }
    }

    Running npm install should add gm and ffmpeg, but I think I need those packages installed in the docker container itself.

  • ffmpeg muxing 6 mono wavs and prores mov into new 6 channel mov - how to ?

    23 octobre 2017, par BabaG

    i’ve been dealing with this for a day now and finally have to just come out and ask. i want to take a prores mov file that is silent (but apparently does have a timecode track) and losslessly mux it with 6 mono wav files, having the 6 mono wavs become 6 uncompressed channels (not 6 streams) in the final mov.

    how do i do this ?

    the attempts i’ve made have all failed in some way or other. either i get a conflict where a filter is employed which prevents a direct copy, or i get an error in mapping, or something else. i’ve seen lots on working with either a single audio channel and picture but nothing on muxing 5.1 with picture. either that or there is transcoding being done but not straight copying. also found a lot on extracting but nothing much on combining.

    here’s the last command i tried, which gave me an aac audio track with the correct number of channels but, obviously, was not just a copy of the uncompressed wavs :

    ffmpeg -i pix.mov -i L.wav -i R .wav -i C.wav -i LFE.wav -i Ls.wav -i Rs.wav -filter_complex "[1:a][2:a][3:a][4:a][5:a][6:a]amerge=inputs=6[aout]" -map "[aout]" -c:v copy -c:a copy muxed51.mov

    this threw the error that -filter_complex is incompatible with -c:a copy, which makes sense now that i’ve seen it. without the -c:a copy switch i got an mp4 mov with no picture and aac audio. i think i tried it also with the -filter_complex parameters running from 0-5 rather than the 1-6 as they are here. i think i was trying to leave room for the video stream to copy into the 0 space. obviously not a coder here. i just need to get this done and it seemed like it should be pretty simple. not turning out that way.

    to sum up, how do i just copy the video and 6 mono wavs into a mov container with the audio as 6 channels ? both picture and audio should be lossless copies.

    thanks,
    BabaG

  • Concatenate multiple videos with a black screen loop into one video

    21 mars 2016, par AHC

    I am using ffmpeg to join a bunch of videos together.
    I am using the classic join ffmpeg code :

    ffmpeg -f concat -i joinlist.txt -c copy joinedfile.mp4

    but the problem is that the videos are of different formats, encodings, but the same size : all 640x480. I want to join them all and put a black screen video with no sound every other video :

    video1 + black_screen_video + video2 + black_screen_video + video3 ...

    I generated a black screen video of 2 seconds duration using :

    ffmpeg -f lavfi -i color=c=black:s=640x480:d=2 black_screen_video.mp4

    so all of the videos are of the same size : 640x480, and 25 fps but different codecs. The videos have sound, except for the black screen video.
    I can’t do anything manual, because the number of videos are around several hundred. So it has got to be an automatic way to do all this.

    When I joined them together using the above code, the resulting video does not play correctly at all.

    I know that I have to re-encode them, but how to do this to all these videos at once, with one line of code ?

    Update :
    I am already using with success this code to join them together, but only three, if I have more than one hundred, it is time consuming to write down one by one :

    ffmpeg -i vid1.avi -i vid2.avi -i vid3.avi -filter_complex "[0:v:0] [0:a:0] [1:v:0] [1:a:0] [2:v:0] [2:a:0] concat=n=3:v=1:a=1 [v] [a]" -map "[v]" -map "[a]" output.mp4

    but this is joining only the videos, not looping the black screen video. When I do with black screen, ffmpeg gives me stream matching errors.

    update :

    here is the console image :
    enter image description here

    2nd update :

    a very long list of errors in red, of which a screenshot here :
    enter image description here