Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (47)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-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

  • L’utiliser, en parler, le critiquer

    10 avril 2011

    La première attitude à adopter est d’en parler, soit directement avec les personnes impliquées dans son développement, soit autour de vous pour convaincre de nouvelles personnes à l’utiliser.
    Plus la communauté sera nombreuse et plus les évolutions seront rapides ...
    Une liste de discussion est disponible pour tout échange entre utilisateurs.

Sur d’autres sites (7576)

  • libavcodec get video duration and framerate

    17 septembre 2013, par Tishu

    I have a video encoded in .3gp h.264 and I am looking to get its framerate and duration in C. Here is the code I use after opening the file and finding the appropriate codecs :

    AVRational rational = gVideoCodecCtx->time_base;

    LOGI(10, "numerator is %i", rational.num);
    LOGI(10, "denominator is %i", rational.den);
    LOGI(10, "duration is %d", gFormatCtx->duration);
    LOGI(10, "fps is %d", (double)av_q2d(rational));

    And here is the output :

    12-02 12:30:19.819: I/FFmpegTest(23903): numerator is 1
    12-02 12:30:19.819: I/FFmpegTest(23903): denominator is 180000
    12-02 12:30:19.819: I/FFmpegTest(23903): duration is 6594490
    12-02 12:30:19.819: I/FFmpegTest(23903): fps is 1692926992

    From the documentation I understand that the duration is meant to be "duration/time_base" which gives me 6594490 / 180000 = 36.6. The duration of my video file is 6 seconds and I do not know where this factor of 6 would come from.

    Also the framerate seems to be completely off.

    It is currenlty hard to find help as a lot of tutorials use deprecated methods and the documentation does not give examples.

    Any help would be appreciated.

    Thanks

    Edit :
    Thanks to the comment below I managed to print the following

    12-02 18:59:36.279: I/FFmpegTest(435): numerator is 1
    12-02 18:59:36.279: I/FFmpegTest(435): denominator is 180000
    12-02 18:59:36.279: I/FFmpegTest(435): duration is 6594490
    12-02 18:59:36.279: I/FFmpegTest(435): fps is 0.000006

    I also managed to find out a frame's timestamp in msec with this :

    int msec = 1000*(packet.pts * timeBase * gVideoCodecCtx->ticks_per_frame);

    This returns me something that's roughly 33fps (I expect 30). But I can't figure out how to retrieve the duration. The documentation says "duration of the stream, in AV_TIME_BASE fractional seconds" but 6594490 * 0.000006 = 39.5 - the correct duration is 6.3 seconds). Also the exact fps is 30 but nor sure how to get from 0.000006 to 30 with the above figures)

    Thanks

  • Improve ffmpeg CPU usage by compramising quality

    20 juin 2015, par Hardik Juneja

    I am using FFMpeg for screen capturing.
    I am looking for a screen capturing tool that will run on 1000 of VMs (windows and mac).The VMs have limited CPU (1 core) and 2GB ram and No GPU.

    Currently I invoke ffmpeg with

    ffmpeg  -y -framerate 8 -f dshow -f gdigrab -i "desktop"  -c:v libx264  -crf 0 -preset ultrafast -threads 0 temp.mkv

    I am using gdigrab to capture screen ? Is there any better options that might reduce cpu usage ? or changing the encoder or format ?

    I am aiming for 4-5% reduction in CPU usage.

    Thanks in advance

  • Improve ffmpeg CPU usage by compramising quality

    20 juin 2015, par Hardik Juneja

    I am using FFMpeg for screen capturing.
    I am looking for a screen capturing tool that will run on 1000 of VMs (windows and mac).The VMs have limited CPU (1 core) and 2GB ram and No GPU.

    Currently I invoke ffmpeg with

    ffmpeg  -y -framerate 8 -f dshow -f gdigrab -i "desktop"  -c:v libx264  -crf 0 -preset ultrafast -threads 0 temp.mkv

    I am using gdigrab to capture screen ? Is there any better options that might reduce cpu usage ? or changing the encoder or format ?

    I am aiming for 4-5% reduction in CPU usage.

    Thanks in advance