
Recherche avancée
Médias (1)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
Autres articles (43)
-
Publier sur MédiaSpip
13 juin 2013Puis-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, parDeux 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, parMediaSPIP 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 MarkI 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>
 <div>
 <input type="file" accept="video/*" />
 <video ref="video" controls="controls"></video>
 </div>
</template>

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





-
ffmpeg merge multiple audio files with offset and duration into a single video file [closed]
13 avril 2024, par CLIFFORD P YTrying to merge two audio files into a single video at specific offset and duration


What I tried


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


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



Expected output


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.


What I am getting


output mixes only first audio


Any help appreciated.


-
No such file or directory : 'ffmpeg' in Django/Docker
6 avril 2024, par tthheemmaanniiI 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: 'ffmpeg'
whenever I try to run my code.

Here's my views.py :


def initiate_transcription(request, session_id):
 ...
 with open(file_path, 'rb') as f:
 path_string = f.name
 transcript = transcribe_file(path_string,audio_language, output_file_type)

 ...



Here's my Dockerfile :


# Pull base image
FROM python:3.11.4-slim-bullseye

# Set environment variables
ENV PIP_NO_CACHE_DIR off
ENV PIP_DISABLE_PIP_VERSION_CHECK 1
ENV PYTHONUNBUFFERED 1
ENV PYTHONDONTWRITEBYTECODE 1
ENV COLUMNS 80

#install Debian and other dependencies that are required to run python apps(eg. git, python-magic).
RUN apt-get update \
 && apt-get install -y --force-yes \
 nano python3-pip gettext chrpath libssl-dev libxft-dev \
 libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev\
 && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y git
RUN apt-get update && apt-get install -y libmagic-dev
RUN apt-get -y update && apt-get -y upgrade && apt-get install -y --no-install-recommends ffmpeg


# Set working directory for Docker image
WORKDIR /code/

RUN apt-get update \
 && apt-get -y install libpq-dev gcc

# Install dependencies
COPY requirements.txt .
RUN pip install -r requirements.txt

# Copy project
COPY . .



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