Recherche avancée

Médias (91)

Autres articles (86)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

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

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

Sur d’autres sites (10907)

  • Looking for segment data in hls output from ffmpeg

    7 novembre 2023, par n0body7331

    Just as the title states. I'm trying to find the raw data that usually gets written to the .ts files. However I don't want to create a playlist or have these files written to disk i any way. I would rather buffer the ffmpeg output and try to somehow parse it to get the same content.

    


    am I going in the wrong direction with this ? Should I be looking for something representing mpgets headers ?

    


    So far this is what I've come up with.

    


    package main

import (
    "bytes"
    "io"
    "log"
    "os/exec"
    "strings"
    "testing"
)

func TestExtractor(t *testing.T) {
    args := "-i https://www.w3schools.com/html/mov_bbb.mp4 -c:v libx264 -crf 21 -preset veryfast -g 25 -sc_threshold 0 -c:a aac -b:a 128k -ac 2 -f hls -sc_threshold 0 -hls_segment_type mpegts -hls_time 2 -"

    cmd := exec.Command("ffmpeg", strings.Split(args, " ")...)
    // Create a pipe to read the FFmpeg output.
    stdout, err := cmd.StdoutPipe()
    if err != nil {
        log.Fatal(err)
    }

    if err := cmd.Start(); err != nil {
        log.Fatal(err)
    }

    s := []byte{
        // Offset 0x0004A543 to 0x0004A5D9
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255}

    buffer := make([]byte, len(s))

    for {
        n, err := stdout.Read(buffer)
        if err == io.EOF {
            break
        }

        if err != nil {
            log.Fatal(err)
        }

        if bytes.Equal(buffer[:n], s) {
            log.Printf("\nFOUND BUFFER \n %v \n ============= \b", buffer[:n])
        } else {
            //log.Printf("\nNOT FOUND BUFFER \n %v \n ============= \b", buffer[:n])
        }
    }
    if err := cmd.Wait(); err != nil {
        log.Fatal(err)
    }
}



    


  • How to create movie screenshot by ffmpeg in an amazon S3 path

    5 décembre 2019, par user2004082

    I tried to create using ffmpeg a video screenshot from a remote video url in heroku console. Below is how I generated a movie instance and can see also an empty ready to be written file at S3. But the last line movie.screenshot is not working and generates this error :

    FFMPEG::Error: Failed encoding.Errors: no output file created

    Here is the code

    s3 = Aws::S3::Resource.new(region: 'us-west-1')
    bucket = s3.bucket("ruby-sample-kb-#{SecureRandom.uuid}")
    bucket.create
    object = bucket.object('ex-vid-test-kb.jpg')
    object.put(acl: "public-read-write")
    path = object.public_url
    movie = FFMPEG::Movie.new("https://www.googleapis.com/download/storage/v1/b/seppoav/o/3606137_51447286560__56BAF29C-05CB-4223-BAE6-655DF2236321.MOV?generation=1492780072394755&alt=media")
    movie.screenshot(path, :seek_time => 2)

    I also tried the following line just if it should be written via put. What am I missing here ?

    object.put(acl: "public-read", body: movie.screenshot(path, :seek_time => 2))
  • Is it possible to use FFMPEG to generate F4V videos ?

    10 juillet 2012, par James Raber

    I need to generate a script that converts videos to F4V's for use with Flash Media Server 4.5...is this possible ? I have it converting files to MP4s and then swapping the extension. This works fine, but seems like a dirty work around. I'd prefer to use a generate a true F4V. I've heard mixed things on whether or not ffmpeg truly supports F4Vs. Any guidance would be appreciated. Also, is there a doc guide on what file formats are allowed by FFMPEG ?