Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (80)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (6046)

  • lower fps when using ffmpeg to convert mp4 to gif

    3 juin 2016, par Muhia NJoroge

    I am using ffmpeg to convert high quality videos to gif, most of the videos are 60fps and over 720p, but when I use the code below, to convert the video to gif, I get very low fps for the gif output,

    #!/usr/bin/env
    palette=/tmp/pallete.png
    filter="fps=50,scale=480:-1:flags=lanczos"

    ffmpeg -y  -i test.mov -vf $filter,palettegen=stats_mode=diff $palette
    ffmpeg -y -i test.mov -i $palette -lavfi "$filter [x]; [x][1:v] paletteuse" test.gif

    another issue I have noted is - as the width increases e.g 720 instead of 480 I get even lower fps.

    here is output log example, the output fps is lower than the assigned 50fps

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/201631203815.mp4':
    Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf56.36.100
    Duration: 00:00:05.48, start: 0.016000, bitrate: 1579 kb/s

    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1334x1334, 1576 kb/s, 60.18 fps, 60 tbr, 1000k tbn, 50 tbc (default)
    Metadata:
     handler_name    : VideoHandler

    Input #1, png_pipe, from '/tmp/pallete.png':
      Duration: N/A, bitrate: N/A
    Stream #1:0: Video: png, rgba(pc), 16x16 [SAR 1:1 DAR 1:1], 25 tbr, 25 tbn, 25 tbc

    Output #0, gif, to '/tmp/201631203815.gif':
    Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf56.40.101
    Stream #0:0: Video: gif, pal8, 480x480, q=2-31, 200 kb/s, 50 fps, 100 tbn, 50 tbc (default)
    Metadata:
     encoder         : Lavc56.60.100 gif
    Stream mapping:
      Stream #0:0 (h264) -> fps
      Stream #1:0 (png) -> paletteuse:palette
     paletteuse -> Stream #0:0 (gif)
    Press [q] to stop, [?] for help

    frame=  275 fps= 32 q=-0.0 Lsize=    2480kB time=00:00:05.50 bitrate=3693.5kbits/s    

    How do I ensure that the output fps is always whats set by the user ?
    Any resource on this is highly appreciated.

    UPDATE

    i have also noticed that the use of a higher fps eg filter="fps=90,scale=480:-1:flags=lanczos" has the effect of slowing down the gif,like a slow motion effect, the output fps is still lower around 15fps,

  • How can I stream a jpeg file that is continually created to a mjpeg stream that can be read as a webcam from Raspbery Pi ? [closed]

    10 novembre 2023, par Andrei Ignat

    I am using OpenCV to process frames I catch from a MJPEG stream, aprox. 1-3fps for a burst of 30-60s and want to stream the result back to view it side by side as a webcam in the webinterface.
The Webinterface reading the stream is Mainsail and the OpenCV file is created by a Python script in Klipper.

    


    I tried saving the frame to "frame.jpeg" and stream using FFMPEG :

    


     ffmpeg -loop 1 -i frame.jpg -framerate 15 -c:v mjpeg -f mjpeg -listen 1 http://*:8282/cv2


    


    But it gives me this error when the webcam client connects :

    


    Input #0, image2, from 'frame.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: 10017 kb/s
  Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 640x480 [SAR 1:1 DAR 4:3], 25 fps, 25 tbr, 25 tbn
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg (native) -> mjpeg (native))
Press [q] to stop, [?] for help
Output #0, mjpeg, to 'http://*:8282/cv2':
  Metadata:
    encoder         : Lavf59.27.100
  Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown, progressive), 640x480 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 25 fps, 25 tbn
    Metadata:
      encoder         : Lavc59.37.100 mjpeg
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
av_interleaved_write_frame(): Broken pipe time=00:00:00.04 bitrate=3496.4kbits/s speed=2e+04x
Error writing trailer of http://*:8282/cv2: Broken pipe
frame=    2 fps=0.0 q=2.7 Lsize=      17kB time=00:00:00.08 bitrate=1748.2kbits/s speed=1.27x
video:43kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[http @ 0x29fd660] URL read error: End of file
Error closing file http://*:8282/cv2: End of file
Conversion failed!


    


  • FFMPEG detect silence command runs correctly but does not give the silence duration

    8 janvier 2020, par Aizayousaf

    I have a .wav audio file and I need to extract silence/pause duration in this file. I’m using ffmpeg with silence detect filter but I’m unable to understand why its not giving silence duration with this file while it gives result with other files. Can anyone help me to understand the out given below that why its not showing detected silences.

    Input Command :

    ffmpeg -i "input.wav" -af silencedetect=noise=-30dB:d=0.5 -f null -

    OutPut

    ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
    built with gcc 9.1.1 (GCC) 20190807
    configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --    enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-
    libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-
    libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-
    libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --
    enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --
    enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --
    enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --    enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt

    libavutil      56. 31.100 / 56. 31.100
    libavcodec     58. 54.100 / 58. 54.100
    libavformat    58. 29.100 / 58. 29.100
    libavdevice    58.  8.100 / 58.  8.100
    libavfilter     7. 57.100 /  7. 57.100
    libswscale      5.  5.100 /  5.  5.100
    libswresample   3.  5.100 /  3.  5.100
    libpostproc    55.  5.100 / 55.  5.100

    Guessed Channel Layout for Input Stream #0.0 : stereo
    Input #0, wav, from 'D:\Research\PhD\Carolina\AD\wav\media.io_Wakeman_Rhyne_001_01.wav':
    Duration: 00:17:38.04, bitrate: 1411 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
    Stream mapping:
    Stream #0:0 -> #0:0 (pcm_s16le (native) -> pcm_s16le (native))
    Press [q] to stop, [?] for help
    Output #0, null, to 'pipe:':