
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 (105)
-
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 (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
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 (10614)
-
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.


-
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)
 }
});




-
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 !