
Recherche avancée
Médias (1)
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
Autres articles (7)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Gestion générale des documents
13 mai 2011, parMé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 (...) -
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)
Sur d’autres sites (3067)
-
Anomalie #4108 (Fermé) : Critère IN et #ENV
4 mars 2018, par Maïeul RouquetteDu fait que SPIP traite les #ENV comme des chaînes, ont ne peut pas utiliser un #ENV pour définir un IN sous forme de liste séparées par virgule.
#ID_ARTICLE
Sur http://astro.dev/?page=toto&ids_article=1,105
donneSELECT articles.id_article, articles.lang, articles.titre FROM central_articles AS `articles` WHERE (articles.statut = ’publie’) AND ((articles.id_article IN (’1,105’))) ORDER BY FIELD(articles.id_article,’1,105’)
et pas
SELECT articles.id_article, articles.lang, articles.titre FROM central_articles AS `articles` WHERE (articles.statut = ’publie’) AND ((articles.id_article IN (1,105))) ORDER BY FIELD(articles.id_article,1,105)
comme on pourrait souhaiter.
-
Looking to play back non-encoded video upload then export gif from selection point via FFMPEG
10 novembre 2019, par Christopher NeilWe’ve been trying to crack this code all week, reaching out to everyone to see if you have any solutions ?
- We want the user to upload a video and in the next step he will select a small 5 second loop of the video which will be made as a gif.
- Old developer was able to do this by splicing the video at 10 seconds instead of 5 but not re-encoding it meant that it would sometimes be beyond 12 seconds and in some cases less than 7.
- We changed the code to force keyframes with re encoding so that it splices the video at exactly 5 seconds to show the loop.
- These slices are shown to the user using html5 video player.
- Upon selection of the loop that sliced video is converted to gif.
Everything is working in the vice order. The issue is when the user uploads a large sized and length video this slicing and re-encoding takes forever and that cause the user to feel the site is not working properly.
What we want is very simple :
- Show 5 second portion of the video on loop.
- If user wants to select another loop he/she clicks the next button and is taken to the next 5 second loop which would be either at 25% of the video or some other
- On selection of that portion it converts it into gif.
-
How to get the buffer of the first frame of a video using ffmpeg ? (Node.js)
12 avril 2024, par Mahmoud WalidI am trying to use child_processes and ffmpeg to do this, but it returns this error :


FFmpeg stderr: [AVFilterGraph @ 00000157fd55abc0] No option name near 'eq(n, 0)"'
[AVFilterGraph @ 00000157fd55abc0] Error parsing a filter description around:
[AVFilterGraph @ 00000157fd55abc0] Error parsing filterchain '"select=eq(n\, 0)"' around:
[vost#0:0/libx264 @ 00000157fd574700] Error initializing a simple filtergraph
Error opening output file pipe:1.
Error opening output files: Invalid argument

FFmpeg process exited with code: 4294967274



When I run that command in the terminal, it works fine, but it doesn't work in the code.
Here's the command (terminal version) :

ffmpeg -i input/vid.mp4 -vf "select=eq(n\,0)" -vframes 1 out.png


And heres the code :


import { spawn } from 'child_process';

const inputVideoPath = 'input/vid.mp4';

const ffmpeg = spawn('ffmpeg', [
 '-i', inputVideoPath,
 '-vf', '"select=eq(n\\, 0)"',
 '-vframes', '1',
 '-f', 'mp4',
 'pipe:1'
]);

let buffer = Buffer.from([]);
ffmpeg.stdout.on('data', (data) => {
 buffer = Buffer.concat([buffer, data]);
});

ffmpeg.stderr.on('data', (data) => {
 console.error('FFmpeg stderr:', data.toString());
});

ffmpeg.on('exit', (code) => {
 if (code == 0) {
 console.log('FFmpeg process exited successfully.');
 console.log(`Buffer size: ${buffer.length} bytes`);
 } else {
 console.error(`FFmpeg process exited with code: ${code}`);
 }
});

ffmpeg.on('error', (err) => {
 console.error('FFmpeg error:', err);
});



Note : I know I'm not doing anything with the buffer, I just want it to work first then I'll start working with the output