Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (97)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Que fait exactement ce script ?

    18 janvier 2011, par

    Ce script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
    Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
    Installation de dépendances de MediaSPIP
    Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
    Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)

Sur d’autres sites (14137)

  • FFMPEG sendcmd command limitation

    18 novembre 2022, par Stahlauge

    i try to draw text into a video with drawtext and sendcmd.
In the sendcmd file there are over 9100 commands defined (each frame needs a different text).
All my commands are build this way.

    


    0 Parsed_drawtext_1 reinit 'text=\102030GA01, 102040Ap05
von oben, in Fließrichtung
[0,00]   17.11.2022 10\:22\:04:fontsize=28.928569157918293:y=5:x=0:fontcolor=#FFFFFF';
0.04 Parsed_drawtext_1 reinit 'text=\102030GA01, 102040Ap05
von oben, in Fließrichtung
[0,00]   17.11.2022 10\:22\:04:fontsize=28.928569157918293:y=5:x=0:fontcolor=#FFFFFF';
0.08 Parsed_drawtext_1 reinit 'text=\102030GA01, 102040Ap05
von oben, in Fließrichtung
[0,00]   17.11.2022 10\:22\:05:fontsize=28.928569157918293:y=5:x=0:fontcolor=#FFFFFF';


    


    My command is.

    


    ffmpeg.exe -y -i "17112022_102204.mp4" -vf "sendcmd=f=drawtextcommands.cmd,drawtext=fontfile='Ubuntu-L.ttf':text=:fontcolor=black@1.0:line_spacing=5, drawtext=fontfile='Ubuntu-L.ttf':text=:fontcolor=yellow@1.0:line_spacing=5,drawtext=fontfile='Ubuntu-L.ttf':text=:fontcolor=yellow@1.0:line_spacing=5,drawtext=fontfile='Ubuntu-L.ttf':text=:fontcolor=green@1.0:line_spacing=5" -c:v mpeg4 -qscale:v 5 -f mp4 "102030GA01_2022-11-17_10-21.mp4"


    


    My ffmpeg Version is n5.0.4 lgpl.
If i run this command with the sendcmd file on my develop laptop it works just fine (i7-10850H and 32GB RAM) but if i run the excat same on a Surface (i5-1035G4 and 8GB RAM) or Dell Latitude 5175 (Intel m5-6Y57 and 8GB RAM) i get an error

    


    [Parsed_sendcmd_0 @ 000002454188c540] No Targed specified in interval #XXXX, command #0 


    


    where XXXX is different each time i run it. All PC runs Win 10.

    


    I can´t really find the problem why i get this error on the tablets but not on my Laptop.
Maybe it´s a hardware ressource problem even FFMEG doesn´t have any requirements at all ?

    


    I only can get it to run on the tablets if i delete lots of commands from the sendcmd file.
I can´t define excatly the amount i need to delete because each run i can have more or less commands that are working.
But i can say i need to delete a lot more commands on the Dell tablet then on the Surface on to get it to run.

    


  • Get Metadata From CDN URL

    13 novembre 2022, par Jeet Shekhaliya

    I have an code in node.js to get metadata from local file , but i want to extract data from CDN url : -
https://seach.sigmacdn1.workers.dev/stream/782167627762213921323b6b7a49465a6f36485045523164356e305b2e646f56547b4e5b30644c643753212f21776a6e6621393235353b3036333736353630377e/Lost.Bullet.2.2022.1080p.NF.WEB-DL.DDP5.1.H.264-playWEB.mkv

    


    const probe = require('node-ffprobe')
const ffprobeInstaller = require('@ffprobe-installer/ffprobe')
const fs = require("fs")
console.log(ffprobeInstaller.path, ffprobeInstaller.version)

probe.FFPROBE_PATH = ffprobeInstaller.path

var track = "movie.mkv" // or video

probe(track).then(probeData => {
    console.log(probeData)
    fs.writeFile("data.json", JSON.stringify(probeData), (err, data) => {

    })
})



    


  • Cannot execute ffmpeg command with Java

    12 octobre 2022, par Peter Tran

    I am trying to execute ffmpeg command to add overlay text on existing video

    


    ffmpeg command on shell which is working fine :

    


    ffmpeg -i "/Users/test/video.mp4" -vf "drawtext=text='Testing':fontcolor=white:fontsize=24:box=1:boxcolor=black@0.5:boxborderw=5:x=(w-text_w)/2:y=(h-text_h)/2" -codec:a copy "/Users/test/output.mp4"


    


    Shell OUTPUT

    


    fmpeg version 5.1.2 Copyright (c) 2000-2022 the FFmpeg developers


    


    built with Apple clang version 14.0.0 (clang-1400.0.29.102)
configuration : —prefix=/opt/homebrew/Cellar/ffmpeg/5.1.2 —enable-shared —enable-pthreads —enable-version3 —cc=clang —host-cflags= —host-ldflags= —enable-ffplay —enable-gnutls —enable-gpl —enable-libaom —enable-libbluray —enable-libdav1d —enable-libmp3lame —enable-libopus —enable-librav1e —enable-librist —enable-librubberband —enable-libsnappy —enable-libsrt —enable-libtesseract —enable-libtheora —enable-libvidstab —enable-libvmaf —enable-libvorbis —enable-libvpx —enable-libwebp —enable-libx264 —enable-libx265 —enable-libxml2 —enable-libxvid —enable-lzma —enable-libfontconfig —enable-libfreetype —enable-frei0r —enable-libass —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopenjpeg —enable-libspeex —enable-libsoxr —enable-libzmq —enable-libzimg —disable-libjack —disable-indev=jack —enable-videotoolbox —enable-neon
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/test/video.mp4' :
...

    


    but when running above command with Java, the output video is not generated

    


    Java code

    


    @Test
public void generateVideo2() throws IOException, IOException {
    String fileNameFullPath= "/Users/test/video.mp4";
    String[] videoCmd = new String[]
            {"/bin/sh", "-c", "/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/ffmpeg",
                    "-i",
                    fileNameFullPath,
                    "-vf",
                    "drawtext=text='Testing':fontcolor=white:fontsize=24:box=1:boxcolor=black@0.5:boxborderw=5:x=(w-text_w)/2:y=(h-text_h)/2",
                    "-codec:a copy",
                    "/Users/test/output.mp4"
            };
    Process processDuration = new ProcessBuilder().command(videoCmd).start();
    StringBuilder strBuild = new StringBuilder();
    try (BufferedReader processOutputReader = new BufferedReader(new InputStreamReader(processDuration.getInputStream(), Charset.defaultCharset()));) {
        String line;
        while ((line = processOutputReader.readLine()) != null) {
            strBuild.append(line).append(System.lineSeparator());
        }
        int i = processDuration.waitFor();
        System.out.println("Process exitValue: "+i);
    } catch (InterruptedException e) {
        throw new RuntimeException(e);
    }
}


    


    JAVA OUTPUT

    


    Process exitValue : 1

    


    Process finished with exit code 0

    


    Does anyone have any idea ?