
Recherche avancée
Médias (1)
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (64)
-
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 -
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 -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (9578)
-
Video frames move fast for few second while resume live feeds FFmpeg
13 juin 2014, par Tarun SeeraI am using av_read_pause() for pause the feed and av_Read_play() for resume from current position.
When its resume video frames move fast for few seconds can anybody tell me how to control this. -
avformat_write_header is not working properly in ffmepg
14 février 2021, par Ganesh kumarI was working on mp4 file creation project using FFMPEG, i tried to convert the stream information of video packet based on FFMPEG muxing,remuxing code, but header get damaged after convert into so file is corrupted.


/* this code used to set the stream information */

 AVFormatContext *input_context,*output_context;
 AVDictionary *opt;
 AVStream *out_stream;
 AVCodecContext *newcontext = NULL;
 out_stream= avformat_new_stream(output_context,NULL);
 newcontext = avcodec_alloc_context3(codec);
 newcontext->codec_id=Output_fmt->video_codec;
 newcontext->bit_rate =in_stream->codec->bit_rate;
 newcontext->width = in_stream->codec->width;
 newcontext->height = in_stream->codec->height;
 newcontext->timecode_frame_start = in_stream->codec->timecode_frame_start;
 newcontext->gop_size = in_stream->codec->gop_size;
 newcontext->profile = in_stream->codec->profile;
 newcontext->level = in_stream->codec->level;
 newcontext->pix_fmt = PIX_FMT_YUV420P;
 newcontext->frame_size = in_stream->codec->frame_size;
 newcontext->sample_fmt = in_stream->codec->sample_fmt;
 newcontext->sample_rate = in_stream->codec->sample_rate;
 time_base = (double)in_stream->time_base.num / (double)in_stream->time_base.den;
 duration = (double)in_stream->duration * time_base * 1000.0;
 if (!out_stream) {
 fprintf(stderr, "Failed allocating output stream\n");
 ret = AVERROR_UNKNOWN;
 return;
 }
 ret = avcodec_copy_context(out_stream->codec,newcontext);
 if (ret < 0) {
 fprintf(stderr, "Failed to copy context from input to output stream codec context\n");
 goto end;
 }
 out_stream->codec->codec_tag = 0;
 if (output_context->oformat->flags & AVFMT_GLOBALHEADER)
 out_stream->codec->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;



Changed the Header Information using :


/* this code used to set the metadata */

 av_dict_set(&opt, "major_brand", "mp42", 0);
 av_dict_set(&opt, "minor_version","512" , 0);
 av_dict_set(&opt, "compatible_brands","isomiso2avc1mp41",0);
 av_dict_set(&opt, "comment","Hash=855738390",0);
 output_context->metadata = opt;
 ret = avformat_write_header(output_context,NULL);



after create the mp4 file check file using ffmpeg in terminal. getting Error like this :


/this error message/




[mpeg4 @ 0x7ff2b9811c00] header damaged Last message repeated 39
times [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7ff2ba800000] decoding for stream 0
failed [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7ff2ba800000] Could not find codec
parameters for stream 0 (Video : mpeg4 (mp4v / 0x7634706D), none, 376
kb/s) : unspecified size Consider increasing the value for the
'analyzeduration' and 'probesize' options.




-
avformat_write_header is not working properly in ffmepg
26 mars 2017, par ganesh kumarI was working on mp4 file creation project using FFMPEG, i tried to convert the stream information of video packet based on FFMPEG muxing,remuxing code, but header get damaged after convert into so file is corrupted.
/*this code using set the stream information */
AVFormatContext *input_context,*output_context;
AVDictionary *opt;
AVStream *out_stream;
AVCodecContext *newcontext=NULL;
out_stream= avformat_new_stream(output_context,NULL);
newcontext = avcodec_alloc_context3(codec);
newcontext->codec_id=Output_fmt->video_codec;
newcontext->bit_rate =in_stream->codec->bit_rate;
newcontext->width = in_stream->codec->width;
newcontext->height = in_stream->codec->height;
newcontext->timecode_frame_start=in_stream->codec->timecode_frame_start;
newcontext->gop_size = in_stream->codec->gop_size;
newcontext->profile = in_stream->codec->profile;
newcontext->level =in_stream->codec->level;
newcontext->pix_fmt = PIX_FMT_YUV420P;
newcontext->frame_size=in_stream->codec->frame_size;
newcontext->sample_fmt=in_stream->codec->sample_fmt;
newcontext->sample_rate=in_stream->codec->sample_rate;
time_base= (double)in_stream->time_base.num / (double)in_stream->time_base.den;
duration= (double)in_stream->duration * time_base * 1000.0;
if (!out_stream) {
fprintf(stderr, "Failed allocating output stream\n");
ret = AVERROR_UNKNOWN;
return;
}
ret = avcodec_copy_context(out_stream->codec,newcontext);
if (ret < 0) {
fprintf(stderr, "Failed to copy context from input to output stream codec context\n");
goto end;
}
out_stream->codec->codec_tag = 0;
if (output_context->oformat->flags & AVFMT_GLOBALHEADER)
out_stream->codec->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;Changed the Header Information using :
/*this code using set the metadata */av_dict_set(&opt, "major_brand", "mp42", 0);
av_dict_set(&opt, "minor_version","512" , 0);
av_dict_set(&opt, "compatible_brands","isomiso2avc1mp41",0);
av_dict_set(&opt, "comment","Hash=855738390",0);
output_context->metadata = opt;
ret = avformat_write_header(output_context,NULL);after create the mp4 file check file using ffmpeg in terminal. getting Error like this :
/this error message/
[mpeg4 @ 0x7ff2b9811c00] header damaged Last message repeated 39
times [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7ff2ba800000] decoding for stream 0
failed [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7ff2ba800000] Could not find codec
parameters for stream 0 (Video : mpeg4 (mp4v / 0x7634706D), none, 376
kb/s) : unspecified size Consider increasing the value for the
’analyzeduration’ and ’probesize’ options.