Recherche avancée

Médias (91)

Autres articles (84)

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

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (12270)

  • Spring Boot serving an m3u8 playlist

    13 octobre 2023, par Ph33ly

    I'm trying to serve an m3u8 playlist through Spring Boot. I have a running ffmpeg process that is transcoding a multicast in real-time and sending the files to /src/resources/public/output.m3u8. I see the playlist updating and the new .ts files being generated correctly however when trying to watch the stream in a video player, it only plays a certain amount of video. Is there a way to properly serve up a running playlist in Java instead of serving it statically ?

    



    EDIT : When starting a basic http server with python python3 -m http.server, I'm able to view the stream perfectly fine. Is there a Spring Boot way to accomplish the same task ?

    


  • How to read stream data as chunk ?

    5 juillet 2022, par imagesck

    I try to lean, how to read chunk of stream data. It almost works, it likes i misunderstanding implement allocate buffer size in pause event of stdout. the video that i use is https://www.youtube.com/watch?v=oiNkumxPVzU. 480p. ffmpeg freeze to encode at 03:53, no error, just freeze likes missing require bytes. the video length exactly is 03:55.

    


    const { spawn } = require('child_process');
const path = require('path');

const decArgs = [
    '-i', path.join(__dirname + '/public/future.mkv'),
    '-an',
    '-pix_fmt', 'rgb32',
    '-f', 'rawvideo',
    '-'
];

const decode = spawn('ffmpeg', decArgs, {
    stdio: [
        'ignore',
        'pipe',
        'ignore'
    ] 
});

// Encode section
const width = 854;
const height = 480;
const channels = 4;
const fps = 29.97002997002997.toString();
const colorsLength = width*height*channels;


const encArgs = [
    '-pix_fmt', 'rgb32',
    '-f', 'rawvideo',
    '-s', `${width}x${height}`,
    '-r', fps,
    '-i', '-',
    '-c:v', 'libx264',
    '-preset', 'ultrafast',
    '-crf', '30',
    '-pix_fmt', 'yuv420p',
    '-r', fps,
    '-y',
    path.join(__dirname + '/public/output.mp4')
];

const encode = spawn('ffmpeg', encArgs, {
    stdio: [
        'pipe',
        'ignore',
        'pipe'
    ]
});

// colors RGBA
let buffer = Buffer.alloc(0);
decode.stdout.on('data', data => {
    const allocSize = buffer.length + data.length;
    buffer = Buffer.concat([buffer, data], allocSize);
    
    if (buffer.length > colorsLength) decode.stdout.pause();
});

decode.stdout.on('pause', () => {
    // Create new buffer with size of colors length
    const bufferData = Buffer.alloc(colorsLength);
    buffer.copy(bufferData, 0, 0, colorsLength);
    // after manipulate the buffer send it to encode
    encode.stdin.write(bufferData);
    
    // Create new buffer to take out left buffer. cause stream length cant be predict.
    const leftBuffer = Buffer.alloc(buffer.length - bufferData.length);
    buffer.copy(leftBuffer, 0, buffer.length - bufferData.length, buffer.length);
    buffer = leftBuffer;

    decode.stdout.resume()
});

decode.stdout.on('end', () => {
    if (buffer.length) encode.stdin.write(buffer);
})

encode.stderr.on('data', data => {
    console.log(data.toString())
})


    


  • Cannot Play RTSP Streams From the Internet

    17 avril 2023, par jnnks

    I am trying to receive an rtsp :// stream from the internet. There are many example streams running, but I cannot receive any of them.
ffplay and VLC both fail to receive data. I tried both UDP and TCP with various urls with no success.
Streaming from a local rtsp server with aler9/rtsp-simple-server Docker container works fine.

    


    This is the command I use to watch the stream :

    


    ffplay rtsp://rtsp.stream/pattern


    


    VLC fails with :

    


    [00007f58640015f0] satip stream error: Failed to connect to RTSP server rtsp.stream:554
[00007f58640015f0] access_realrtsp stream error: cannot connect to rtsp.stream:554


    


    What else can I try ?