
Recherche avancée
Médias (91)
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#1 The Wires
11 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (81)
-
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 (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (11947)
-
Revision 49777 : Gérer les déplacements entre fieldset, correction de la fonction deplacer ...
19 juillet 2011, par marcimat@… — LogGérer les déplacements entre fieldset, correction de la fonction deplacer qui n’acceptait pas l’identifiant sur les conteneurs. Code CSS pour tester : #deplacable .ui-state-highlight height : 5em ; line-height : 1.2em ; #deplacable .ui-sortable (...)
-
Merge commit ’f2143c57b6a61fef382f3128138d8558a9bdecee’
18 mars 2017, par Clément BœschMerge commit ’f2143c57b6a61fef382f3128138d8558a9bdecee’
* commit ’f2143c57b6a61fef382f3128138d8558a9bdecee’ :
vp9 : reindent after last commit
vp9 : add frame threading
vp9 : allocate ’b’, ’block/uvblock’ and ’eob/uveob’ dynamically.
vp9 : split last/cur_frame from the reference buffers.This commit is a noop, we already have all these changes. Again, we will
need in the future to analyse the tiny differences between the two
repository on the vp9 files. But in the current state, it’s a real pain
to do at every commit due to the huge differences (such as files split
and cosmetics).Merged-by : Clément Bœsch <u@pkh.me>
-
ffmpeg avcodec_receive_packet return -11
10 juillet 2018, par tainguyenI tried to create a video from a sequence of input images with ffmpeg API.
First I read the AVFrame from input file then pass to
avcodec_send_frame()
, but when I callavcodec_get_packet()
to get the encoded packet, it returns -11 (output is not available in the current state).I’m just a beginner so I don’t know if anything wrong in my code.
Here is my source code :
for (unsigned int i = 0; i < nb_input; ++i) {
const char *item = input[i];
ret = open_input_file(item);
if(ret < 0) {
goto end;
}
packet = av_packet_alloc();
if(packet == NULL) {
_log_e("Cannot allocate packet");
goto end;
}
ret = av_read_frame(_ifmt_ctx, packet);
if(ret < 0) {
goto end;
}
av_packet_rescale_ts(packet,
_ifmt_ctx->streams[0]->time_base,
_decode_ctx->time_base);
ret = avcodec_send_packet(_decode_ctx, packet);
if (ret < 0) {
goto end;
}
frame = av_frame_alloc();
if(frame == NULL) {
ret = AVERROR(ENOMEM);
_log_e_2("Failed to allocate frame variable for this file : %s ", item);
goto end;
}
ret = avcodec_receive_frame(_decode_ctx, frame);
if (ret == 0) {
/*
* DO FILTER PROCESSING HERE
*/
}
for (int j = 0; j < 25; ++j) {
ret = avcodec_send_frame(_encode_ctx, frame);
if (ret < 0) {
_log_e_2("Failed to send frame at pts = %d", pts);
goto end;
}
AVPacket *out_packet;
out_packet = av_packet_alloc();
if(out_packet == NULL) {
_log_e_2("Failed to allocate output packet at pts = %d" , pts);
goto end;
}
ret = avcodec_receive_packet(_encode_ctx, out_packet);
if(ret < 0) {
_log_e_2("Failed to receive encoded packet at pts = %d" , pts);
if (ret == AVERROR(EAGAIN)) {
_log_e(" output is not available in the current state - user must try to send input");
}
else if (ret == AVERROR_EOF) {
_log_e(" the encoder has been fully flushed, and there will be no more output packets");
}
else if (ret == AVERROR(EINVAL)) {
_log_e(" codec is not opened");
}
av_packet_unref(out_packet);
goto end;
}
_log_v_2("Write encoded packet at pts = %d to output file", pts);
ret = av_interleaved_write_frame(_ofmt_ctx, out_packet);
if (ret < 0) {
_log_e_2("Failed to write encoded packet at pts = %d to output file", pts);
goto end;
}
av_packet_unref(out_packet);
pts++;
}