
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (32)
-
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...) -
Pas question de marché, de cloud etc...
10 avril 2011Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
sur le web 2.0 et dans les entreprises qui en vivent.
Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)
Sur d’autres sites (3741)
-
how to pipe ffmpeg to ffmpeg ?
4 juillet 2022, par imagesckHow to pipe ffmpeg output frame by frame to ffmpeg ? i dont see any library either nodejs or python that as powerfull as the application directly. so what i need to do is take rawvideo from ffmpeg, then manipulate in middle stage, then push again that buffer to ffmpeg. i got inavlid buffer size after encode 24 frames. is stdin buffer push too fast ?


const { spawn } = require('child_process');
const path = require('path');

const decArgs = [
 '-i', path.join(__dirname + '/public/blackpink.mp4'),
 '-c:v', 'copy',
 '-an',
 '-f', 'rawvideo',
 '-'
];

const decode = spawn('ffmpeg', decArgs);

const encArgs = [
 '-f', 'rawvideo',
 '-video_size', '854x480',
 '-i', '-',
 '-c:v', 'libx264',
 '-preset', 'ultrafast',
 '-crf', '30',
 '-pix_fmt', 'yuv420p',
 '-y',
 path.join(__dirname + '/public/output.mp4')
];

const encode = spawn('ffmpeg', encArgs, {
 stdio: [
 decode.stdout,
 null,
 null
 ]
})

encode.stderr.on('data', data => {
 console.log(data.toString())
})



-
FFmpeg seeking in Mpeg4 streams
4 juillet 2012, par Chris RobinsonI am currently attempting to develop a player that can perform accurate seeking based on an mpeg4 elementary video stream. I'm in the planning stage and trying to decide how to go about things and I'd like some advice before I start.
Some things to note are :- I will have complete control over the encoding of the file.
- The original content will be I-frame only
- FFmpeg is the encoding/decoding library
- Audio can be disregarded for now. I will only be dealing with the video stream.
- Frame accurate seeking must be implemented
So, when I'm encoding the content, can I query what type of frame (I, P, B) has been encoded so I can construct an additional index stream for the seeking operation. If not, I can query the GOP after it has been encoded to find the I-frame.
As for playback, the user needs to be able to type in a specific time and go to that frame (the nearest I-frame will be suitable for now). We can assume that the GOP is closed and the length is fairly short (e.g. 15 frames). My thoughts are to query the index stream that I created during encode and determine the relevant distance into the stream for the requested time.
I'm not sure how to seek using the FFMpeg library when playing back files.
Has anyone done anything similar and if so, can you give a brief explanation of how you did it ?
-
How to import fluent-ffmpeg in AWS lambda ?
30 janvier 2020, par FookI’m trying to use fluent-ffmpeg in AWS Lambda, but cannot get it setup correctly. At the top of my index.js :
import ffmpeg from "fluent-ffmpeg";
But it is always undefined.
ffmpeg === undefined
.I’m using Serverless and have ffmpeg included as a layer.
serverless.yaml
functions:
createGifFromVideo:
handler: src/services/createGifFromVideo/index.handler
layers:
- { Ref: FfmpegLambdaLayer }
events:
- sns: arn:aws:sns:us-east-1:${self:custom.accountId}:NewVideoPostContentTopic-${self:provider.stage}
layers:
ffmpeg:
path: src/layerspackage.json
{
"name": "createGifFromVideo",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"private": true,
"dependencies": {
"fluent-ffmpeg": "^2.1.2"
}
}The uploaded lambda seems to be constructed correctly from what I can tell. Webpack builds the file with fluent-ffmpeg merged in and it is linked to the ffmpeg layer.
I can load other packages. It’s just fluent-ffmpeg that comes back
undefined
.From the docs it mentions passing
FFMPEG_PATH
andFFPROBE_PATH
as environment variables. Are these necessary with a layer ?I would be grateful to see a configuration that works.