Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (97)

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (7077)

  • how to merge Audio and video in C# windows form other than ffmpeg

    31 janvier 2018, par Tahir Mulla

    Im trying to merge audio and video using ffmpeg following is my code,
    problem is it take too much time for long video,is there any other way of merging audio and video files

           string Path_FFMPEG = Application.StartupPath + "\\ffmpeg.exe";
           string Wavefile = applicationPath + @"\Vizipp_Video_" + currentDateTime + ".wav"; ;
           string videoFile = applicationPath + @"\Vizipp_Video_" + currentDateTime + ".avi";
           string strResult = applicationPath + @"\Vizipp_Video_" + currentDateTime + ".mpg";

           System.Diagnostics.Process proc = new System.Diagnostics.Process();


               proc.StartInfo.Arguments = string.Format("-i {0} -i {1} {2}", Wavefile, videoFile, strResult);
               proc.StartInfo.UseShellExecute = false;
               proc.StartInfo.CreateNoWindow = false;
               proc.StartInfo.RedirectStandardOutput = true;
               proc.StartInfo.RedirectStandardError = true;
               proc.StartInfo.FileName = Path_FFMPEG;
               proc.Start();
               //string StdOutVideo = proc.StandardOutput.ReadToEnd();
               //string StdErrVideo = proc.StandardError.ReadToEnd();
               MessageBox.Show("Please wait while we are processing on your video recording...", "Vizipp", MessageBoxButtons.OK, MessageBoxIcon.Information);
  • Error during use of ffmpeg for the joining of images to form a video file

    19 juin 2022, par Commoner

    I am trying to join a sequence of images (*.png) using ffmpeg. The filenames of the images are in the following format : recon_0001.png,  recon_0002.png, ... , recon_0100.png. I would like to join the images sequentially (i.e. recon_0001.png being the first frame, recon_0002.png the second frame and so on.)

    



    After looking at the following link : Python : Make a video using several .png images , I tried to implement my task using the following code :

    



    from __future__ import division
import cv2
import os
import matplotlib.pyplot as plt
from pylab import pcolor, show, colorbar, xticks, yticks
import numpy as np

if(1):
    ffmpeg -f image2 -r 1/5 -i /Users/Username/Folder/recon_%04d.png -vcodec mpeg4 -y movie.mp4


    



    But, I get the following error :

    



    ffmpeg -f image2 -r 1/5 -i /Users/Username/Folder/recon_%04d.png -vcodec mpeg4 -y movie.mp4
               ^
SyntaxError: invalid syntax


    



    What am I missing here ? I am new to the use of ffmpeg and I will really appreciate any help.

    


  • how can I get the length of an video in order to validate django form before upload can begin ?

    20 juin 2018, par GetItDone

    I have an app running on heroku that allows users to upload videos, then I use ffmpeg to preform 3 tasks using celery and redis-to-go :

    1) Check the format and if it isn't already mp4, convert it to mp4.
    2) Extract a 3 minute clip, in mp4 format
    3) Grab an image from the video

    The problem is that I want to verify the video length before the video is uploaded and the three tasks are run since I want to make sure all videos are at least 15 minutes, and if not I want to raise a ValidationError. So when validating the form, I want to do something like this :

    def clean(self, *args, **kwargs):        
       data = super(ContentTypeRestrictedVideoField, self).clean(*args, **kwargs)

       file = data.file
       try:
           content_type = file.content_type
           main, extension = content_type.split('/')
           if content_type in self.content_types:
               if file._size > self.max_upload_size:
                   raise forms.ValidationError(_('Please keep filesize under %s. Current filesize %s') % (filesizeformat(self.max_upload_size), filesizeformat(file._size)))
               if VIDEO_LENGTH < MINIMUM_LENGTH:
                   raise forms.ValidationError(_('Please make sure video file is at least %s. Current video length %s') % (MINIMUM_LENGTH, VIDEO_LENGTH)
           else:
               raise forms.ValidationError(_('File type is not supported. File must be mov, flv, avi, mpeg, wmv, or mp4.'))
       except AttributeError:
           pass        

       return data

    What could I do for VIDEO_LENGTH and MINIMUM_LENGTH ? I read that ffprobe could be used for getting the duration, but it isn’t available with the buildpack I am using and I am very inexperienced. I can’t just validate file size because it can vary greatly depending on numerous factors. Anyone have any solution as to what I could try ? Thanks