Recherche avancée

Médias (0)

Mot : - Tags -/tags

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (21)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • 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

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

Sur d’autres sites (5047)

  • ffmpeg failed to drawbox and set volume

    27 janvier 2021, par Hussam Al-Barodi

    I don't know what is wrong in my command with ffmpeg.
Lets say I have a video and I want to make a black screen with muted audio between 20-30 seconds. So what I wrote is :

    


    ffmpeg -i input.mp4 -filter_complex "[0:v]trim=0:20[0v];[0:a]atrim=0:20[0a];[0:v]trim=20:30,drawbox=color=black:t=fill[1v];[0:a]atrim=20:30,volume=0[1a];[0:v]trim=30:60[2v];[0:a]atrim=30:60[2a];[0v][1v][2v]concat=n=3:v=1:a=0[outv];[0a][1a][2a]concat=n=3:v=0:a=1[outa]" -map [outv] -map [outa] output.mp4


    


    Now, I expect to have a video with 1 min length where the seconds between 20 & 30 are muted with black screen, but what I got is :

    


    20 sec correct
20 sec freezing video with no audio
40 sec black video with no audio
30 sec correct


    


    Can anyone help and tell me what is wrong in the command line ?

    


  • Different filesizes for images generated using octave and python

    17 décembre 2020, par lakshayg

    I am using python (scikit-image) and octave to generate 200 images as follows

    


    Python3

    


    import numpy as np
from skimage.io import imsave

images = [255*np.ones((100,100), dtype=np.uint8),  # white
             np.zeros((100,100), dtype=np.uint8)]  # black

for i in range(200): # save alternating black and white images
    imsave('%04d.png'%(i+1), images[i%2])


    


    Octave

    


    pkg load image;

im1 = 255*ones(100,100); # white
im2 = zeros(100,100);    # black
for i=1:200
    name = sprintf('%04d.png', i);
    if mod(i,2) == 0
        imwrite(im1, name);
    else
        imwrite(im2, name);
    end
end


    


    Next, I use ffmpeg to generate two videos (alternating white and black frames) from these two sets of images using the following command

    


    ffmpeg -r 10 -loglevel quiet \
       -i ./%04d.png -c:v libx264 \
       -preset ultrafast -crf 0 ./out.mkv


    


      

    1. Sizes of image files generated by both these codes are different.
    2. 


    


      

    • Octave white : 192 bytes, black : 98 bytes
    • 


    • Python white : 120 bytes, black : 90 bytes
    • 


    


      

    1. Sizes of video files generated from these octave and python images are significantly different from each other.
    2. 


    


      

    • Octave filesize : 60 kilobytes
    • 


    • Python filesize : 116 kilobytes
    • 


    


    Why do we have this apparently very strange behavior ?

    


    EDIT

    


    Since it was suggested that the behavior might be due to octave and python using different bit-depths to store the images, I changed the octave code to use 8 bit numbers

    


    im1 = uint8(255*ones(100,100)); # white
im2 = uint8(zeros(100,100));    # black


    


    and now the image file sizes are nearly the same

    


      

    • Octave white : 118 bytes, black : 90 bytes
    • 


    • Python white : 120 bytes, black : 90 bytes
    • 


    


    but the problem is still the same for video files, octave : 60K, python : 116K

    


  • Creating App from Terminal code

    11 août 2014, par user3084141

    Good evening,
    I want to create an app that demuxes Audio from a Videofile with ffmpeg,that uses the following Terminal-code

    "ffmpeg location" -i "Source.file (Video.mp4)" -vn -ss "time" -t "sec" -acodec copy "Destination.file ("Audio.m4a")"

    I couldn’t find a ffmpeg gui for OSX that would let me do that.
    The Programm should ask for a Source file, a destination, start time and length.
    ffmpeg could be integrated or specified.

    Maybe it’s easier to Automate a Service.

    I’m sorry the I don’t have any experience on mac and automating Terminal commands.
    I have to start from 0 only a little bit visual basic experience.