
Recherche avancée
Autres articles (57)
-
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 ;
-
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 -
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.
Sur d’autres sites (11397)
-
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. -
ffmpeg batch retains old filetype in name
3 juin 2018, par InsertDisplayNameHereI’m using the following
ffmpeg
script to convert all .mp4 files in the folder to .webm.for %%A IN (*.mp4) DO ffmpeg -i "%%A" -c:v libvpx -crf 4 -b:v 3M -c:a libvorbis "%%A.webm"
I am trying to make it go from
"xxx.mp4"
to"xxx.webm"
However when I run the script the file name goes from
"xxx.mp4"
to"xxx.mp4.webm"
Any suggestions are highly appreciated.
-
ffmpeg batch retains old filetype in name
8 février 2015, par InsertDisplayNameHereI’m using the following
ffmpeg
script to convert all .mp4 files in the folder to .webm.for %%A IN (*.mp4) DO ffmpeg -i "%%A" -c:v libvpx -crf 4 -b:v 3M -c:a libvorbis "%%A.webm"
I am trying to make it go from
"xxx.mp4"
to"xxx.webm"
However when I run the script the file name goes from
"xxx.mp4"
to"xxx.mp4.webm"
Any suggestions are highly appreciated.