Recherche avancée

Médias (1)

Mot : - Tags -/ogg

Autres articles (52)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

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

  • How do I pass a pipe to ffmpeg ?

    6 novembre 2022, par m_j_alkarkhi

    I want to send a couple of images to ffmpeg and output a video

    


    I have tried to use something similar to this which always seems to finish but when I check the output, it always returns an empty 48b file

    


    I have tried changing the order of the flags but nothing seems to work

    


    Here is my code

    


    using System.Diagnostics;
using SkiaSharp;

Process process = new Process();
process.StartInfo.FileName = @"ffmpeg";
process.StartInfo.Arguments = "-f image2pipe -r 30 -i - /home/user/Videos/test33.mp4";
process.StartInfo.UseShellExecute = false;
process.StartInfo.RedirectStandardInput = true;
process.StartInfo.RedirectStandardOutput = true;
        
process.Start();

for (int i = 0; i < 300; i++)
{
    using var ms = new MemoryStream();
    SKImageInfo imageInfo = new SKImageInfo(1280, 720, SKColorType.Rgba8888);
    using SKSurface surface = SKSurface.Create(imageInfo);
    SKCanvas canvas = surface.Canvas;
    canvas.Clear(SKColor.Parse("#ffffff"));
    using SKImage image = surface.Snapshot();
    using SKData data = image.Encode(SKEncodedImageFormat.Png, 80);
    data.SaveTo(ms);
    ms.WriteTo(process.StandardInput.BaseStream);
}


    


  • 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.")


    


  • 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 ?