
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (68)
-
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)
Sur d’autres sites (11310)
-
How to force an input frame rate on libav for mjpeg
20 février 2023, par ChristophI am using libav to parsing a MJPEG Stream to get the packet data for resending it over an websocket, now I am facing the issue that ffmpeg use only 25 FPS. I know the Stream has 60FPS for 100%


These are the values after open and read the stream Informations :


avg_frame_rate = 0, r_frame_rate = 25/1, time_base = 1/25


I tried to set all of them to a setting for 60FPS, but this looks has no effect.
I have set time_base to 1/60 and also frame rates to 60 but none of them are making any difference.


Because its an MJPEG Stream libav needs to guess the framerate, but I don't know why setting time_base or framerate does not have any effect.


Maybe someone could help me how I could force 60 FPS for parsing an MJEPG Stream, this would be great.


Thank u


This is just an Illustration of my code


#include 
#include 
#include 
#include 
#include <libavutil></libavutil>avutil.h>
#include <libavcodec></libavcodec>avcodec.h>
#include <libavformat></libavformat>avformat.h>

int main(int argc, char *argv[]) {
 AVFormatContext *fmt_ctx = NULL;
 AVCodecContext *codec_ctx = NULL;
 AVCodec *codec = NULL;
 AVPacket pkt;

 if (argc < 2) {
 fprintf(stderr, "Usage: %s \n", argv[0]);
 exit(1);
 }

 av_register_all();

 if (avformat_open_input(&fmt_ctx, argv[1], NULL, NULL) < 0) {
 fprintf(stderr, "Could not open stream '%s'\n", argv[1]);
 exit(1);
 }

 if (avformat_find_stream_info(fmt_ctx, NULL) < 0) {
 fprintf(stderr, "Could not find stream information\n");
 exit(1);
 }

 int video_stream_index = av_find_best_stream(fmt_ctx, AVMEDIA_TYPE_VIDEO, -1, -1, &codec, 0);

 if (video_stream_index < 0) {
 fprintf(stderr, "Could not find video stream\n");
 exit(1);
 }

 AVStream *video_stream = fmt_ctx->streams[video_stream_index];
 stream->time_base = (AVRational) { 1, 60};
 stream->avg_frame_rate = (AVRational) { 60, 1 };
 stream->r_frame_rate = (AVRational) { 60, 1 };

 av_init_packet(&pkt);

 while (av_read_frame(fmt_ctx, &pkt) >= 0) {
 if (pkt.stream_index == video_stream_index) {
 // Sending it to an websocket ....
 }
 av_packet_unref(&pkt);
 }

 avformat_close_input(&fmt_ctx);
 avformat_free_context(fmt_ctx);

 return 0;
}



-
Revision 65b93c7e52 : Improved auto_partition_range. The code now takes into account temporal and spa
27 septembre 2013, par Paul WilkinsChanged Paths :
Modify /vp9/encoder/vp9_encodeframe.c
Modify /vp9/encoder/vp9_onyx_if.c
Modify /vp9/encoder/vp9_onyx_int.h
Improved auto_partition_range.The code now takes into account temporal and spatial
information to determine the partition size range, but the
frequency counts have been removed.The net effect is similar in quality but about 10% faster.
Change-Id : I39a513fb79cec9177b73b2a7218f0da70963ae95
-
ffmpeg : zoom over a squared image
23 février 2017, par SulliI am using this command to create a zoom effect over a square image :
ffmpeg -r 25 -i image.jpg -filter_complex "scale=-1:10*ih,zoompan=z='min(zoom+0.0015,1.5)':d=125:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)',scale=-1:720" -y -shortest -c:v libx264 -pix_fmt yuv420p output.mp4
it works great, except the video is not squared at the end, it’s a regular 16/9. I tried to play with the scale parameter but the video becomes stuttered every time I change something.