
Recherche avancée
Autres articles (66)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (8674)
-
Can't upload folder with large amount of files to google storage. I using "@ffmpeg-installer/ffmpeg" and @google-cloud/storage
20 juillet 2022, par DmytroI upload file to google storage using "@ffmpeg-installer/ffmpeg" and @google-cloud/storage in my node.js App.
Step 1. file uploading to fs is in child processes - one process for each type of resolution (totaly six).
step 2. encription (converting to stream)
step 3. upload to google storage


I use "Upload a directory to a bucket" in order to send the video from the client to the Google Cloud Storage bucket.


This way is working fine only with small video.


for example when I upload video with duration one hour it split on chunk and totally I get more three thousands files. But the problem occurs when there are more than 1500 files


So actually i upload folder with large amount of files, but not all of this files are uploaded to cloud.


maybe someone had the similar problem and helps fix it.




const uploadFolder = async (bucketName, directoryPath, socketInstance) => {
 try {
 let dirCtr = 1;
 let itemCtr = 0;
 const fileList = [];

 const onComplete = async () => {
 const folderName = nanoid(46);

 await Promise.all(
 fileList.map(filePath => {
 const fileName = path.relative(directoryPath, filePath);
 const destination = `${ folderName }/${ fileName }`;

 return storage
 .bucket(bucketName)
 .upload(filePath, { destination })
 .then(
 uploadResp => ({ fileName: destination, status: uploadResp[0] }),
 err => ({ fileName: destination, response: err })
 );
 })
 );

 if (socketInstance) socketInstance.emit('uploadProgress', {
 message: `Added files to Google bucket`,
 last: false,
 part: false
 });

 return folderName;
 };

 const getFiles = async directory => {
 const items = await fs.readdir(directory);
 dirCtr--;
 itemCtr += items.length;
 for(const item of items) {
 const fullPath = path.join(directory, item);
 const stat = await fs.stat(fullPath);
 itemCtr--;
 if (stat.isFile()) {
 fileList.push(fullPath);
 } else if (stat.isDirectory()) {
 dirCtr++;
 await getFiles(fullPath);
 }
 }
 }

 await getFiles(directoryPath);

 return onComplete();
 } catch (e) {
 log.error(e.message);
 throw new Error('Can\'t store folder.');
 }
 };







-
generate multiple qualities using "ffmpeg" [closed]
28 septembre 2022, par zamooshI'm trying to generate multiple qualities using "ffmpeg".

I get an answer for my question in this [link][1]

Here is my code :


ffmpeg -f flv -i mov_bbb.mp4 \ 
 -map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 \
 -c:v libx264 -crf 22 -c:a aac -ar 48000 \
 -filter:v:0 scale=w=480:h=360 -maxrate:v:0 600k -b:a:0 500k \
 -filter:v:1 scale=w=640:h=480 -maxrate:v:1 1500k -b:a:1 1000k \
 -filter:v:2 scale=w=1280:h=720 -maxrate:v:2 3000k -b:a:2 2000k \
 -var_stream_map "v:0,a:0,name:360p v:1,a:1,name:480p v:2,a:2,name:720p" \
 -preset fast -hls_list_size 10 -threads 0 -f hls \
 -hls_time 3 -hls_flags independent_segments \
 -master_pl_name "livestream.m3u8" \
 -y "livestream-%v.m3u8"




But I get this error :


Stream map '0:v:0' matches no streams.
To ignore this, add a trailing '?' to the map.



-
ffmpeg : "Input/output error" Read gif from named pipe ?
23 octobre 2022, par XiradoI've been trying to debug this for hours now, and cannot seem to understand why it doesn't work.


I want to overlay a png onto all frames of a gif, and since writing all the files to disk is slow, i wanted to use pipes.


I created a named pipe using
mkfifo imgstream1
and then launch ffmpeg :

ffmpeg -report -hide_banner -v 9 -loglevel 99 -y -f gif -i imgstream1 out1.gif



(This isn't actually useful as it just spits out the same gif again but it's simpler for debugging)


After ffmpeg launches it waits for data from the pipe, so i write an actual gif file to the pipe using this kotlin code


val backgroundFifo = File("imgstream1")
val inputOne = File("background.gif").readBytes()
println("background.gif -> ${inputOne.size} bytes")
val output = backgroundFifo.outputStream()
output.write(inputOne)
output.flush()
output.close()



It prints :
background.gif -> 7233247 bytes


Now ffmpeg should read the bytes and spit out a gif, but it always seems to fail doing so.


Opening an input file: imgstream1.
[gif @ 0x7714180] Opening 'imgstream1' for reading
[file @ 0x7714980] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 0x7724dc0] Statistics: 7233247 bytes read, 0 seeks
imgstream1: Input/output error



Sadly this does not give any further information, i'm already on the highest log level...


I've tried multiple things :


- 

-f image2pipe
-> Works, but only loads the first 2 frames of the gif- Renaming the pipe to
imgstream1.gif
so ffmpeg thinks it's a gif file, no change. - Different ffmpeg versions
- Using the actual gif as an ffmpeg input works










At this point i have no idea what the problem might be, as ffmpeg seems to load all bytes.
It's worth noting that doing
cat imgstream1 > file.gif
produces the desired gif.

Any help would be appreciated !