Recherche avancée

Médias (1)

Mot : - Tags -/remix

Autres articles (61)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (7121)

  • Download Instagram Livestreams [closed]

    19 décembre 2020, par UnixCoon

    I've been looking for what Instagram livestreams can download for a long time. I can only record you via screen recording on my iPhone. But I would much rather just download it with my computer.

    


    I've tried a lot, but I can't get the video address where a live stream is playing. I know that it is possible to download a YouTube livestream, for example, with ffmpeg.

    


    Maybe any of you know how I download Instagram livestreams ? I would be very, very happy.

    


    I am grateful for every answer
Greetings UnixCoon

    


  • Ffmpeg only receives a piece of information from the pipe

    4 juillet 2017, par Maxim Fedorov

    First of all - my english is not very good, i`m sorry for that.

    I use ffmpeg from c# to convert images to video. To interact with ffmpeg, I use pipes.

    public async Task ExecuteCommand(
           string arguments,
           Action<namedpipeserverstream> sendDataUsingPipe)
       {
           var inStream = new NamedPipeServerStream(
               "from_ffmpeg",
               PipeDirection.In,
               1,
               PipeTransmissionMode.Byte,
               PipeOptions.Asynchronous,
               PipeBufferSize,
               PipeBufferSize);

           var outStream = new NamedPipeServerStream(
               "to_ffmpeg",
               PipeDirection.Out,
               1,
               PipeTransmissionMode.Byte,
               PipeOptions.Asynchronous,
               PipeBufferSize,
               PipeBufferSize);

           var waitInConnectionTask = inStream.WaitForConnectionAsync();
           var waitOutConnectionTask = outStream.WaitForConnectionAsync();

           byte[] byteData;

           using (inStream)
           using (outStream)
           using (var inStreamReader = new StreamReader(inStream))
           using (var process = new Process())
           {
               process.StartInfo = new ProcessStartInfo
               {
                   RedirectStandardOutput = true,
                   RedirectStandardError = true,
                   RedirectStandardInput = true,
                   FileName = PathToFfmpeg,
                   Arguments = arguments,
                   UseShellExecute = false,
                   CreateNoWindow = true
               };

               process.Start();

               await waitOutConnectionTask;

               sendDataUsingPipe.Invoke(outStream);

               outStream.Disconnect();
               outStream.Close();

               await waitInConnectionTask;

               var logTask = Task.Run(() => process.StandardError.ReadToEnd());
               var dataBuf = ReadAll(inStream);

               var shouldBeEmpty = inStreamReader.ReadToEnd();
               if (!string.IsNullOrEmpty(shouldBeEmpty))
                   throw new Exception();

               var processExitTask = Task.Run(() => process.WaitForExit());
               await Task.WhenAny(logTask, processExitTask);
               var log = logTask.Result;

               byteData = dataBuf;

               process.Close();
               inStream.Disconnect();
               inStream.Close();
           }

           return byteData;
       }
    </namedpipeserverstream>

    Action "sendDataUsingPipe" looks like

    Action<namedpipeserverstream> sendDataUsingPipe = stream =>
           {
               foreach (var imageBytes in data)
               {
                   using (var image = Image.FromStream(new MemoryStream(imageBytes)))
                   {
                       image.Save(stream, ImageFormat.Jpeg);
                   }
               }
           };
    </namedpipeserverstream>

    When I send 10/20/30 images (regardless of the size) ffmpeg processes everything.
    When I needed to transfer 600/700 / .. images, then in the ffmpeg log I see that it only received 189-192, and in the video there are also only 189-192 images.
    There are no errors in the logs or exceptions in the code.

    What could be the reason for this behavior ?

  • Crop and pinch zoom image with FFMPEG

    27 septembre 2022, par hugger

    I am working on a simple photo editor component for a mobile app which requires the user to be able to pan and scale (zoom) an image to be cropped. S/O to @kesh for the help so far !

    &#xA;

    With the pinch zoom value which ranges from 1-5, I wish to use this in my FFMPEG execution along with the crop command :

    &#xA;

      cropSelected() {&#xA;    this.setState({ isCropping: true });&#xA;&#xA;    const diff =&#xA;      this.props.videoHeight / (this.state.aspectRatio * deviceWidth);&#xA;    const offsetDiff = this.state.offsetTopTranslate * diff;&#xA;&#xA;    var filterPathPostCrop =&#xA;      this.props.type === &#x27;photo&#x27;&#xA;        ? RNFS.DocumentDirectoryPath &#x2B; &#x27;/afterCrop.png&#x27;&#xA;        : this.props.type === &#x27;gif&#x27;&#xA;        ? RNFS.DocumentDirectoryPath &#x2B; &#x27;/afterCrop.gif&#x27;&#xA;        : RNFS.DocumentDirectoryPath &#x2B; &#x27;/afterCrop.mp4&#x27;;&#xA;    //hardcoded zoom at 1.2x for example!&#xA;    FFmpegKit.execute(&#xA;      `-y -i ${this.state.mediaSource} -vf "crop=iw/1.2:ih/1.2:0:${offsetDiff},scale=iw:-1" -qscale 0 -frames:v 1 ${filterPathPostCrop}`&#xA;    ).then(async (session) => {&#xA;      const returnCode = await session.getReturnCode();&#xA;      if (ReturnCode.isSuccess(returnCode)) {&#xA;        // SUCCESS&#xA;&#xA;        Animated.spring(this._pinchScale, {&#xA;          toValue: 1,&#xA;          useNativeDriver: true,&#xA;        }).start();&#xA;&#xA;        this.setState(&#xA;          {&#xA;            mediaSource: filterPathPostCrop,&#xA;            videoSourcePreview: `${filterPathPostCrop}?${new Date().getTime()}`,&#xA;            ffMPEGinProgress: null,&#xA;            aspectRatio: 1080 / 1080,&#xA;            videoTime: 0,&#xA;            isPlayingVideo: false,&#xA;            isCropping: false,&#xA;            filterOutputIsAlt: !this.state.filterOutputIsAlt,&#xA;            wasCropped: true,&#xA;          });&#xA;      } else if (ReturnCode.isCancel(returnCode)) {&#xA;        // CANCEL&#xA;      } else {&#xA;        // ERROR&#xA;        alert(&#x27;error&#x27;);&#xA;      }&#xA;    });&#xA;  }&#xA;

    &#xA;

    I drew this to illustrate what I am trying to achieve here.

    &#xA;

    example

    &#xA;

    I hope this helps !

    &#xA;