Recherche avancée

Médias (91)

Autres articles (85)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (8979)

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