
Recherche avancée
Autres articles (109)
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
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. -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (15425)
-
using ffmpeg.jar with android (in android studio)
7 mai 2016, par Dany YI’m trying to use
FFmpegFrameRecorder
in android. I tried all the possible configurations and still havingjava.lang.UnsatisfiedLinkError: org.bytedeco.javacpp.avutil
on runtime.I already added the files :
- ffmpeg.jar
- ffmpeg-android-arm.jar
- javacpp.jar
- javacv.jar
- opencv-android-arm.jar
- opencv.jarI tried from the javacv-presets and javacvbin
I tried to extract opencv.jar and ffmpeg.jar and copy the .so files in the jnlibs and in jnlibs/armvebi
Any idea what should be done ?
-
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.


-
avcodec/mpeg12enc : Basic support for encoding non even QPs for -non_linear_quant 1
18 septembre 2015, par Michael Niedermayer