Recherche avancée

Médias (91)

Autres articles (112)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (11598)

  • Merge remote-tracking branch ’qatar/master’

    28 mai 2013, par Michael Niedermayer
    Merge remote-tracking branch ’qatar/master’
    

    * qatar/master :
    smacker : add a clarification notice about audio decoding
    configure : make jack depend on pthreads

    Conflicts :
    configure

    Merged-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] configure
    • [DH] libavcodec/smacker.c
  • ffmpeg dshow Frame dropped on removal and re-insertion of headset

    11 février 2019, par Debendra Modi

    I am using avformat_open_input and av_read_frame to capture audio frames from my usb headset (speaker and mic - "audio=virtual-audio-capturer" and my usb mic device) and then further processing of the frame. Everything works fine. I can run my code for days without any issue. However, when I remove my headset from the usb jack, as expected av_read_frame gives an error code -5.

    At this time, I close my input device using avformat_close_input and try to open the input device. This continues to fail till I re-insert my headset. I am then again able to capture the frames and process them. However, after some time, I get messages as follows from the ffmpeg library -

    [dshow @ 0a529040] real-time buffer [virtual-audio-capturer] [audio input] too full or near too full (99% of size : 3041280 [rtbufsize parameter]) ! frame dropped !

    It appears dshow continues to capture frames although I have closed the input. Most forums mention to increase the rtbufsize, but that may not be a proper solution specially if I want to remove my headset for long duration.

    Isn’t there any way to stop dshow from capturing frames so that i am able to run my code without dropping frames, regardless of how many times or how long I remove the headset ?

    Thanks in advance.

  • Best Settings for H264_Nvenc To Minimize Latency ? (FFMPEG)

    1er novembre 2022, par M. Ying

    I'm currently using Libavcodec to encode video frames using H.264. Because I'm streaming this video frames after they're encoded, minimizing latency is crucial to me. My current settings are :

    &#xA;&#xA;

    avcodec_register_all();&#xA;codec = avcodec_find_encoder(AV_CODEC_ID_H264);&#xA;&#xA;// allocate and set ffmpeg context&#xA;context = avcodec_alloc_context3(encoder->codec);&#xA;context->bit_rate = bitrate;&#xA;context->width = out_width;&#xA;context->height = out_height;&#xA;context->time_base.num = 1;&#xA;context->time_base.den = 30;&#xA;context->gop_size = 1; // send SPS/PPS headers every packet&#xA;context->max_b_frames = 0;&#xA;context->pix_fmt = AV_PIX_FMT_YUV420P;&#xA;&#xA;// set encoder parameters to max performance&#xA;av_opt_set(context->priv_data, "preset", "ultrafast", 0);&#xA;av_opt_set(context->priv_data, "tune", "zerolatency", 0);&#xA;&#xA;// open capture encoder&#xA;avcodec_open2(context, codec, NULL);&#xA;

    &#xA;&#xA;

    These settings work well, but I am trying to switch to hardware-based encoding to take the workload off my CPU. I currently have an NVIDIA GPU, so I tried using the following settings with h264_nvenc :

    &#xA;&#xA;

    codec = avcodec_find_encoder_by_name("h264_nvenc");&#xA;&#xA;// allocate and set ffmpeg context&#xA;context = avcodec_alloc_context3(encoder->codec);&#xA;context->dct_algo = FF_DCT_FASTINT;&#xA;context->bit_rate = bitrate;&#xA;context->width = out_width;&#xA;context->height = out_height;&#xA;context->time_base.num = 1;&#xA;context->time_base.den = 30;&#xA;context->gop_size = 1; // send SPS/PPS headers every packet&#xA;context->max_b_frames = 0;&#xA;context->pix_fmt = AV_PIX_FMT_YUV420P;&#xA;&#xA;// set encoder parameters to max performancen&#xA;av_opt_set(context->priv_data, "preset", "llhq", 0);&#xA;av_opt_set(context->priv_data, "tune", "zerolatency", 0);&#xA;

    &#xA;&#xA;

    The issue is, I noticed that the latency with h264_nvenc is significantly more than the latency with AV_CODEC_ID_H264 (the software-based version). I think that my settings or setup of h264_nvenc must be wrong, since GPU-based encoding should be faster than software-based encoding. Could anyone point me in the right direction ? Thanks so much !

    &#xA;