
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (12)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Contribute to translation
13 avril 2011You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
MediaSPIP is currently available in French and English (...) -
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 (1764)
-
avcodec/nvdec_av1 : fix setting film grain parameters for frames with update_grain...
12 novembre 2020, par James Almer -
ffmpeg hardwareaccleration using —enable-nvenc giving errors in vs 2012
3 octobre 2020, par user2290878am trying to compile ffmpeg with nvenc enabled using msvc toolchain with vs 2012 , its giving error ,


ERROR : nvenc requested but not found


following error logs is seen in config.log :


c99wrap cl -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Dstrtod=avpriv_strtod -Dsnprintf=avpriv_snprintf -D_snprintf=avpriv_snprintf -Dvsnprintf=avpriv_vsnprintf -D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS -D_WIN32_WINNT=0x0502 -nologo -Dstrtoll=_strtoi64 -Dstrtoull=_strtoui64 -Z7 -W4 -wd4244 -wd4127 -wd4018 -wd4389 -wd4146 -wd4057 -wd4204 -wd4706 -wd4305 -wd4152 -wd4324 -we4013 -wd4100 -wd4214 -wd4307 -wd4273 -wd4554 -wd4701 -O2 -Oy- -FIstdlib.h -c -Fo./ffconf.VPz0M2D2.o ./ffconf.hc8dkH6N.c
ffconf.hc8dkH6N.c
ffconf.VPz0M2D2.o_converted.c
./ffconf.hc8dkH6N.c(1) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
./ffconf.hc8dkH6N.c(1) : error C2054: expected '(' to follow 'inline'
./ffconf.hc8dkH6N.c(1) : error C2085: 'foo' : not in formal parameter list
./ffconf.hc8dkH6N.c(1) : error C2143: syntax error : missing ';' before '{'
check_host_cc
BEGIN ./ffconf.hc8dkH6N.c
 1 static inline int foo(int a) { return a; }
END ./ffconf.hc8dkH6N.c
c99wrap cl -nologo -W4 -wd4244 -wd4127 -wd4018 -wd4389 -wd4146 -wd4057 -wd4204 -wd4706 -wd4305 -wd4152 -wd4324 -we4013 -wd4100 -wd4214 -wd4307 -wd4273 -wd4554 -wd4701 -O3 -c -Fo./ffconf.VPz0M2D2.o ./ffconf.hc8dkH6N.c
cl : Command line warning D9002 : ignoring unknown option '-O3'
ffconf.hc8dkH6N.c
cl : Command line warning D9002 : ignoring unknown option '-O3'
ffconf.VPz0M2D2.o_converted.c
./ffconf.hc8dkH6N.c(1) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
./ffconf.hc8dkH6N.c(1) : error C2054: expected '(' to follow 'inline'
./ffconf.hc8dkH6N.c(1) : error C2085: 'foo' : not in formal parameter list
./ffconf.hc8dkH6N.c(1) : error C2143: syntax error : missing ';' before '{'
ERROR: nvenc requested but not found



-
How to save AVPacket if I have input information from online camera
31 mars 2020, par OrestI am new to libav.
I have a online video camera and want save video from archive to the video file with libav



Camera provides such data



uint32_t frameType, // I frame or P frame

void *frame, //pointer to the frame

size_t frameSize, //size of the frame in bytes

uint64_t timeStamp, //time stamp in time_t units

uint32_t width, //frame width

uint32_t height, //frame heigh

uint32_t genTime, //I do not now what is this. allways 0

const char *encodingType //H264 or H265




I tried this



void writeHeader(){
mOutputFilePath = outputFilePath;
 int ret = 0;
 avformat_alloc_output_context2(&output_format_context, nullptr, nullptr, outputFilePath.c_str());

AVStream *out_stream;
 out_stream = avformat_new_stream(output_format_context, nullptr);

 out_stream->discard = AVDISCARD_DEFAULT;//не змінювати
 out_stream->codecpar->level = 42;//не змінювати
 out_stream->codecpar->profile = FF_PROFILE_H264_HIGH;//не змінювати
 out_stream->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;

 if(codecID == "H264") out_stream->codecpar->codec_id = AV_CODEC_ID_H264;
 else if(codecID == "H265") out_stream->codecpar->codec_id = AV_CODEC_ID_H265;

 out_stream->codecpar->format = AV_PIX_FMT_YUV420P;
 out_stream->codecpar->height = heightFrame;
 out_stream->codecpar->width = widthFrame;
 // out_stream->codecpar->bit_rate = 2478235;
 // out_stream->codecpar->bits_per_coded_sample = 24;
 // out_stream->codecpar->bits_per_raw_sample = 8;
 out_stream->codecpar->sample_aspect_ratio.num = 0;
 out_stream->codecpar->sample_aspect_ratio.den = 1;
 out_stream->codecpar->color_primaries = AVCOL_PRI_UNSPECIFIED;//не змінювати

avio_open(&output_format_context->pb, mOutputFilePath.c_str(), AVIO_FLAG_WRITE);
avformat_write_header(output_format_context, &opt);
}

void writePacket(){
 AVPacket inputPacket;
 av_init_packet(&inputPacket);
 inputPacket.buf = NULL;
 inputPacket.pts = (int)timeStamp;
 inputPacket.dts = inputPacket.pts; 
 inputPacket.data = (unsigned char*)frame;
 inputPacket.size = (int)frameSize;

 if (frameType == KP2P_FRAME_TYPE_IFRAME)
 {
 inputPacket.flags = AV_PKT_FLAG_KEY;
 }
 inputPacket.duration = 0;
 inputPacket.pos = -1;
av_interleaved_write_frame(output_format_context, &inputPacket);
 av_packet_unref(&inputPacket);
}

void closeFile()
{
av_write_trailer(output_format_context);
 if (output_format_context && !(output_format_context->oformat->flags & AVFMT_NOFILE))
 avio_closep(&output_format_context->pb);
 avformat_free_context(output_format_context);
}




in output file I have black vindow and time is not correct (input 30 seconds in out 2 seconds)
What am I doing wrong ?