
Recherche avancée
Autres articles (66)
-
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 ;
-
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 -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.
Sur d’autres sites (5220)
-
Output format m4a is not available
7 septembre 2023, par THEMOUNTAINSANDTHESKIESI have the following function :


const convertAudio = async (file, inputFormat, outputFormat, audioCodec) => {
 const inputPath = file.path;
 const outputPath = `converted/${file.originalname.replace(`.${inputFormat}`, `.${outputFormat}`)}`;
 
 return new Promise((resolve, reject) => {
 ffmpeg(inputPath)
 .audioCodec(audioCodec)
 .toFormat(outputFormat)
 .on('end', () => {
 fs.unlinkSync(inputPath);
 resolve(outputPath);
 })
 .on('error', (err) => {
 console.error('Conversion error', err);
 reject(err);
 })
 .save(outputPath);
 });
 };



When I call it using :


outputPath = await convertAudio(file, 'wav', 'm4a', 'aac');



file is :

fieldname : 'files',
originalname : 'life jacket.wav',
encoding : '7bit',
mimetype : 'audio/wav',
destination : 'uploads/',
filename : '02f9e4535011c78745d7bc4b4adb1a54',
path : 'uploads\02f9e4535011c78745d7bc4b4adb1a54',
size : 60292942



I get the following error :


Conversion error Error: Output format m4a is not available
 at [Project_Path]\node_modules\fluent-ffmpeg\lib\capabilities.js:589:21
 at nextTask ([Project_Path]\node_modules\async\dist\async.js:5789:13)
 at next ([Project_Path]\node_modules\async\dist\async.js:5797:13)
 at [Project_Path]\node_modules\async\dist\async.js:327:20
 at [Project_Path]\node_modules\fluent-ffmpeg\lib\capabilities.js:549:7
 at handleExit ([Project_Path]\node_modules\fluent-ffmpeg\lib\processor.js:170:11)
 at ChildProcess.<anonymous> ([Project_Path]\node_modules\fluent-ffmpeg\lib\processor.js:184:11)
 at ChildProcess.emit (node:events:527:28)
 at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
node:internal/process/promises:279
 triggerUncaughtException(err, true /* fromPromise */);
 ^
</anonymous>


This function works for
convertAudio(file, 'wav', 'mp3', 'libmp3lame');
andconvertAudio(file, 'mp3', 'wav', 'pcm_s16le');
, why isn't it working for this one ? Thank you for any help.

I'm using node.js with express, javascript, and ffmpeg-fluent. FFmpeg version 4.2.3.


Let me know if there are more details I should give.


-
ffmpeg and 64 bit architecure
16 avril 2015, par nevgaukerthere is a pretty old project i need to upload to the store.
how old you ask ? 32 bit only ,no arc and no story board...since in this days in mandatory to make a single archive that support 32 and 64 build ...i decided to update the valid architecture of the project.
i discovered that many frameworks do not support 64 bit and i have to update them . the most problematic is ffmpge..
here i few things that i tried to do and fail :- add ffmpeg as a static libary
- add ffmpeg using cocoa pods
nothing helps...
here are some of the errors i get :
Undefined symbols for architecture arm64 :
"_av_read_frame", referenced from :
-[Demuxer readPacket :] in Demuxer.o
"_av_malloc", referenced from :
-[Streamer writePacket :] in Streamer.o
"_av_register_all", referenced from :
+[Streamer initialize] in Streamer.o
"_avformat_write_header", referenced from :
-[Streamer writePacket :] in Streamer.o
"_avio_close", referenced from :
-[Streamer dealloc] in Streamer.o
"_av_new_stream", referenced from :
-[Streamer writePacket :] in Streamer.o
"_avformat_free_context", referenced from :
-[Streamer dealloc] in Streamer.oany suggestion ?
the only way i succeed is turn on the "build active architecture only" (and of course get rejected when i try to upload to the store)
if you refer me to any shell script, please instruct me how to use it
thanks
-
Error : "from : can't read /var/mail/moviepy.editor" How to resolve ?
23 mai 2017, par batman_risingI have a script using which I am editing a video, (extracting 10 clips from a video and then simply concatenating them), I am using
moviepy
python module as well asffmpeg
The script works perfectly when I run it from terminal,
Now I wanted to run the same script on startup, so I added a path in
/etc/rc.local
sudo python /home/startlord/myProject/run.py
but the code doesn’t work.also, I tried another approach,
sudo nano /etc/init.d/testRun
and created the script executablesudo chmod 755 /etc/init.d/testRun
but when I wanted to start the executionsudo /etc/init.d/testRun
start I was getting this errorfrom : can’t read /var/mail/moviepy.editor
what should I do now ! I am using UP-board, please help, I am not from computer science background.