Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP 0.2

Autres articles (31)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • 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 : Mettre en ligne simplement des documents

    29 octobre 2010, par

    Le plugin emballe médias a été développé principalement pour la distribution mediaSPIP mais est également utilisé dans d’autres projets proches comme géodiversité par exemple. Plugins nécessaires et compatibles
    Pour fonctionner ce plugin nécessite que d’autres plugins soient installés : CFG Saisies SPIP Bonux Diogène swfupload jqueryui
    D’autres plugins peuvent être utilisés en complément afin d’améliorer ses capacités : Ancres douces Légendes photo_infos spipmotion (...)

Sur d’autres sites (4032)

  • How to create video file using fs from react form ?

    7 avril 2021, par Kirasiris

    I'm developing a section in which I need to create a video from a form that I'm using in a React application ; the returned data that I get from said file is this :

    


    File >
   lastModified: 1617759553928
   lastModifiedDate: Tue Apr 06 2021 20:39:13 GMT-0500 (Central Daylight Time) {}
   name: "Shinobi Sisters.mp4"
   path: "Shinobi Sisters.mp4"
   size: 2564227
   type: "video/mp4"
   webkitRelativePath: ""
   __proto__: File


    


    I'm sending all of that to a function called createDirectoryAndFile(path, file), which so far looks like this :

    


    // CREATE VIDEO FILE
const dir = './temp';
const createDirectoryAndFile = async (inputPath, inputContent) => {
  if (!fs.existsSync(dir)) {
    fs.mkdir(dir, { recursive: true });
  }

  fs.writeFile(inputPath, inputContent, (err) => {
    if (err) {
      console.error('An error ocurred', err);
    } else {
      console.log('Your file has been made');
    }
  });
};


    


    It gets to the point in which is able to create the 'temp' directory but fails to place the video within it. Is there a reason for this ?

    


    I need this because this is the starting point for me to work in my application. I'm trying to upload a video, create a second copy of it with a watermark(thanks to ffmpeg and ffprobe) and then finally upload it to AWS S3.

    


    From my understanding all of that is only possible if the video is actually exists(not in memory).

    


    Do you have guys have any idea ? Yes, I already installed ffmpeg and ffprobe

    


  • Python : How to clip/trim required part from the video and move the trimmed video file to other directory

    4 avril 2021, par saurabh

    I'm trying to remove duplicate segments from videos from a directory and paste these trimmed videos to other directory.

    


    For example :

    


    I've following directory structure for saving live rtsp stream (each 1 min long) :-

    


    Live_videos
------2021-04-04
      ------stream1
            -------14 36 08.avi( 1 min)
                   14 37 08.avi( Saved only till 14 37 39 mark due to disconnect with stream1 camera)
                   14 38 35.avi( 1 min)
            stream2
            -------14 36 15.avi( 1 min)
                   14 37 15.avi( 1 min)
                   14 38 14.avi( 1 min)


    


    So, the disconnect and reconnect time are 14 37 40 and 14 38 34 respectively which will be sent to some other server and that server will search for videos saved in their machine which contains segments from the given timestamps and sends the video file in following directory structure : -

    


    Edge_videos
-----------2021-04-04
           ----------stream1
                     -------14 36 35.avi
                     -------14 37 35.avi


    


    Now, you can see that the received video files have the required segments from disconnect period as well as duplicate segments which are already saved in Live_videos directory.

    


    How do I remove the duplicate segments from the received videos and move only the required trimmed video file to the Live_videos----> stream1 directory and delete all the files from Edge_videos afterwards.

    


  • Could not convert video to audio using ffmpeg or moviepy

    5 avril 2021, par Parv Jain

    I want to convert a mp4 video file to mp3/wav audio using python ffmpeg or moviepy.
when I run this command

    


    ffmpeg -i vid.mp4 -ar 44100 -vn audio.wav


    


    It returns

    


    Output file #0 does not contain any stream


    


    Here is the full Log

    


    ffmpeg version N-55702-g920046a Copyright (c) 2000-2013 the FFmpeg developers
  built on Aug 21 2013 18:10:00 with gcc 4.7.3 (GCC)
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 42.100 / 52. 42.100
  libavcodec     55. 29.100 / 55. 29.100
  libavformat    55. 14.101 / 55. 14.101
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 82.100 /  3. 82.100
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'vid.mp4':
  Metadata:
    major_brand     : dash
    minor_version   : 0
    compatible_brands: iso6avc1mp41
    creation_time   : 2021-03-12 14:13:58
  Duration: 00:07:28.87, start: 0.000000, bitrate: 1199 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 1197 kb/s, 23.98 tbr, 24k tbn, 47.95 tbc
    Metadata:
      creation_time   : 2021-03-12 14:13:58
      handler_name    : ISO Media file produced by Google Inc.
Output #0, wav, to 'audio.wav':
  Metadata:
    major_brand     : dash
    minor_version   : 0
    compatible_brands: iso6avc1mp41
Output file #0 does not contain any stream


    


    I searched the internet for this but could not find a solution

    


    Please tell if there is a way to do this with ffmpeg or another way

    


    I also tried to use moviepy but it was not successful.

    


    Here is moviepy log

    


    Traceback (most recent call last):&#xA;  File "path\to\file\script.py", line 3, in <module>&#xA;    clip.audio.write_audiofile(r&#x27;audio.mp3&#x27;)&#xA;AttributeError: &#x27;NoneType&#x27; object has no attribute &#x27;write_audiofile&#x27;&#xA;</module>

    &#xA;

    this is my code for moviepy

    &#xA;

    import moviepy.editor as mp&#xA;clip = mp.VideoFileClip(&#x27;vid.mp4&#x27;)&#xA;clip.audio.write_audiofile(r&#x27;audio.mp3&#x27;)&#xA;

    &#xA;