Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (84)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

  • 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 (8689)

  • flutter FFMPEG concat not working properly with camera recorded clips

    27 février 2024, par ibrahim Eltayfe

    I am using the Flutter camera package to record videos, I record multiple videos and then concatenate them using this command :

    


    


    "-y -f concat -i $videosPathsTextFilePath -c:a aac -c:v copy $fullVideoOutPath",

    


    videosPathsTextFilePath content is :
    
file 'record-1709022968582.mp4'
    
file 'record-1709022976601.mp4'

    


    


    when I record with one side only like the camera back side and concatenating the clips, it works as expected, but when I change the camera side and then concat the clips, the clip recorded after changing the camera side is shown rotated upside down as -90

    


    I checked the clips from Device Explorer, it is all right, but after the concatenation it shows flipped.

    


    here are the two videos before concatenation :

    


    https://imgur.com/a/MVkEDm3
    
https://imgur.com/Kit1J8V

    


    and this is the video after concatenating :
    
https://imgur.com/6CAxN05

    


    Thank you in advance.

    


    I tried to check if the user changed the camera side to track the clips recorded by this side then rotate them and move them to another directory but this command is not working

    


    -noautorotate -display_rotation 90 -i ${videoFile.path} -c:v copy ${destinationPath}

    


  • Creating a single video using extracted frames from several video clips without having to write the frames into a folder

    24 décembre 2023, par Athekul

    I have a set of mp4 video clips named : file1.mp4, file2.mp4,..filen.mp4.
I want to write a code for going through the files sequentially and extracting a frame every 10 seconds of the video.
Then I want to combine the frames and make one output video file at 6 fps.

    


    I have the code which does that but it extracts frames and stores them in a subfolder before combining them into a video. I think that is inefficient.
Is there a way whereby I can extract frames from the video clips and output the final video without having to store the frames in a folder ?

    


    This is the code that I have.

    


    #!/bin/bash

# Step 1: Extract frames every 10 seconds
input_folder="/home/aj/Videos/merge"
output_folder="/home/aj/Videos/merge"
subfolder="frames"

# Create subfolder if it doesn't exist
mkdir -p "$output_folder/$subfolder"

# Get the total number of input files
total_files=$(find "$input_folder" -maxdepth 1 -type f -name "*.mp4" | wc -l)
processed_files=0
global_frame_counter=0

# Iterate through mp4 files in the input folder
for file in "$input_folder"/*.mp4; do
  filename=$(basename "$file")
  filename_no_ext="${filename%.mp4}"

  # Extract frames every 10 seconds
  ffmpeg -i "$file" -vf fps=1/10 "$output_folder/$subfolder/output_${global_frame_counter}%02d.png"
  
    # Increment the global frame counter
  ((global_frame_counter ++))

  # Increment the processed files count
  ((processed_files++))

  # Calculate and echo the percentage of files processed
  percentage=$((processed_files * 100 / total_files))
  echo -e "\033[1;32mProcessing: $percentage% complete\033[0m"
done

# Step 2: Combine frames into a single video
cd "$output_folder/$subfolder" || exit

ffmpeg -r 6 -f image2 -s 1920x1080 -i "output_%*.png" -vcodec libx264 -crf 25 -pix_fmt yuv420p "$output_folder/result.mp4"

echo "Frames extracted and video created successfully."



    


  • Frozen video clips when concatenating mp4 videos using ffmpeg via nodje.js fluent-ffmpeg

    21 novembre 2023, par Rasmus Puls

    I'm trying to write a simple js application that takes all video files in a directory and the produce one single video consisting of all the clips combined one after another into one timeline.

    


    To test the application I have download for random short stock video clips from pexels :
enter image description here
Shown in order : clip 1, clip 2, clip 3, clip 4

    


    Each of the clips plays perfectly in vlc on windows (no broken or frozen frames)

    


    I use the following script to concat the clips :

    


      const ffmpeg = require('fluent-ffmpeg');

  ffmpeg()
    .input(concatFilePath)
    .inputOptions(['-f concat', '-safe 0'])
    .outputOptions(['-c copy', '-c:v libx264', '-b:v 5M', '-r 30', '-preset', 'slow'])
    .on('end', () => {
      console.log('Video clips concatenated successfully.');
    })
    .on('error', (err) => {
      console.error('Error concatenating video clips:', err);

      // Cleanup: Delete the output folder
      console.log('Cleaning up...');
      deleteOutputFolder(outputDir);
    })
    .save(outputPath);


    


    The contect of my concatFilePath (concat.txt) file looks like this :

    


    file src\input\d69de4a3-2b72-462c-be70-f8b8287b45e0\pexels-fred-c-19065853 (Original).mp4
file src\input\d69de4a3-2b72-462c-be70-f8b8287b45e0\pexels-imad-clicks-16270463 (2160p).mp4
file src\input\d69de4a3-2b72-462c-be70-f8b8287b45e0\pexels-peter-fowler-9683061 (2160p).mp4
file src\input\d69de4a3-2b72-462c-be70-f8b8287b45e0\pexels-sascha-5799767 (1080p).mp4


    


    The problem

    


    When I run the program it takes about 15 seconds to render the output video.
The first clip looks as the stock clip, but when I get to the 2nd clip it just sits frozen at the first fram of that video, and only runs for 3-4 seconds despite the stock clip is 8 seconds long. It then transitions into the 3rd clip which is renderd correctly but the rest of the video is frozen on the last frame of clip 3 instead of showing clip 4.

    


    I'm assuming that my input options are to blame for the result of the output, I have tried various other input options suggested from github thread and other sources, but none of them have produces a reasonable result.