
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (107)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (7764)
-
IOS ffmpeg Invalid input file index ERROR
17 octobre 2023, par MkerseI want to combine the images and create a new video. However, ffmpeg "Invalid input file index : 4." even though I did not create 4 inputs. it gives this error. Where am I doing wrong ?


I share the command below


ffmpeg
-loop 1 -t 3.83 -i file:///var/mobile/Media/DCIM/100APPLE/IMG_0301.JPG
-loop 1 -t 3.73 -i file:///var/mobile/Media/DCIM/100APPLE/IMG_0175.JPG
-loop 1 -t 3.73 -i file:///var/mobile/Media/DCIM/100APPLE/IMG_0301.JPG
-loop 1 -t 4.80 -i file:///var/mobile/Media/DCIM/100APPLE/IMG_0175.JPG
-filter_complex 
"[0:v]scale=1080:1920:force_original_aspect_ratio=decrease,pad=1080:1920:(ow-iw)/2:(oh-ih)/2,setsar=1[v0];
 [1:v]scale=1080:1920:force_original_aspect_ratio=decrease,pad=1080:1920:(ow-iw)/2:(oh-ih)/2,setsar=1[v1];
 [2:v]scale=1080:1920:force_original_aspect_ratio=decrease,pad=1080:1920:(ow-iw)/2:(oh-ih)/2,setsar=1[v2];
 [3:v]scale=1080:1920:force_original_aspect_ratio=decrease,pad=1080:1920:(ow-iw)/2:(oh-ih)/2,setsar=1[v3];
 [v0][v1][v2][v3]concat=n=4:v=1:a=0,format=yuv444p10le[v]" 
-map "[v]" -map 4:a -q:v 0 -vcodec mpeg4 -r 20 -crf 18 -s 1080x1920 -c:a copy -t 16.10 file:///var/mobile/Containers/Data/Application/2268F740-2254-4514-ADD3-F9ACEB13B7CB/Documents/Export.mp4



Even though I expect the command to create a new video, it keeps giving the same error. It worked on Android.


-
Error : [Error : ENOENT : no such file or directory, open './1695556319341.mp3']
24 septembre 2023, par JamesI'm trying to convert an mp4 file to an mp3 file and then directly upload it to Firebase storage without saving it locally in my machine, How can I do that currently I'm getting an error when I try to do that the error is "Error : [Error : ENOENT : no such file or directory, open './1695556319341.mp3']" How can i fix this issue with my Node.js code and make things work ?


import { initializeApp } from "firebase/app";
import { getStorage, ref, getDownloadURL, uploadBytesResumable } from "firebase/storage";
import serviceAccount from '../firebase/serviceAccountKey';
import { path as ffmpegPath } from '@ffmpeg-installer/ffmpeg';
import ffmpeg from 'fluent-ffmpeg';
import { readFile, unlink } from 'fs/promises';

initializeApp(serviceAccount);
ffmpeg.setFfmpegPath(ffmpegPath);

async function convertMP4ToMP3AndUploadToFirebase(inputPath: any, firebaseStoragePath: any) {
 const date = Date.now();
 const outputPath = `./${date}.mp3`;

 try {
 await ffmpeg(inputPath)
 .output(outputPath)
 .audioCodec('libmp3lame')
 .format('mp3')
 .run();

 const storage = getStorage();
 const storageRef = ref(storage, firebaseStoragePath);

 const fileBuffer = await readFile(outputPath);
 const metadata = { contentType: 'audio/mpeg' };
 const uploadTask = uploadBytesResumable(storageRef, fileBuffer, metadata);
 const snapshot = await uploadTask;
 const downloadURL = await getDownloadURL(snapshot.ref);
 await unlink(outputPath);

 console.log('MP4 file converted to MP3 and uploaded to Firebase Storage successfully!');
 console.log('Download URL:', downloadURL);
 } catch (error) {
 console.error('Error:', error);
 }
}

const inputPath = './video.mp4';
const date = Date.now();
const firebaseStoragePath = `./${date}.mp3`;

convertMP4ToMP3AndUploadToFirebase(inputPath, firebaseStoragePath);



-
fluent-ffmpeg error : ffmpeg exited with code 1 : At least one output file must be specified
18 septembre 2023, par 김동환I'm trying to create a simple video from several images on node js.


const ffmpeg = require('fluent-ffmpeg');

ffmpeg().input('input.txt')
.inputOption(["-f concat"])
.outputOptions("-c:v libx264 -r 30 -pix_fmt yuv420p")
.output('output.mp4')
.on('start', (commandLine) => {
console.log(`FFmpeg command: ${commandLine}`);
})
.on('end', () => {
console.log('completed');
}).on('error', (err) => {
console.error('error occurred: ' + err.message);
}).run();



and input.txt is


file 'test1.png'
duration 2
file 'test2.png'
duration 30
file 'test3.png'
duration 4



I don't know why but this code doesn't work. but if i copy and paste the code from $commandLine, it works !!??


PS C:\\Users\\donghwan\\Documents\\GitHub\\create_video\\src\> node test.js
FFmpeg command: ffmpeg -f concat -i input.txt -y -c:v libx264 -r 30 -pix_fmt yuv420p output.mp4
error occurred: ffmpeg exited with code 1: At least one output file must be specified

PS C:\\Users\\donghwan\\Documents\\GitHub\\create_video\\src\> ffmpeg -f concat -i input.txt -y -c:v libx264 -r 30 -pix_fmt yuv420p output.mp4
ffmpeg version 2023-08-20-git-f0b1cab538-full_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers

and so on...



I'm so confused and i tried to find any other reason for this but i couldn't find anything.