Recherche avancée

Médias (1)

Mot : - Tags -/lev manovitch

Autres articles (107)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, 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 (...)

  • Les sons

    15 mai 2013, par
  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

Sur d’autres sites (8818)

  • How to convert from .h264 to .ts using FFmpeg wrapper for C#/.NET ?

    9 décembre 2020, par juan_marti

    Context

    &#xA;

    I'm using FFMpegCore in my .NET Core API project that receives a .h264 file (sent in a binary format that is received and converted into a byte array) to be converted to a .ts.

    &#xA;

    I want to convert a .h264 stream into a .ts output stream using FFmpeg.

    &#xA;

    Current Approach

    &#xA;

    (...)&#xA;&#xA;byte[] body;&#xA;using ( var ms = new MemoryStream() )&#xA;{&#xA;    await request.Body.CopyToAsync( ms ); // read sent .h264 data&#xA;    body = ms.ToArray();&#xA;}&#xA;&#xA;var outputStream = new MemoryStream();&#xA;&#xA;// FFMpegCore&#xA;await FFMpegArguments&#xA;                .FromPipeInput( new StreamPipeSource( new MemoryStream( body ) ) )&#xA;                .OutputToPipe( new StreamPipeSink( outputStream ), options => options&#xA;                .ForceFormat( VideoType.MpegTs ) )&#xA;                .ProcessAsynchronously();&#xA;&#xA;// view converted ts file&#xA;await File.WriteAllBytesAsync( "output.ts", outputStream.ToArray() );&#xA;&#xA;(...)&#xA;

    &#xA;

    Problem

    &#xA;

    I'm not getting a working .ts file. What I'm a doing wrong ? Could you please give some hint or help me with this ? Even if you have other FFmpeg wrappers that you consider more suitable for this problem.

    &#xA;

    Notes :

    &#xA;

      &#xA;
    • I don't have the physical location of the files since this will receive the content of the files over HTTP. So, I will only have the byte array meaning that I need to use the input stream to convert to another format.
    • &#xA;

    • FFmpeg command used to test the conversion from .h264 to .ts (using files) : ffmpeg -i file.h264 -an -vcodec copy -f mpegts output.ts
    • &#xA;

    &#xA;

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

    &#xA;

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

    &#xA;

     import os&#xA;import subprocess&#xA;&#xA;# Define input and output directories&#xA;input_folder = "input"&#xA;output_folder = "output"&#xA;&#xA;# Create the output directory if it doesn&#x27;t exist&#xA;if not os.path.exists(output_folder):&#xA;    os.makedirs(output_folder)&#xA;&#xA;# List all video files in the input directory&#xA;input_files = [f for f in os.listdir(input_folder) if f.endswith((&#x27;.mp4&#x27;, &#x27;.avi&#x27;, &#x27;.mkv&#x27;))]&#xA;&#xA;# Speed up and crop each video&#xA;for input_file in input_files:&#xA;    input_path = os.path.join(input_folder, input_file)&#xA;    output_file = os.path.splitext(input_file)[0] &#x2B; "_speed_crop.mp4"&#xA;    output_path = os.path.join(output_folder, output_file)&#xA;&#xA;    # FFmpeg command to speed up video by 1.1x and crop to 90%&#xA;    ffmpeg_command = [&#xA;        "ffmpeg",&#xA;        "-i", input_path,&#xA;        "-vf", "setpts=1.1*PTS,crop=in_w*0.9:in_h*0.9",&#xA;        "-c:v", "libx264",&#xA;        "-crf", "20",&#xA;        "-c:a", "aac",&#xA;        "-strict", "experimental",&#xA;        output_path&#xA;    ]&#xA;&#xA;    # Run FFmpeg command&#xA;    subprocess.run(ffmpeg_command)&#xA;&#xA;print("Conversion complete.")&#xA;

    &#xA;

  • Dissappearing characters in youtube-dl, ffmpeg, and windows

    4 juin 2014, par user3407161

    so what happens is that if the video title has a symbol that isn’t supported by your current locale then ffmpeg won’t be able to get to that file properly.

    Here’s one example

    ►2 HOURS BEST MELODIC DUBSTEP MIX APRIL 2013◄ ヽ( ≧ω≦)ノ

    as you may or may not be able to see, lots of symbols from unicode.

    The problem is that in cmd and ffmpeg, though cmd can see

    ►2 HOURS BEST MELODIC DUBSTEP MIX APRIL 2013◄ ヽ( ≧ω≦)ノ

    ffmpeg only sees

    2 HOURS DUBSTEP_DRUMSTEP MIX AUGUST 2013 ヽ(≧ω≦)ノ

    This is the exact error message (i’m using youtube-dl)

    [ffmpeg] Adding metadata to 'C:\Music\ToBeDone\2014-06-01\►2 HOURS DUBSTEP_DRUMSTEP MIX AUGUST 2013◄ ヽ( ≧ω≦)ノ.mp4'
    ERROR: C:\Music\ToBeDone\2014-06-01\2 HOURS DUBSTEP_DRUMSTEP MIX AUGUST 2013 ヽ(≧ω≦)ノ.mp4: No such file or directory
    ERROR: WARNING: unable to obtain file audio codec with ffprobe

    After some research i’ve determined that by changing the system locale you can change which symbols cmd can support.

    However

    Used to appear as a box in a question mark in United states locale. In japanese locale it appears as it does on your screen right now.

    the problem with

    is that even though it’s not appearing as a question mark in a box (it’s appearing as how it should be), ffmpeg (or cmd) can’t detect it properly.

    (Refer back to the error message, i’ll repost it below.)

    [ffmpeg] Adding metadata to 'C:\Music\ToBeDone\2014-06-01\►2 HOURS DUBSTEP_DRUMSTEP MIX AUGUST 2013◄ ヽ( ≧ω≦)ノ.mp4'
    ERROR: C:\Music\ToBeDone\2014-06-01\2 HOURS DUBSTEP_DRUMSTEP MIX AUGUST 2013 ヽ(≧ω≦)ノ.mp4: No such file or directory
    ERROR: WARNING: unable to obtain file audio codec with ffprobe

    So as you can see, I think cmd passed on the symbol correctly to ffmpeg seeing from the adding metadata line, but when it actually does the operation ffmpeg loses

    ► and ◄

    Could this be a bug with ffmpeg ? MY workaround so far with incompatible symbols was to change the system locale, but I don’t think i can do that with these two symbols...

    These are the unique characters that i need to have a locale that supports

    Ö

    ◄ ヽ( ≧ω≦)ノ

    ( ͡° ͜ʖ ͡°)

    (_≧∇≦)



    More info on the problem in general

    https://github.com/rg3/youtube-dl/issues/2999

    and this is what’s going on (Batch Script)

    @echo off
    setlocal
    cd C:\youtube-dl

    set /p "var1=Enter URL: " %=% pause
    if defined var1 set "var1=%var1:"=%"
    set "var2=%date:/=-%"
    set "var3=%%(title)s.%%(ext)s"
    youtube-dl "%var1%" -ci -o "C:\Music\ToBeDone\%var2%\%var3%" -f best -x --no-mtime --add-metadata
    youtube-dl "%var1%" --skip-download -ci -o "C:\Music\ToBeDone\%var2%\Thumbnail\%var3%" --write-   thumbnail
    youtube-dl "%var1%" --skip-download -ci -o "C:\Music\ToBeDone\%var2%\Description\%var3%" --write-description