
Recherche avancée
Médias (91)
-
Spoon - Revenge !
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
My Morning Jacket - One Big Holiday
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Zap Mama - Wadidyusay ?
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
David Byrne - My Fair Lady
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Beastie Boys - Now Get Busy
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Granite de l’Aber Ildut
9 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
Autres articles (77)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (6968)
-
Open stream with FFmpeg libavformat exits with I/O error after once in Android Application
15 février 2015, par miazimaI am trying to open a video stream in an android application. The first time I open the stream, the stream is opened and everything runs fine. However, if I press back and open the stream again, the app crashes.
I am a newbie to this, so I used log statements to see if the argument values for the methods could lead me to the issue. I figured out that
avformat_open_input(&ic, is->filename, is->iformat, NULL)
is returning I/O error. However I can’t figure out where the error lies, the filename and the format is the same but am not sure about the&ic
which is fromis->ic = (AVFormatContext*) avformat_alloc_context()
, I would appreciate any help !void get_video_info(int p_debug, const char* path) {
int flags;
//VideoState *is;
int err, i, orig_nb_streams, ret;
isquit = 0;
av_log_set_flags(AV_LOG_SKIP_REPEATED);
int st_index[3];
st_index[AVMEDIA_TYPE_AUDIO]=-1;
st_index[AVMEDIA_TYPE_VIDEO]=-1;
/* register all codecs, demux and protocols */
avcodec_register_all();
#if CONFIG_AVDEVICE
avdevice_register_all();
#endif
#if CONFIG_AVFILTER
avfilter_register_all();
#endif
av_register_all();
#if CONFIG_NETWORK
ret = avformat_network_init();
#endif
if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER)) {
fprintf(stderr, "Could not initialize SDL - %s\n", SDL_GetError());
exit(1);
}
av_init_packet(&flush_pkt);
flush_pkt.data = "FLUSH";
// open video stream
is = av_mallocz(sizeof(VideoState));
if (!is) {
do_exit(NULL);
return;
}
is->abort_request = 0; // FIXME: abort_request changes when on closing or exit
is->pictq_mutex = SDL_CreateMutex();
is->pictq_cond = SDL_CreateCond();
is->pictq_size = 0;
is->pictq_rindex = 0;
is->pictq_windex = 0;
is->av_sync_type = av_sync_type;//AV_SYNC_AUDIO_MASTER;//
if(path != NULL)
{
av_strlcpy(is->filename, path, sizeof(is->filename));
}
else
{
if(streamProtocal==0) {
av_strlcpy(is->filename, "/sdcard/download/sdp_file.sdp", sizeof(is->filename));
}
else
{
av_strlcpy(is->filename, "udp://@:3001", sizeof(is->filename));
is->iformat = av_find_input_format("m4v");
}
}
is->ic = (AVFormatContext*) avformat_alloc_context();
//It is assumed that server always sends m4v data, so that codec search can be avoided
AVFormatContext *ic = is->ic;
if ((err = avformat_open_input(&ic, is->filename, is->iformat, NULL))
!= 0) {
LOGE(1, "Error open video file: %s", is->filename);
char* error = (char*)malloc(1024);
av_strerror(err, error, 1024);
LOGE(1, "Error open video file: %s", error);
do_exit(is);
}
LOGE(1, "entered get_video_info");
is->ic = ic;
orig_nb_streams = ic->nb_streams;
if ((err = avformat_find_stream_info(is->ic, NULL)) < 0) {
LOGE(1, "Error find stream information: %d", err);
return;
}
LOGE(1, "avformat_find_stream_info");
if(is->ic->pb)
is->ic->pb->eof_reached= 0;//FIXME hack, ffplay maybe should not use url_feof() to test for the end
AVCodec *lvideoCodec;
int g_audio_file_type = 0;
// Find the first video stream
for (i=0; iic->nb_streams; i++) {
//take video stream only for video file types
if (g_audio_file_type == 0) {
if (is->ic->streams[i]->codec->codec_type==AVMEDIA_TYPE_VIDEO &&
st_index[AVMEDIA_TYPE_VIDEO] < 0)
{
st_index[AVMEDIA_TYPE_VIDEO]=i;
}
}
if(is->ic->streams[i]->codec->codec_type==AVMEDIA_TYPE_AUDIO &&
st_index[AVMEDIA_TYPE_AUDIO] < 0)
{
st_index[AVMEDIA_TYPE_AUDIO]=i;
}
}
if (st_index[AVMEDIA_TYPE_AUDIO] >= 0) {
stream_component_open(is, st_index[AVMEDIA_TYPE_AUDIO]);
}
if (st_index[AVMEDIA_TYPE_VIDEO] >= 0) {
stream_component_open(is, st_index[AVMEDIA_TYPE_VIDEO]);
}
if (is->video_stream < 0) {
do_exit(is);
return;
}
is->read_tid = SDL_CreateThread(read_thread, is);
rgb_frame = avcodec_alloc_frame();
} -
Benefits and Shortcomings of Multi-Touch Attribution
13 mars 2023, par Erin — Analytics Tips -
ffmdec : limit the backward seek to the last resync position
9 mars 2015, par Andreas Cadhalpunffmdec : limit the backward seek to the last resync position
If resyncing leads to the same position as previously, it will again
lead to a resync attempt, resulting in an infinite loop.Thus don’t seek back beyond the last syncpoint.
Signed-off-by : Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by : Michael Niedermayer <michaelni@gmx.at>