
Recherche avancée
Autres articles (30)
-
Qu’est ce qu’un éditorial
21 juin 2013, parEcrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
Vous pouvez personnaliser le formulaire de création d’un éditorial.
Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
Prérequis à l’installation
31 janvier 2010, parPréambule
Cet article n’a pas pour but de détailler les installations de ces logiciels mais plutôt de donner des informations sur leur configuration spécifique.
Avant toute chose SPIPMotion tout comme MediaSPIP est fait pour tourner sur des distributions Linux de type Debian ou dérivées (Ubuntu...). Les documentations de ce site se réfèrent donc à ces distributions. Il est également possible de l’utiliser sur d’autres distributions Linux mais aucune garantie de bon fonctionnement n’est possible.
Il (...)
Sur d’autres sites (6472)
-
Python get Audio/Video frames separately from video file
3 juillet 2016, par AlvaroAVWhat i’m trying to do :
Hi !
I’m trying to store the Video and Audio information from a video file. I would like to store video frames and audio frames separately in different variables.
My intention is to manage video/files and do some actions with the audio and video frame list, but to do what I’m plannign to do I need to store this audio/video frames separately. I’ve read a lot of questions in StackOverflow about python and audio/video managing.
Most people recommend to use
OpenCV
orffmpeg
to manage videos. I saw some scripts using these libraries to get video(only video) frames, but none of them are getting audio, most of them are just getting video frames and save them as RGB images. I also check some scripts where people get audio frames from a mp3 file, but I’m not sure if you can do that in a video fileMost important thing to me is to know the best way to manage video and audio separately. I’m not looking for people to do my code, just asking to point me in a good direction.
One of the things I’m trying to do is to send this information via socket, but as I said I need the audio and video frames to be in separated variables (yes, i’m wondering about an stream app, but that’s not the only thing I’m trying to do)
I know I should give more information, and maybe show some code, but I don’t have any concret code I tried some things, but I’ve never been capable to separate audio and video. I know that each format has his own encryption, and at the end I decided to use "mp4" as video format but I don’t know neither if this is the best format for what I’m trying to do.
Resume :
Is openCV the best way to manage video and audio separately ?
Wich is the easiest way to separate video and audio frames ? Is it possible ?
Wich is the best documentation I should read to learn about video/audio management ?
I would like to do the things with my own code, and use in the less way possible openCV or other libraries.
My "basic" idea is to get a "list" of audio and video frames, and then I would like to do some operations, but right now I can’t find the best way for me to manage a vide using python. I even wonder if could be possible to manage a video as raw data
I need to know wich is the best library to manage videos using python, for me the best library, will be the one that allows me to manage the videos more "freely"
I’ve already checked :
I’ve read too many questions on this theme, the most recent are :
How to extract audio from video file
-
Using FFMpeg with Asp .Net Core and video stream
15 août 2022, par Gaetano LenociI'm implementing an API that allows the user to send a video stream and generate thumbnails. I'm using asp.net core and Azure Blob Storage. The interface of API is this :


[HttpPost]
 [Route("test_upload")]
 public IActionResult TestUpload( IFormFile mediaFile ) {
 //->store mediaFile
 //->generate thumbnail
 //->save thumbnail
 return Ok();
 }



I need to do two main things :


- 

- Generate a thumbnail
- Get video information such as the duration






I tried to use libraries from Nuget, but all of this needs the file path and I don't have the file path, just the video Stream or the Blob from the Blob Storage after saving. So, my question is, how can I manage video directly from the stream using FFmpeg or another tool ?


I know Azure Media Services provide a lot of tools to manage media files such as videos and audio, but it's too slow for videos that are just 2Mb and 30 seconds long. And I don't need to encode the video, create streams or other things like that. I just need to take video information from a Stream and store the video on the Storage.


Any idea ? Thanks !


Update 1 :
I wrote a workaround by creating a folder for temporary videos, I just save the video in this folder, create the thumbnail and delete the temp file. But I don't know if this practice has some bad side effects.


-
Edit audio files on the server with Meteor
28 décembre 2015, par Mohammed HusseinI am building a Meteor application to split uploaded audio files.
I upload the audio files and store them using GridFS :
child = Npm.require('child_process');
var fs = Npm.require('fs');
storagePath= fs.realpathSync(process.env.PWD+'/audio');
StaticServer.add('/audio', clipsPath);and then using a method I split the audio file using :
child.exec(command);
the command is the ffmpeg command used to cut the source audio file and store it on the
storagePath
.The application worked fine locally but when I tried to deploy it to digital ocean I got errors, stating that the file
/audio
does not exist.
I usemupx
to deploy and the error appears after "verifying deployment".Here is the error :
-----------------------------------STDERR-----------------------------------
eteor-dev-bundle@0.0.0 No README data
=> Starting meteor app on port:80
/bundle/bundle/programs/server/node_modules/fibers/future.js:245
throw(ex);
^
Error: ENOENT, no such file or directory '/bundle/bundle/audio'
at Object.fs.lstatSync (fs.js:691:18)
at Object.realpathSync (fs.js:1279:21)
at server/startup.js:10:20
at /bundle/bundle/programs/server/boot.js:249:5
npm WARN package.json meteor-dev-bundle@0.0.0 No description
npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
npm WARN package.json meteor-dev-bundle@0.0.0 No README data
=> Starting meteor app on port:80
/bundle/bundle/programs/server/node_modules/fibers/future.js:245
throw(ex);
^
Error: ENOENT, no such file or directory '/bundle/bundle/audio'
at Object.fs.lstatSync (fs.js:691:18)
at Object.realpathSync (fs.js:1279:21)
at server/startup.js:10:20
at /bundle/bundle/programs/server/boot.js:249:5
=> Redeploying previous version of the app
-----------------------------------STDOUT-----------------------------------
To see more logs type 'mup logs --tail=50'
----------------------------------------------------------------------------The main question is how to generate an output file using ffmpeg and store it in a place where I can access it and display it in the browser.