
Recherche avancée
Médias (91)
-
Spoon - Revenge !
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
My Morning Jacket - One Big Holiday
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Zap Mama - Wadidyusay ?
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
David Byrne - My Fair Lady
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Beastie Boys - Now Get Busy
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Granite de l’Aber Ildut
9 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
Autres articles (90)
-
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 -
MediaSPIP Player : problèmes potentiels
22 février 2011, parLe lecteur ne fonctionne pas sur Internet Explorer
Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...) -
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 (...)
Sur d’autres sites (12777)
-
How to create event listener for ffmpeg video file creation in Electron main process
18 mai 2021, par RadespyWindows 10 Pro
Electron v12



I've created an Electron-React App and am using
execFile()
in arenderer process
to execute anffmpeg
command which results in a cropped video file being created in a temporary folder.

I need to read this video file (from the
Main
process) and convert to a Base64 string before sending to a database.

In the renderer process, I tried adding
on.("close" or "exit")
event listeners to perform reading the file after ffmpeg completes the cropping, but this doesn't work. The file is not created by the time the event fires.

I have now added an event listener to the renderer
BrowserWindow
to wait until the window is closed before attempting to read the video file. The only way this works is by having a sufficient delay between theexecFile()
command being executed and closure of the window (i.e. in order to make sure that the file has actually been created).

This works but is obviously not ideal as processing speed will be variable.


Is there a way to wait for the video file to be created and only then attempt to read the file ?


Any help will be much appreciated !


-
node ffmpeg module stuck more than one file
29 mai 2021, par Muhammad Hamzawhen I read more than one file it will be stuck and also hang my pc. I need to restart my pc


on one file or 5 files it will work perfectly but not more than 5 files


if anyone know this issue let me know


const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path
const ffmpeg = require('fluent-ffmpeg')
ffmpeg.setFfmpegPath(ffmpegPath)


const testFolder = './videos/';
const fs = require('fs');

 


fs.readdir(testFolder, async(err, files) => {
 try {
 for(let i = 0; i < 10; i++){
 if(files[i] != '1 Surah Fatiha Dr Israr Ahmed Urdu - 81of81.mp4'){
 
 let converter = await ffmpeg(`./videos/${files[i]}`)
 await converter.setStartTime('00:00:00').setDuration('30').output(`./outputfolder/${files[i]}`).on('end', function(err) {
 if(err) { 
 console.log(`err durinng conversation \n ${err}`) 
 }
 else{
 console.log(`Done ${files[i]}`);
 }
 }).on('error', function(err){
 console.log(`error: ${files[i]}`, err)
 }).run()
 }
 }
 } catch (error) {
 console.log(error)
 }
});




-
Mp4 Video File not playing after downloading using Content Disposition php but it plays when it streams directly from the server
1er juin 2021, par Razor RasshI'm trying to combine a video and audio file using the FFMPEG and it worked successfully for me. The FFMPEG successfully created the MP4 file in the target destination folder. When I'm trying to download the Video file from the destination folder using Content-Disposition in Php. The server successfully downloads the Video file from the exact target folder.


The problem is that when I'm trying to play the video using VLC or any other player, nothing happened. The VLC player just launched and do nothing. I checked the downloaded file size with the video file located on the server and found that they both are the same size.


The code I used for creating Video file and content disposition is,



 $downloadFolderPath = "/var/www/html/temp/{$downloadFolderName}";
 $result = mkdir($downloadFolderPath, 0777); 
 $downloadFileName = "$downloadFolderPath/$filename";
 //echo $downloadFileName;
 $command = $ffmpeglocation." -i $audio_link -i $link -c:v copy -c:a aac -preset fast -crf 20 $downloadFileName 2>&1";
 shell_exec($command);

 $file=fopen($downloadFileName,'r');
 header("Content-Type:video/mp4");
 
 header("Content-Disposition: attachment; filename=$filename");
 
 header('Content-Description: File Transfer');
 header('Content-Type: application/octet-stream');
 
 header('Content-Disposition: attachment; filename="'.basename($downloadFileName).'"');
 header('Expires: 0');
 header('Cache-Control: must-revalidate');
 header('Pragma: public'); 
 header('Content-Length: ' . filesize($downloadFileName)); 
 flush(); // Flush system output buffer
 readfile($downloadFileName); 
 die();



The above code did its purpose by properly downloading the video file hosted on the server. But after downloading, the video file is not playing. I tried to access the file directly through the URL of the file in the browser and it plays fluently in the browser.


Help me out. Sorry for the bad english.