Recherche avancée

Médias (0)

Mot : - Tags -/latitude

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (58)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

Sur d’autres sites (6426)

  • FFMPEG command to mix audio and video with adjustable volume

    15 mai 2020, par Tomin

    I have :

    



      

    • Video file of X length
    • 


    • Audio of Y length
    • 


    



    I am trying to achieve an output video that has the following qualities :

    



      

    1. The volume level of the added audio should be adjustable
    2. 


    3. The audio should loop till the end of the video
    4. 


    5. It should not break even if the input video does not have any audio
    6. 


    7. I should be able to mute the audio of the source video if needed.
    8. 


    9. All of the above, in the fastest possible way.
    10. 


    



    I'm not well versed with FFMPEG, maybe some experts could help.

    


  • sauce : test filetype correctly for datatype 5 (binary text)

    14 décembre 2012, par Peter Ross

    sauce : test filetype correctly for datatype 5 (binary text)

  • Creating a convertAll() function that converts all .filetype in working directory

    5 janvier 2019, par Risviltsov

    I seem to not know proper bash syntax ; despite this, I’ve tried to create a tool that changes the dimensions of all files of a ffmpeg-accepted filetype in the working directory and converts it to another ffmpeg-accepted filetype. In this instance, this tool converts all .webm files over 1080x720 into 1080x-1 or -1x720 .mp4 files. If the .webm file is under 1080x720, the new .mp4 file will have the same dimensions.

    However, there’s a wrench in the tool.

    convertAll () {
    local wantedWidth = 1080
    local wantedHeight = 720
    for i in *.webm; do
    local newWidth = $i.width
    local newHeight = $i.height
    until [$newWidth <= $wantedWidth && $newHeight <= $wantedHeight]; do
    if [$videoWidth > $wantedWidth]; then
    newHeight = $newWidth*($wantedWidth/$newWidth)
    newWidth = $newWidth*($wantedWidth/$newWidth)
    fi
    if [$videoHeight > $wantedHeight]; then
    newWidth = $newWidth*($wantedHeight/$newHeight)
    newHeight = $newHeight*($wantedHeight/$newHeight)
    fi
    done
    ffmpeg -i "$i" -vf scale=$newWidth:$newHeight "${i%.*}.mp4";
    done
    echo "All files have been converted."
    }

    What this returns is a bunch of lines that look like this :

    bash: [: missing ']'
    bash: [: missing ']'
    bash: =: No such file or directory

    My best guess is that BASH can’t do mathematics, and that I’m declaring and editing my variables incorrectly.

    I’d like some input on this --- my lack of experience is really getting me here.