
Recherche avancée
Médias (91)
-
Valkaama DVD Cover Outside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Valkaama DVD Cover Inside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (48)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
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
Sur d’autres sites (5414)
-
avcodec/mpeg12enc : Basic support for encoding non even QPs for -non_linear_quant 1
18 septembre 2015, par Michael Niedermayer -
postproc : add basic deblock filter visualization support
19 septembre 2014, par Michael Niedermayer -
Difficulty getting the expected output for .avi conversions to .mp4 using FFMPEG [closed]
25 avril 2024, par EricelI am trying to write a video converting script that converts an input video file to .mp4 output. I am using ffmpeg libx264 encoder. Unfortunately, when I convert from .avi to .mp4, the output video is not smooth, a little skippy. Here is how I set up the encoder code :


AVCodecContext *Video::setupVideoEncoder(const AVCodec *encoder, AVStream *inVideoStream, AVFormatContext *outFormatCtx)
{
 AVCodecContext *codecCtx = avcodec_alloc_context3(encoder);
 if (!codecCtx)
 {
 std::cerr << "Failed to allocate the video codec context." << std::endl;
 return nullptr;
 }

 if (avcodec_parameters_to_context(codecCtx, inVideoStream->codecpar) < 0)
 {
 std::cerr << "Failed to copy codec parameters to encoder context." << std::endl;
 avcodec_free_context(&codecCtx);
 return nullptr;
 }

 // Correctly assign pixel format based on encoder support
 if (!check_pix_fmt(encoder, inVideoStream->codecpar->format))
 {
 codecCtx->pix_fmt = encoder->pix_fmts[0];
 }
 else
 {
 codecCtx->pix_fmt = static_cast<avpixelformat>(inVideoStream->codecpar->format);
 }
 codecCtx->width = inVideoStream->codecpar->width;
 codecCtx->height = inVideoStream->codecpar->height;
 codecCtx->bit_rate = 2000000; // 2 Mbps
 codecCtx->gop_size = 12;
 codecCtx->max_b_frames = 3;

 // Setting frame rate and time base using guessed values
 AVRational framerate = av_guess_frame_rate(outFormatCtx, inVideoStream, nullptr);
 codecCtx->framerate = framerate;
 codecCtx->time_base = av_inv_q(framerate);

 AVDictionary *opts = nullptr;
 av_dict_set(&opts, "x264-params", "keyint=25:min-keyint=25:no-scenecut=1", 0);

 if (outFormatCtx->oformat->flags & AVFMT_GLOBALHEADER)
 {
 codecCtx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
 }

 if (avcodec_open2(codecCtx, encoder, &opts) < 0)
 {
 std::cerr << "Failed to open the video encoder." << std::endl;
 avcodec_free_context(&codecCtx);
 av_dict_free(&opts);
 return nullptr;
 }

 av_dict_free(&opts);
 return codecCtx;
} 
</avpixelformat>


I can only thing the configurations here are the problem, because if I converted a .mov to .mp4, I get the expected output.