Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (43)

  • 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

  • Déploiements possibles

    31 janvier 2010, par

    Deux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
    L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
    Version mono serveur
    La version mono serveur consiste à n’utiliser qu’une (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (6234)

  • Efficient Video Compression with ffmpeg.js

    24 mai 2024, par John Mark

    I attempted to upload and compress a video using ffmpeg.js. However, it appears that this process is ineffective on modern browsers. I have already implemented console logging to verify if the video compression is occurring, yet thus far, no compression has been achieved. Could anyone suggest an alternative library for video compression that might better suit the requirements ?

    


    <template>&#xA;  <div>&#xA;    <input type="file" accept="video/*" />&#xA;    <video ref="video" controls="controls"></video>&#xA;  </div>&#xA;</template>&#xA;&#xA;<code class="echappe-js">&lt;script&gt;&amp;#xA;import { FFmpeg } from &amp;#x27;@ffmpeg/ffmpeg&amp;#x27;;&amp;#xA;&amp;#xA;export default {&amp;#xA;  methods: {&amp;#xA;    async handleFileInputChange(event) {&amp;#xA;      const file = event.target.files[0];&amp;#xA;      if (!file) return;&amp;#xA;&amp;#xA;      const video = this.$refs.video;&amp;#xA;      const url = URL.createObjectURL(file);&amp;#xA;      video.src = url;&amp;#xA;&amp;#xA;      const inputVideoPath = &amp;#x27;input.mp4&amp;#x27;;&amp;#xA;      const outputVideoPath = &amp;#x27;compressed_output.mp4&amp;#x27;;&amp;#xA;&amp;#xA;      console.log(&quot;Compressing video...&quot;);&amp;#xA;      await this.compressVideo(file, inputVideoPath, outputVideoPath);&amp;#xA;      console.log(&quot;Compression completed.&quot;);&amp;#xA;&amp;#xA;      video.src = URL.createObjectURL(await this.downloadFile(outputVideoPath));&amp;#xA;    },&amp;#xA;    async compressVideo(file, inputVideoPath, outputVideoPath) {&amp;#xA;      const ffmpeg = new FFmpeg();&amp;#xA;      await ffmpeg.load();&amp;#xA;&amp;#xA;      // Writing the input file to the FFmpeg file system&amp;#xA;      await ffmpeg.writeFile(inputVideoPath, file);&amp;#xA;&amp;#xA;      // Execute FFmpeg command for compression&amp;#xA;      await ffmpeg.exec([&amp;#x27;-i&amp;#x27;, inputVideoPath, &amp;#x27;-vcodec&amp;#x27;, &amp;#x27;libx264&amp;#x27;, &amp;#x27;-crf&amp;#x27;, &amp;#x27;28&amp;#x27;, outputVideoPath]);&amp;#xA;    },&amp;#xA;    async downloadFile(filePath) {&amp;#xA;      const ffmpeg = new FFmpeg();&amp;#xA;      await ffmpeg.load();&amp;#xA;&amp;#xA;      // Read the compressed file from FFmpeg file system&amp;#xA;      const data = await ffmpeg.readFile(filePath);&amp;#xA;&amp;#xA;      return new Blob([data.buffer], { type: &amp;#x27;video/mp4&amp;#x27; });&amp;#xA;    }&amp;#xA;  }&amp;#xA;};&amp;#xA;&lt;/script&gt;&#xA;&#xA;&#xA;

    &#xA;

  • ffmpeg merge multiple audio files with offset and duration into a single video file [closed]

    13 avril 2024, par CLIFFORD P Y

    Trying to merge two audio files into a single video at specific offset and duration

    &#xA;

    What I tried

    &#xA;

    checked previous stack overflow questions and answers, no one matched my requirements, below is the command i tried

    &#xA;

    ffmpeg -i 5a54b260-f8a0-11ee-99e0-2d7afd1305f3.mp4 \&#xA;   -i 62d24fb0-f8a0-11ee-99e0-2d7afd1305f3.wav \&#xA;   -i 76cf3190-f8a0-11ee-99e0-2d7afd1305f3.wav \&#xA;   -filter_complex "[1:a]adelay=0|0,atrim=0:18[a1trimmed]; \&#xA;                    [2:a]adelay=20000|20000,atrim=0:10[a2trimmed];\&#xA;                    [a1trimmed][a2trimmed]amix=inputs=2[aout]" \&#xA;   -map 0:v -map "[aout]" -c:v copy -c:a aac -shortest output.mp4&#xA;

    &#xA;

    Expected output

    &#xA;

    Video with both the audios( 62d24fb0-f8a0-11ee-99e0-2d7afd1305f3.wav, 76cf3190-f8a0-11ee-99e0-2d7afd1305f3.wav) first audio start at video start and last for 18 seconds then second audio start at 20 seconds and last for 10 seconds.

    &#xA;

    What I am getting

    &#xA;

    output mixes only first audio

    &#xA;

    Any help appreciated.

    &#xA;

  • No such file or directory : 'ffmpeg' in Django/Docker

    6 avril 2024, par tthheemmaannii

    I run my Django code in Docker. I run transcription software that requires ffmpeg to function. However I've been getting the error [Errno 2] No such file or directory: &#x27;ffmpeg&#x27; whenever I try to run my code.

    &#xA;

    Here's my views.py :

    &#xA;

    def initiate_transcription(request, session_id):&#xA;    ...&#xA;                with open(file_path, &#x27;rb&#x27;) as f:&#xA;                    path_string = f.name&#xA;                    transcript = transcribe_file(path_string,audio_language, output_file_type)&#xA;&#xA;   ...&#xA;

    &#xA;

    Here's my Dockerfile :

    &#xA;

    # Pull base image&#xA;FROM python:3.11.4-slim-bullseye&#xA;&#xA;# Set environment variables&#xA;ENV PIP_NO_CACHE_DIR off&#xA;ENV PIP_DISABLE_PIP_VERSION_CHECK 1&#xA;ENV PYTHONUNBUFFERED 1&#xA;ENV PYTHONDONTWRITEBYTECODE 1&#xA;ENV COLUMNS 80&#xA;&#xA;#install Debian and other dependencies that are required to run python apps(eg. git, python-magic).&#xA;RUN apt-get update \&#xA; &amp;&amp; apt-get install -y --force-yes \&#xA; nano python3-pip gettext chrpath libssl-dev libxft-dev \&#xA; libfreetype6 libfreetype6-dev  libfontconfig1 libfontconfig1-dev\&#xA;  &amp;&amp; rm -rf /var/lib/apt/lists/*&#xA;RUN apt-get update &amp;&amp; apt-get install -y git&#xA;RUN apt-get update &amp;&amp; apt-get install -y libmagic-dev&#xA;RUN apt-get -y update &amp;&amp; apt-get -y upgrade &amp;&amp; apt-get install -y --no-install-recommends ffmpeg&#xA;&#xA;&#xA;# Set working directory for Docker image&#xA;WORKDIR /code/&#xA;&#xA;RUN apt-get update \&#xA;    &amp;&amp; apt-get -y install libpq-dev gcc&#xA;&#xA;# Install dependencies&#xA;COPY requirements.txt .&#xA;RUN pip install -r requirements.txt&#xA;&#xA;# Copy project&#xA;COPY . .&#xA;

    &#xA;

    I've searched online for possible solutions but have not been able to find anything similar to my problem

    &#xA;