Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (97)

  • 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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (9589)

  • How to generate a gif image from a video with laravel-ffmpeg ?

    27 août 2021, par Jeannot21

    I am working on a project with laravel 7 and ffmpeg my problem is that I would like to generate a gif image from a video uploader but its not working.

    


    I created a job named ConvertImageGifFromVideo here is its code :

    


    class ConvertImageGifFromVideo implements ShouldQueue
{
 use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;

/**
 * Create a new job instance.
 *
 * @return void
 */
public $video;
public function __construct(Video $video)
{
    $this->video = $video;
}

/**
 * Execute the job.
 *
 * @return void
 */
public function handle()
{

    $destination = '/'.$this->video->uid . '/'.$this->video->uid. '.gif';
    $result = Storage::disk('video-temp/'.$this->video->path);
    $ffmpeg = FFMpeg::create();
    $video = $ffmpeg->open($result);
    $video->gif(TimeCode::fromSeconds(2), new Dimension(640, 480), 3)->save($destination);

   $this->video->update([
       "image_gif" => $this->video->uid. '.gif',
   ]);
  
 }


    


    }

    


    and here is the error message [2021-08-27 12:47:33] [87] Failed : App \ Jobs \ ConvertImageGifFromVideo
And I would like to know if anyone has already encountered this kind of problem or if there is another way to write this code ?

    


  • Combine unordered images to video (+MP3 audio)

    8 mars 2012, par TheSHEEEP

    So I did a few jobs with ffmpeg and also created my own dll, using ffmpeg API directly, but for my next project, I need to be able to combine multiple images together to a video with ffmpeg, also adding a mp3 sound clip.
    I know that you can do that for ordered images like this :

    image001.jpg image002.jpg image003.jpg etc...


    ffmpeg -f image2 -i img%03d.jpg -i sound.mp3 output.mpg

    But in our project, we do not have the images ordered like that. Instead, which images to use for the video in which order is determined at runtime (one image for each frame of a video at 30fps).
    So a video with 10 frames, for example, could have to consist of the following order of images :

    image001.jpg image002.jpg image111.jpg image012.jpg imageFun.jpg image001.jpg image002.jpg imageFun.jpg image055.jpg imageEnd.jpg

    How would I do that using ffmpeg ? This part of the documentation doesn't exactly help me here.

    I really don't want to resort to using the ffmpeg API directly from C/C++, but fear that I have to if that is not possible "natively".

    .

    Addition :

    If that is not possible with ffmpeg, but with some other software (that runs on Linux and can be controlled from command line) - I'm all ears ! ;)

  • Is there a way to cut first 1 second of video from .webm without keyframe present using Ffmpeg ?

    14 avril 2020, par Patrick_42

    Recently I had a task to process several thousand videos, both .mp4 and .webm. The goal was to cut 1 second off from the front of the video. As a constraint, I wanted to avoid re-encoding the videos, as the number of jobs would take far too much time. The .mp4 files went smoothly, each job taking only a few seconds.

    



    However, when trying to accomplish the same thing for the .webm files, I've hit a block. This is command I am running :

    



    ffmpeg -i downloaded_raw_vids/{{vid_hash}}.webm -ss 00:00:01 -map 0 -c copy trimmed_videos/{video_url}.webm


    



    What seems to happen is that no cut or edit happens whatsoever on the .webm files. Now if I change the timestamp to something like

    



    ffmpeg -i downloaded_raw_vids/{{vid_hash}}.webm -ss 00:00:15 -map 0 -c copy trimmed_videos/{video_url}.webm


    



    I end up with a file that has roughly the first 10 seconds cut out, but not the 15 seconds specified.

    



    My understanding is that .webm files can only be cut on keyframes, and the keyframes are too sparse to actually cut around the 1 second mark as desired originally. It does seem like the first keyframe is present around the 10 second mark, which is why the 15 second argument cuts at that point.

    



    Ultimately I am wondering if there is a way to accomplish the 1 second cut, without having to re-encode every .webm file I am working with.