Recherche avancée

Médias (1)

Mot : - Tags -/iphone

Autres articles (76)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

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

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

Sur d’autres sites (12566)

  • Uploading Reel to Instagram via API error : The video format is not supported

    24 juin 2024, par Ben Fox

    I'm using FFMPeg to create a video with backing audio to upload to Instagram via the Graph API. I've followed the specs here as closely as I can : https://www.facebook.com/business/help/1197310377458196?id=376980407544978 and I've used ffprobe and MediaInfo to try and debug differences between my generated file and the requirements from Meta but every time, I get "Video process failed with error : Unsupported format : The video format is not supported. Please check spec for supported duration format".

    


    I've tried doing binary uploads and supplying a URL via their Resumable Upload protocol with the same result both times.

    


    Media Info Video
Media Info Audio

    


    I've uploaded screenshots from MediaInfo showing the entire breakout of the file and here is the code using the Node package fluent ffmpeg to create it :

    


    await new Promise<void>((resolve, reject) => {&#xA;  ffmpeg()&#xA;    .size(&#x27;1080x1920&#x27;)&#xA;    .aspect(&#x27;9:16&#x27;)&#xA;    .autopad()&#xA;&#xA;    .input(imageFilePath)&#xA;    .videoCodec(&#x27;libx264&#x27;)&#xA;    // .inputFPS(fps)&#xA;&#xA;    .input(audioFilePath)&#xA;&#xA;    .audioCodec(&#x27;aac&#x27;)&#xA;    .audioChannels(2)&#xA;    .audioFrequency(48000)&#xA;    .audioBitrate(&#x27;128k&#x27;)&#xA;&#xA;    .addOption(&#x27;-use_editlist&#x27;, &#x27;0&#x27;)&#xA;    .addOption(&#x27;-movflags&#x27;, &#x27;&#x2B;faststart&#x27;)&#xA;    .addOption(&#x27;-crf&#x27;, &#x27;23&#x27;)&#xA;&#xA;    /* .outputOptions([&#xA;      // YUV color space with 4:2:0 chroma subsampling for maximum compatibility with&#xA;      // video players&#xA;      &#x27;-pix_fmt yuv420p&#x27;,&#xA;    ]) */&#xA;&#xA;    // Set the output duration. It is required because FFmpeg would otherwise&#xA;    // automatically set the duration to the longest input, and the soundtrack might&#xA;    // be longer than the desired video length&#xA;    .duration(duration)&#xA;    // Set output frame rate&#xA;    .fps(fps)&#xA;&#xA;    // Resolve or reject (throw an error) the Promise once FFmpeg completes&#xA;    .toFormat(&#x27;mp4&#x27;)&#xA;    .saveToFile(outputPath)&#xA;    .on(&#x27;end&#x27;, () => resolve())&#xA;    .on(&#x27;error&#x27;, (error) => {&#xA;      console.log(&#x27;[render] :: Error&#x27;, error);&#xA;      reject(new Error(error));&#xA;    });&#xA;});&#xA;</void>

    &#xA;

  • Add a fixed size image on a video, regardless of the video width & height FFMPEG [duplicate]

    30 juillet 2017, par Rita

    This is my code that that is use is following

    $info = pathinfo($file) ;
    $out = "$info[’dirname’]/ss_$info[’basename’]" ;
    exec("ffmpeg -i ’".$file."’ -i ’".SS_ROOT."".$ss->settings[’watermark_image’]."’ -filter_complex ’overlay=main_w-overlay_w-10:main_h-overlay_h-10’ ’".$out."’") ; 

    that works very well, but it doesn’t keep the logo aspect ratio. I tried this code on two videos with different resolution and this is the result

  • Accord.Video.FFMPEG getting error for long video

    30 novembre 2022, par wahyu

    I use Accord.Video.FFMPEG to extract images every 10 frames from a video. Total frames for this video is 38194 frames. First run is good, I can save image every 10 frames but after run of about 38185 frames i got null return from this code Bitmap bmpBaseOriginal = vReader.ReadVideoFrame();, if I see in the video there is no problem at the end of video.

    &#xA;

    I do something like this

    &#xA;

    using (var vReader = new VideoFileReader())&#xA;{&#xA;    vReader.Open(files[0]);&#xA;    TotalFrame = vReader.FrameCount;&#xA;    countin = Convert.ToInt32(TotalFrame / Convert.ToDouble(countAsset));&#xA;    Fps = vReader.FrameRate.Value;                                &#xA;    int a = 0;&#xA;    for (int i = 0; i &lt; vReader.FrameCount; i&#x2B;&#x2B;)&#xA;    {&#xA;         if(i &lt; vReader.FrameCount - 1)&#xA;         {&#xA;              Bitmap bmpBaseOriginal = vReader.ReadVideoFrame();&#xA;              if (i%10 == 0)&#xA;              {&#xA;                  a&#x2B;&#x2B;;&#xA;                  bmpBaseOriginal.Save(string.Format("{0}\\{1}.jpeg", dirVideo.FullName, a), ImageFormat.Jpeg);&#xA;              }&#xA;              bmpBaseOriginal.Dispose();&#xA;         }&#xA;         else&#xA;         {&#xA;              a&#x2B;&#x2B;;&#xA;              Bitmap bmpBaseOriginal = vReader.ReadVideoFrame();&#xA;              bmpBaseOriginal.Save(string.Format("{0}\\{1}.jpeg", dirVideo.FullName, a), ImageFormat.Jpeg);&#xA;              bmpBaseOriginal.Dispose();&#xA;         }&#xA;    }&#xA;    vReader.Close();&#xA;}&#xA;

    &#xA;

    this problem occurs again on another video if the video has a lot of frames, but no problem if the video has a less frames.

    &#xA;

    How to solve it ?

    &#xA;