
Recherche avancée
Autres articles (52)
-
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) (...)
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (8492)
-
Encoding audio data using ffmpeg
30 mai 2019, par Matin KhI am receiving a byte array (
int8_t*
) and I would like to use FFMPEG to encode it into FLAC. All the examples I found are reading data from files, which is not the case for me. Following the original documents (see here), I came up with the following solution :#include "libavcodec/avcodec.h"
// ...
// params:
// audioData: original audio data
// len: length of the byte array (audio data)
// sampleRate: sample rate of the original audio data
// frameSize: frame size of the original data
uint8_t* encodeToFlac(uint8_t* audioData, int len, int sampleRate, int frameSize) {
uint8_t* convertedAudioData;
// Context information
AVCodecContext* context = avcodec_alloc_context();
context->bit_rate = 64000;
context->sample_rate = sampleRate;
context->channels = 2;
context->frame_size = frameSize;
short* samples = malloc(frameSize * 2 * context->channels);
int outAudioDataSize = len * 2;
convertedAudioData = malloc(outAudioDataSize);
int outSize = avcodec_encode_audio(c, convertedAudioData, outAudioDataSize, samples);
return convertedAudioData;
}I have two main issues with the above solution :
-
I did not specify what the final encoding should be (for example, MP3, FLAC, etc), which makes me wonder if I’m using FFMPEG library correctly ?
-
Do I have all the necessary information about the source - original audio data ? I am not certain if I have all the necessary information to perform the encoding.
-
-
fluent-ffmpeg for getting codec data only
15 février 2018, par agonza1I am using a fluent-ffmpeg node module for getting codec data from a file.
It works if I give an output but I was wandering if there is any option to run fluent-ffmpeg without giving to it an output.
This is what I am doing :readStream.end(new Buffer(file.buffer));
var process = new ffmpeg(readStream);
process.on('start', function() {
console.log('Spawned ffmpeg');
}).on('codecData', function(data) {
//get recording duration
const duration = data.duration;
console.log(duration)
}).save('temp.flac');As you can see I am saving a the file to
temp.flac
so I can get the seconds duration of a file -
ffmpeg - reading meta data value every 16ms to produce overlay
18 avril 2022, par bcardarellaI'd like to combine a few data sources for telemetry overlays over a video. The MP4s have some metadata embedded from my GoPro but I have a few other data sources I'd like to include. I already have a way to generate a PNG of the data visualizations. What I am wondering if is ffmpeg includes a way to, every 16ms to take the current video frame, get the corresponding metadata values for that frame embedded within the mp4, send them off to the image creator, take that output and overlay over the video frame.


My assumption is that the mp4 metadata will correspond to the frame of the video. In that video frame's metadata the GPX values that I will need to generate the visualization.