Recherche avancée

Médias (91)

Autres articles (75)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (7683)

  • How to merge two videos using ffmpeg Android

    12 août 2021, par Usama Shakeel

    I have two videos which I want to merge. Both have same resolution. The second video does not have any audio

    


    ffmpeg -i test.mp4 -i picture.mp4 -filter_complex "[0:v] [0:a] [1:v] [1:a] concat=n=1:v=2:a=1 [v] [a]" -map "[vv]" -map "[aa]" mergedVideo.mp4

    


    this is the command that I am using but I am getting the following error
Stream specifier ':a' in filtergraph description [0:v] [0:a] [1:v] [1:a] concat=n=2:v=2:a=1 [v] [a] matches no streams.

    


    I am not very familiar with ffmpeg commands but I guess I am giving some wrong -filter complex values

    


  • FFMPEG linux how to get the total time duration of a folder containing videos ?

    3 octobre 2015, par Andrea Turco

    i need to get the total count of video times in a folder

    I need to generate a file .txt that export just the total time of the videos in the folder in the format :

    HH:MM:SS

    Actually with this script i get just the duration of single files splitted..i need just single output in the file video_times.txt with the total duration.

    videos=( "/home/videos")
    default_ext=( mp4 avi )
    dump_file=./video_times.txt

    # parameters or default values?
    (( $#==0 )) && ext=( "${default_ext[@]}" ) || ext=( "$@" )
    echo "locations: ${videos[@]/$HOME/~}"
    echo "extensions: ${ext[@]}"

    for(( i=0; i<${#ext[@]}; i++ ))
    do
     (( i>0 )) && find_params+=( -o )
     find_params+=( -iname '*.'${ext[$i]} )
    done
    find_params=( '(' "${find_params[@]}" ')' )

    rm "$dump_file" 2>/dev/null

    while IFS= read -rd '' f
    do
     echo "$(( ++n )): $f"
     # time in original HH:MM:SS.ms format and in SSSSSS.ms
     ffmpeg -i "$f" 2>&1 | awk '/Duration:/ {split($2, t, ":|,"); print $2 t[1]*3600+t[2]*60+t[3]; }' >> "$dump_file"
    done < <( find "${videos[@]}" "${find_params[@]}" -print0 )

    awk -F, '    {
                  total=$2;
            #  printing numbers during work
            #      printf("%+10.2f\t(%10.2f)\n", $2, total );
                }
            END {
            #      print "-----------------------------";
                  printf( "%.2f seconds in %d files\n", total, NR );
                  h=total/3600; total%=3600;
                  m=total/60; total%=60;
                  printf( "%02d:%02d:%s\n", h, m, total )
                }' "$dump_file"
  • FFMPEG - Concat Videos + Add Audio

    24 mars 2020, par John Doe

    I’m trying to pipe some videos into an ffmpeg command which will concat the videos (keeping their audio) and mix a background audio track over the whole thing. I need the video to end when the audio does.

    However right now this doesn’t work right. The music cuts out after the first video, and ffmpeg doesnt stop encoding when music stops. It seems simple enough but I’ve been working at this all night, any help would be appreciated.

    ffmpeg -y -hide_banner -protocol_whitelist file,pipe -f concat -safe 0 -i pipe: -i "music.mp3" -filter_complex "[1:a]afade=in:0:d=10,volume=0.5[music];[0:a][music]amix=duration=longest[a]" -map "0:v" -map "[a]" -c:v libx264 -x264-params keyint=120:scenecut=0 -c:a aac -ac 1 -ar 22050 -movflags faststart -r 30 -fflags genpts "%random%.mp4"