Recherche avancée

Médias (1)

Mot : - Tags -/blender

Autres articles (55)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

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

Sur d’autres sites (7443)

  • avformat_write_header() doesn't work when writing data to memory instead of file

    12 novembre 2020, par Mohamed Kandeel

    i want to resample a given input format from memory to memory everything is good so far.

    


    but when trying to get the output header from ffmpeg it doesn't work.

    


    here i allocate the context and pass the write_buffer function pointer so that it doesn't write to a file but instead it will call my function with the required data

    


    unsigned char * aviobuffer = (unsigned char *) av_malloc (32768);
AVIOContext * avio = avio_alloc_context (aviobuffer, 32768,1, NULL, NULL, write_buffer, NULL);

AVFormatContext* containerContext;
avformat_alloc_output_context2(&containerContext, NULL, "s16le", NULL);
containerContext->pb = avio;


    


    here is my write_buffer function

    


    std::vector<char>* data;&#xA;int write_buffer(void *opaque, uint8_t *buf, int buf_size)&#xA;{&#xA;    std::vector<char> tmp;&#xA;    tmp.assign(buf, buf &#x2B; buf_size);&#xA;    data->insert(data->end(), tmp.begin(), tmp.end());&#xA;    return buf_size;&#xA;}&#xA;</char></char>

    &#xA;

    now when i call avformat_write_header() it doesn't call my write_buffer() function + it returns 0 which means success.

    &#xA;

    int ret = avformat_write_header(containerContext, NULL);&#xA;

    &#xA;

    after that i call the appropriate functions to get the data body itself and my write_buffer() get called normally so i am now left with the data body with no header !!

    &#xA;

    how can i get the output header anyways ?

    &#xA;

  • FFmpeg doesn't work in Rails 3 app with Apache and Passenger in GoDaddy CentOS

    29 décembre 2011, par pablo89

    I try to upload a .mp4 video file, and it works ; I made a Bash script that calls ffmpeg in order to get the thumbs of the video. It works fine in localhost, but when I uploaded the project to a dedicated server in GoDaddy with CentOS it doesn't work, it doesn't create the thumbnails, and it shows no error. The Rails App is running under Apache with Passenger. I have tried everything, even I gave 0777 permissions to the action and to the Bash script, but nothing, it doesn't show any error, but it doesn't work.

    This is the action in Rails (as you can see, I use the commands system and exec) :

    def create
     if !params[:video][:video].nil?
       videoName = params[:video][:video].original_filename.gsub(/\s/,&#39;_&#39;)
       @video = Video.new({:title => params[:video][:title], :video => "/worshipvideos/#{videoName}"})
     else
       @video = Video.new({:title => params[:video][:title]})
     end

     if !params[:video][:video].nil?
       tmp = params[:video][:video].tempfile
       file = File.join("public/worshipvideos", videoName)
       FileUtils.cp tmp.path, file
       FileUtils.rm tmp
     end

     respond_to do |format|
       if @video.save
         if !params[:video][:video].nil?
           logger.debug "./createVideoPics.sh &#39;#{videoName}&#39;"
           fork do
             system("./createVideoPics.sh &#39;#{videoName}&#39;")
             #exec("./createVideoPics.sh &#39;#{videoName}&#39;")
           end

           @video.update_attribute("pic1", "worship_pics/#{videoName}_1.jpg")
           @video.update_attribute("pic2", "worship_pics/#{videoName}_2.jpg")
           @video.update_attribute("pic3", "worship_pics/#{videoName}_3.jpg")
         end

         format.html { redirect_to @video, notice: &#39;Video was successfully created.&#39; }
         format.json { render json: @video, status: :created, location: @video }
       else
         format.html { render action: "new" }
         format.json { render json: @video.errors, status: :unprocessable_entity }
       end
     end
    end

    This is the script in Bash :

    #!/bin/bash
    chmod 0777 "public/worshipvideos/$1"
    ffmpeg -i "public/worshipvideos/$1" -an -ss 00:00:20 -r 1 -vframes 1 -f mjpeg -y "app/assets/images/worship_pics/${1}_1.jpg"
    ffmpeg -i "public/worshipvideos/$1" -an -ss 00:00:40 -r 1 -vframes 1 -f mjpeg -y "app/assets/images/worship_pics/${1}_2.jpg"
    ffmpeg -i "public/worshipvideos/$1" -an -ss 00:01:00 -r 1 -vframes 1 -f mjpeg -y "app/assets/images/worship_pics/${1}_3.jpg"
    echo "End of making thumbs"

    If I try to make the command in terminal ./createVideoPics.sh "abc.mp4" it works, it makes the thumbs ; it only doesn't work inside the Rails App.

    What do you think would be the problem ? thanks in advance

  • Streaming to localhost using FFmpeg doesn't work

    16 février 2023, par jostanise

    I'm trying to stream my screen using FFmpeg, but I can't access it using VLC player - it keeps loading the stream and doesn't show anything.

    &#xA;

    The command I use :

    &#xA;

    ffmpeg -f gdigrab -s 1920x1080 -i desktop -preset ultrafast -vcodec libx264 -tune zerolatency -b 900k -f rtp rtp://localhost:1234&#xA;

    &#xA;

    The network URL I put in VLC :

    &#xA;

    udp://localhost:1234&#xA;

    &#xA;

    What am I doing wrong ?

    &#xA;