
Recherche avancée
Autres articles (100)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
Sur d’autres sites (12366)
-
Can't list_options for capture card in ffmpeg : "Unable to BindToObject"
11 novembre 2023, par Tibor BERNARDI'm trying to list the options of a "AJA Kona3G Quad" device on Windows 10 using ffmpeg.




[dshow @ 000001343e7d9740] DirectShow video devices (some may be both
video and audio devices) [dshow @ 000001343e7d9740] "AJA S-Capture
Kona3GQuad - 0"


[dshow @ 000001343e7d9740] Alternative name
"@device_sw_860BB310-5D01-11D0-BD3B-00A0C911CE8689BB1170-565C-49B6-9DED-D6D2DFCA06A8"


[dshow @ 000001343e7d9740] DirectShow audio


[dshow @ 000001343e7d9740] "AJA S-Capture [Audio] Kona3GQuad - 0"


[dshow @ 000001343e7d9740] Alternative name
"@device_sw_33D9A762-90C8-11D0-BD43-00A0C911CE8689BB1190-565C-49B6-9DED-D6D2DFCA06A8"




Listing the devices seemsok, but once I get my device name and try to list it's options ffmpeg returns the following




[dshow @ 000001aeac2a96c0] Unable to BindToObject for AJA S-Capture Kona3GQuad - 0


[dshow @ 000001aeac2a96c0] Could not find video device with name [AJA
S-Capture Kona3GQuad - 0] among source devices of type video.


video=AJA S-Capture Kona3GQuad - 0 : I/O error




Have any of you already encountered this issue, and if so could you point me in the right direction


-
ffmpeg memory usage, or memory leaks
26 janvier, par happycoding-boyI'v write a simple program to get audio waveform data, which using ffmpeg version 6.1. And program works fine. But I get a problem : when program running at begin, system report using about 6MB memory, but when I call the function and cleanup the resouce alloced, system report about 9MB memory used. In my theory, after cleanup, it should be 6MB again. [I'm sure, I freed the AVPacket when read stream, and AVFrame for decoding.] My question is : Is this normal or not ?


int main(int argc, char *argv[])
{
 // breakpoint here: ~= 6MB
 get_audio_waveform();
 // breakpoint here: ~= 9MB
}



The ffmpeg struct I used :


AVFormatContext* p_input_fmt_ctx = nullptr;
AVCodecContext* p_input_cdc_ctx = nullptr;
SwrContext* p_resampler_ctx = nullptr;
AVAudioFifo* p_audio_fifo = nullptr;
uint8_t** p_converted_input = nullptr;
uint8_t** p_converted_output = nullptr;



The cleanup func :


void _cleanup()
{
 avformat_close_input(&p_input_fmt_ctx);
 avcodec_free_context(&p_input_cdc_ctx);
 swr_free(&p_resampler_ctx);
 
 if (p_audio_fifo)
 {
 av_audio_fifo_reset(p_audio_fifo);
 av_audio_fifo_free(p_audio_fifo);
 p_audio_fifo = nullptr;
 }
 
 if (p_converted_input)
 {
 av_freep(&p_converted_input[0]);
 free(p_converted_input);
 p_converted_input = nullptr;
 }
 
 if (p_converted_output)
 {
 av_freep(&p_converted_output[0]);
 free(p_converted_output);
 p_converted_output = nullptr;
 }
}



In my opinion,If this function have about 3MB memory leaks6MB. when I run this function 5-times, it should be about 15MB memory leaks.6MB. But when I run this function 5-times. After that, system just reports about 10-11 memory used. I doubt wheather program uses runtime library (i.e. libc or equivalent) and the library allocates some memory for own needs? I do not known which step is wrong! :(


-
avcodec_encode_video memory leaks
13 juillet 2012, par user1522503I got some ffmpeg memory problems.
I think they happen to avcodec_encode_video() ;When I used it to encode less than 6 YUV420 files(the size is different, 704x576 1600x1200 540x480),the memory was normal, but if more than 6, the system memories increased 100M/S, the program will crash soon.
please advice, thanks.
iOutSie = 0;
ptPicture = (AVFrame *)malloc(sizeof(AVFrame));
if (!ptPicture)
{
gbiLastErrorNumber = NPC_D_SMP_CODEC_ERROR_MALLOC_ERR;
goto _NPC_CLEAR;
}
pYuvBuff = (NPC_BYTE *)malloc(1024*1024*8);
if (!pYuvBuff)
{
goto _NPC_CLEAR;
}
avpicture_fill((AVPicture*)ptPicture, pYuvBuff, PIX_FMT_YUV420P, hEncode->tEncodeVideoParam.iWidth,
hEncode->tEncodeVideoParam.iHeight);
scxt = sws_getContext(
in_pOriBPS->iWith, //source width
in_pOriBPS->iHeight, //source height
PIX_FMT_YUV420P, //source pix format
hEncode->tEncodeVideoParam.iWidth, //destination width, height, and pix format
hEncode->tEncodeVideoParam.iHeight,
PIX_FMT_YUV420P,
SWS_SINC,
NULL,NULL,NULL
);
if(!scxt)
{
gbiLastErrorNumber = NPC_D_SMP_CODEC_ERROR_sws_getContext_ERR;
goto _NPC_CLEAR;
}
sws_scale(
scxt,
hEncode->picture->data, hEncode->picture->linesize,
0, in_pOriBPS->iHeight,
ptPicture->data, ptPicture->linesize);
if (in_pDestDataBufSize < (hEncode->tEncodeVideoParam.iWidth * hEncode->tEncodeVideoParam.iHeight * 3 / 2) )
{
gbiLastErrorNumber = NPC_D_SMP_CODEC_ERROR_PARAM_ERR;
goto _NPC_CLEAR;
}
iOutSize = avcodec_encode_video(hEncode->c, out_pDestDataBuf, in_pDestDataBufSize, ptPicture);
_NPC_CLEAR:
if(pYuvBuff) free(pYuvBuff);
return iOutSize;