Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (62)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette 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.

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (10150)

  • ffmpeg gets stuck at 20 FPS on 4Kp30

    1er mars 2023, par Ivy Growing

    Please, help me to understand why putting OBS between the capture card and the ffmpeg improves the FPS rate.

    


    Details :

    


    timeit ffmpeg -y -init_hw_device qsv=hw -filter_hw_device hw -hwaccel qsv -f dshow -video_size 3840x2160 -rtbufsize 2002000k -framerate 30 -c:v rawvideo -i video="USB Capture HDMI 4K+" -r 30 -t 00:01:00 -c:v h264_qsv -preset veryfast -b:v 10000K -movflags faststart -f mpegts output4kqsv.mpg -benchmark
...
Input #0, dshow, from 'video=USB Capture HDMI 4K+':
  Duration: N/A, start: 787911.842300, bitrate: N/A
  Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422(tv, bt709/bt709/unknown), 3840x2160, 30 fps, 30 tbr, 10000k tbn
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_qsv))
Press [q] to stop, [?] for help
Output #0, mpegts, to 'output4kqsv.mpg':
  Metadata:
    encoder         : Lavf59.27.100
  Stream #0:0: Video: h264, nv12(tv, bt709/bt709/unknown, progressive), 3840x2160, q=2-31, 10000 kb/s, 30 fps, 90k tbn
    Metadata:
      encoder         : Lavc59.37.100 h264_qsv
...
frame= 1800 fps= 19 q=17.0 Lsize=   74557kB time=00:00:59.90 bitrate=10196.5kbits/s speed=0.648x
...
Elapsed Time:     0:01:34.749


    


    Capturing the video from the capture card is limited to 19-20 FPS and speed 0.65. Tried million tweaks like changing codec from QSV to pure software, changing bitrate, presets, flags, etc - nothing helps.

    


    However, if the same capture card is sourced to OBS and the OBS is set as Virtual camera then it's 30 FPS and speed 1.0 :

    


    timeit ffmpeg -y -init_hw_device qsv=hw -filter_hw_device hw -hwaccel qsv     -f dshow -video_size 3840x2160 -rtbufsize 2002000k -framerate 30 -i video="OBS Virtual Camera" -r 30 -t 00:01:00      -c:v h264_qsv -preset veryfast -b:v 10000K -movflags faststart -f mpegts obs4kqsv1.mpg -benchmark
...
Input #0, dshow, from 'video=OBS Virtual Camera':
  Duration: N/A, start: 1576816.988000, bitrate: N/A
  Stream #0:0: Video: rawvideo (NV12 / 0x3231564E), nv12, 3840x2160, 30 fps, 30 tbr, 10000k tbn
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_qsv))
Press [q] to stop, [?] for help
Output #0, mpegts, to 'obs4kqsv1.mpg':
  Metadata:
    encoder         : Lavf59.27.100
  Stream #0:0: Video: h264, nv12(progressive), 3840x2160, q=2-31, 10000 kb/s, 30 fps, 90k tbn
    Metadata:
      encoder         : Lavc59.37.100 h264_qsv
...
frame= 1800 fps= 30 q=17.0 Lsize=   74629kB time=00:00:59.90 bitrate=10206.3kbits/s speed=0.999x
...
Elapsed Time:     0:01:02.780


    


    Is OBS just providing "artificial" extra frames ?

    


    How to tweak the ffmpeg command to have all 30 FPS encoded ?

    


  • avcodec/wavarc : fix 8bit decoding

    6 février 2023, par Paul B Mahol
    avcodec/wavarc : fix 8bit decoding
    
    • [DH] libavcodec/wavarc.c
    • [DH] libavformat/wavarc.c
  • lavc/qsv : Add support for decoding & encoding 8bit 4:4:4 content

    6 septembre 2022, par Haihao Xiang
    lavc/qsv : Add support for decoding & encoding 8bit 4:4:4 content
    

    AV_PIX_FMT_VUYX is used in FFmpeg and MFX_FOURCC_AYUV is used in the SDK

    Reviewed-by : Philip Langdale <philipl@overt.org>
    Signed-off-by : Haihao Xiang <haihao.xiang@intel.com>

    • [DH] libavcodec/qsv.c
    • [DH] libavcodec/qsvdec.c
    • [DH] libavcodec/qsvenc_hevc.c
    • [DH] libavcodec/qsvenc_vp9.c