Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (55)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (7248)

  • cronjob to play files in a folder with ffmpeg causes delay between songs. how to avoid ?

    21 juillet 2014, par Andy

    I have a cron set up to check for a specific stream and if its not playing(usually means that file is over) it will randomly select other file.

    The command :
    /root/bin/ffmpeg -re -i $(ls /usr/btv/btvconcerts/*.mp4 | shuf -n 1) -vcodec copy -preset superfast -acodec copy -ar 44100 -ab 32k -f flv OUTPUT

    The problem I have is that the cron is running every 1 minute and so there could be a delay between the streaming files for up to 1 min + the time it launches etc

    Is there a command i could use just to constantly loop through the files without crontab ?

  • getting black screen while trying to record dockerized lxde using ffmpeg

    16 mars 2023, par Itzik.B

    I have created a docker image that has LXDE and TightVNCServer.

    


    # Pull base image.
FROM ubuntu

# Install LXDE and VNC server.
RUN apt-get update
RUN apt-get install -y xvfb
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y lxde-core lxterminal tightvncserver
RUN rm -rf /var/lib/apt/lists/*
RUN touch /root/.Xresources
RUN touch /root/.Xauthority
COPY xstartup /root/.vnc/xstartup
RUN chmod +x /root/.vnc/xstartup
#Install Node.js & npm

# Define working directory.
WORKDIR /data

COPY * /data

RUN apt-get install -y ffmpeg


    


    I am running this container using this command :

    


    docker run -it --rm -v /data:/data -p 5901:5901 -e USER=root ubuntudsktp  bash -c "vncserver :1 -geometry 1280x800 -depth 24 && tail -F /root/.vnc/*.log"

    


    I am logging into this container using VNC and running this command to record the whole screen :

    


    ffmpeg -f x11grab -i :1.0 output.webm

    


    After the recording was over, I opened the video and I could see that the video is completely blank(black screen).

    


    I know there is a "screen" that I need to tell ffmpeg to record but its works only on -i :1.0.

    


    I have also tried to run it using :

    


    DISPLAY=:1 ffmpeg -f x11grab -i :1.0 output.webm
And the results are the same.

    


    What I am missing here ?

    


  • How to Bulk Speed UP and Crop Videos FFMPEG

    6 septembre 2023, par Usemo Shank

    I have videos in (input) folder that is located on the root of the script, I also have output folder on the root, The input folder has several videos that i want to speed up in bulk by 1.1 percent, I also want to cropt the videos by 90 percent (Meaning 90 Percent of original video is visible).

    


    I have a code that does not function well. Here is the code I have

    


     import os
import subprocess

# Define input and output directories
input_folder = "input"
output_folder = "output"

# Create the output directory if it doesn't exist
if not os.path.exists(output_folder):
    os.makedirs(output_folder)

# List all video files in the input directory
input_files = [f for f in os.listdir(input_folder) if f.endswith(('.mp4', '.avi', '.mkv'))]

# Speed up and crop each video
for input_file in input_files:
    input_path = os.path.join(input_folder, input_file)
    output_file = os.path.splitext(input_file)[0] + "_speed_crop.mp4"
    output_path = os.path.join(output_folder, output_file)

    # FFmpeg command to speed up video by 1.1x and crop to 90%
    ffmpeg_command = [
        "ffmpeg",
        "-i", input_path,
        "-vf", "setpts=1.1*PTS,crop=in_w*0.9:in_h*0.9",
        "-c:v", "libx264",
        "-crf", "20",
        "-c:a", "aac",
        "-strict", "experimental",
        output_path
    ]

    # Run FFmpeg command
    subprocess.run(ffmpeg_command)

print("Conversion complete.")