
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (63)
-
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
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 (...) -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...)
Sur d’autres sites (8699)
-
FFmpeg write silence if there is no data in pipe:0
15 juillet 2023, par Oleksandr PetrenkoI have an ffmpeg process that continiously writes
PCM
data from standard input to anmp3
file. The problem is that sometimes there can be pauses in data being sent to ffmpeg. Pauses may be very large, even up to an hour, but process is never closed. I want to get ffmpeg to write silence to file if there is no data inpipe:0
. Is it possible to do only with ffmpeg or I need to implement it on my side ? If it is possible, then how can I do that ?
I tried to use some parameters and filters but I didn't found the thing I need.

I'm new to ffmpeg and working with audio so I will be glad to see any assistance.


-
How to call av_read_frame() when streamed data is not yet available ?
16 janvier 2024, par CheekyChipsI am streaming audio data and using the ffmpeg/libav libraries to process it in C++. I create a
CustomIOContext
and aread_packet
function to provide the streamed data to ffmpeg, and I create anAVFormatContext
using thatCustomIOContext
.

I want to loop through all available data and extract packets using
av_read_frame()
, and then when there is not enough data left to create a packet I want to wait until I receive more data and then loop again through the new data. However, I can't figure out what to return in myread_packet
function below to tell ffmpeg to wait until more data is available. Ffmpeg seems to require all data to be available now. When I have no data to return, ffmpeg seems to think it's the end of the file, when actually it just isn't ready yet. I have tried returningAVERROR(EAGAIN)
but I still have problems. It seems like I get random decoder-specific error messages, because it thinks the input is invalid (when actually it is just not available yet), and then once I have the input and I try callingav_read_frame()
again, it immediately returns a negative error code because it got into a bad state.

What do I need to do to be able to loop through all the available data using
av_read_frame()
, and then pause and wait until more data arrives ? How do I keep ffmpeg happy ?

// -------- Set up --------
size_t ioContextBufferSize = 4096;
avioContextBuffer = avAllocateEmptyBuffer(ioContextBufferSize);
avioContext = avio_alloc_context(avioContextBuffer.ptr,
 ioContextBufferSize,
 0, // bWriteable (1=true,0=false)
 &(opaque),
 read_packet,
 0, // Write callback function
 0)}; // Seek function not provided

AVFormatContext* inContext = avformat_alloc_context();
inContext->pb = avioContext;
inContext->flags = AVFMT_FLAG_CUSTOM_IO;

avformat_open_input(&inContext, "", nullptr, nullptr);
inputPacket = av_packet_alloc();



// -------- Loop and read data -------
// (the second time we reach this while loop, it never enters the loop :(
//
while ((ret = av_read_frame(inContext, inputPacket)) >= 0) {
 .. do stuff with inputPacket
}



// -------- read_packet function -----
// copies data into ffmpeg's internal buffer. What do I return here???
//
static int read_packet(void* opaque, uint8_t* avioContextBuffer, int ioContextBufferSize) {
 OpaqueDataWrapper* streamedData = static_cast(opaque);

 size_t bytesToRead = std::min((size_t)ioContextBufferSize, streamedData->remainingBytes());

 if (!bytesToRead) {
 // We need to wait for more data to arrive! What do I return here to tell ffmpeg to wait a while? 
 if (streamedData->streamStillOpen()) {
 return AVERROR(EAGAIN);
 } else {
 return AVERROR_EOF;
 }
 }
 ... otherwise copy the next bit of data
}



-
How to packet encoded AAC data to flv file with ffmpeg ?
1er juillet 2015, par Jerikc XIONGI have captured the Audio data from Android Microphone and encoded them by MediaCodec.
My question is :
How to packet encoded AAC data to flv with ffmpeg ?