Recherche avancée

Médias (91)

Autres articles (92)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (13090)

  • UVC webcam with ffplay outputs only noise ?

    1er mars 2024, par Abdulla Masud

    (My end goal is to use a UVC webcam with esp32 or raspberry pi. I was hoping to learn while doing some fun projects.)

    


    I have an old UVC webcam (Creative model ct6840) but I can't seem to get it to work with ffplay. I have tried looking through the documentation and other questions here but nothing is working for me. So far I have only been able to achieve a noisy-jittery output.

    


    Running ffplay -f rawvideo -video_size 670x480 /dev/video1, I get :

    


    screenshot of ffplay window popup

    


    Can someone help me understand how to make the camera work with ffplay ?

    


    The following is the information of my webcam :

    


    $ ffmpeg -f v4l2 -list_formats all -i /dev/video2

    


    [video4linux2,v4l2 @ 0x17eb3c0] Compressed: Unsupported :          GSPCA OV511 : 320x240 640x480


    


    $ v4l-info /dev/video2

    


    ### v4l2 device info [/dev/video2] ###
general info
    VIDIOC_QUERYCAP
    driver                  : "ov519"
    card                    : "USB Camera (05a9:0511)"
    bus_info                : "usb-0000:00:14.0-8.2"
    version                 : 6.1.79
    capabilities            : 0x85200001 [VIDEO_CAPTURE,?,READWRITE,STREAMING,(null)]

standards

inputs
    VIDIOC_ENUMINPUT(0)
    index                   : 0
    name                    : "ov519"
    type                    : CAMERA
    audioset                : 0
    tuner                   : 0
    std                     : 0x0 []
    status                  : 0x0 []

video capture
    VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
    index                   : 0
    type                    : VIDEO_CAPTURE
    flags                   : 1
    description             : "GSPCA OV511"
    pixelformat             : 0x3131354f [O511]
    VIDIOC_G_FMT(VIDEO_CAPTURE)
    type                    : VIDEO_CAPTURE
    fmt.pix.width           : 640
    fmt.pix.height          : 480
    fmt.pix.pixelformat     : 0x3131354f [O511]
    fmt.pix.field           : NONE
    fmt.pix.bytesperline    : 640
    fmt.pix.sizeimage       : 614400
    fmt.pix.colorspace      : JPEG
    fmt.pix.priv            : 4276996862

controls
    VIDIOC_QUERYCTRL(BASE+0)
    id                      : 9963776
    type                    : INTEGER
    name                    : "Brightness"
    minimum                 : 0
    maximum                 : 255
    step                    : 1
    default_value           : 127
    flags                   : 48
    VIDIOC_QUERYCTRL(BASE+1)
    id                      : 9963777
    type                    : INTEGER
    name                    : "Contrast"
    minimum                 : 0
    maximum                 : 255
    step                    : 1
    default_value           : 127
    flags                   : 32
    VIDIOC_QUERYCTRL(BASE+2)
    id                      : 9963778
    type                    : INTEGER
    name                    : "Saturation"
    minimum                 : 0
    maximum                 : 255
    step                    : 1
    default_value           : 127
    flags                   : 32
    VIDIOC_QUERYCTRL(BASE+24)
    id                      : 9963800
    type                    : MENU
    name                    : "Power Line Frequency"
    minimum                 : 0
    maximum                 : 2
    step                    : 1
    default_value           : 0
    flags                   : 0
    VIDIOC_QUERYCTRL(BASE+32)
    id                      : 9963808
    type                    : BOOLEAN
    name                    : "Brightness, Automatic"
    minimum                 : 0
    maximum                 : 1
    step                    : 1
    default_value           : 1
    flags                   : 8


    


    Can someone guide me here please ? Any advice will be greatly appreciated 

    


    (P.S. the camera works perfectly with "guvcview" gtk application but since I want to use the camera with raspberry pi, I want it to work with ffplay...)

    


  • avutil/mathematics : speed up av_gcd by using Stein’s binary GCD algorithm

    11 octobre 2015, par Ganesh Ajjanagadde
    avutil/mathematics : speed up av_gcd by using Stein’s binary GCD algorithm
    

    This uses Stein’s binary GCD algorithm :
    https://en.wikipedia.org/wiki/Binary_GCD_algorithm
    to get a roughly 4x speedup over Euclidean GCD on standard architectures
    with a compiler intrinsic for ctzll, and a roughly 2x speedup otherwise.
    At the moment, the compiler intrinsic is used on GCC and Clang due to
    its easy availability.

    Quick note regarding overflow : yes, subtractions on int64_t can, but the
    llabs takes care of that. The llabs is also guaranteed to be safe, with
    no annoying INT64_MIN business since INT64_MIN being a power of 2, is
    shifted down before being sent to llabs.

    The binary GCD needs ff_ctzll, an extension of ff_ctz for long long (int64_t). On
    GCC, this is provided by a built-in. On Microsoft, there is a
    BitScanForward64 analog of BitScanForward that should work ; but I can’t confirm.
    Apparently it is not available on 32 bit builds ; so this may or may not
    work correctly. On Intel, per the documentation there is only an
    intrinsic for _bit_scan_forward and people have posted on forums
    regarding _bit_scan_forward64, but often their documentation is
    woeful. Again, I don’t have it, so I can’t test.

    As such, to be safe, for now only the GCC/Clang intrinsic is added, the rest
    use a compiled version based on the De-Bruijn method of Leiserson et al :
    http://supertech.csail.mit.edu/papers/debruijn.pdf.

    Tested with FATE, sample benchmark (x86-64, GCC 5.2.0, Haswell)
    with a START_TIMER and STOP_TIMER in libavutil/rationsl.c, followed by a
    make fate.

    aac-am00_88.err :
    builtin :
    714 decicycles in av_gcd, 4095 runs, 1 skips

    de-bruijn :
    1440 decicycles in av_gcd, 4096 runs, 0 skips

    previous :
    2889 decicycles in av_gcd, 4096 runs, 0 skips

    Signed-off-by : Ganesh Ajjanagadde <gajjanagadde@gmail.com>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavutil/intmath.h
    • [DH] libavutil/mathematics.c
  • FFMPEG with VP9 + RTSP

    4 janvier 2021, par Jim Jin

    When we use HEVC + RTSP, ffmpeg works fine. The stream is captured by webcam.

    &#xA;

    ffmpeg -f dshow -rtbufsize 100M  -f vfwcap -i "0" -strict experimental -c:v hevc_qsv -f rtsp -rtsp_transport tcp rtsp://127.0.0.1/live/test&#xA;

    &#xA;

    The output is like :

    &#xA;

    frame=  355 fps= 37 q=-0.0 size=N/A time=00:00:11.27 bitrate=N/A dup=159 drop=0 speed=1.18x&#xA;

    &#xA;

    Then we switch to VP9 + RTSP.

    &#xA;

    ffmpeg -f dshow -rtbufsize 100M  -f vfwcap -i "0" -strict experimental -c:v libvpx-vp9 -f rtsp -rtsp_transport tcp rtsp://127.0.0.1/live/test&#xA;

    &#xA;

    The fps and speed looks too slow :

    &#xA;

    frame=  263 fps=9.5 q=0.0 size=N/A time=00:00:07.94 bitrate=N/A dup=119 drop=0 speed=0.288x&#xA;

    &#xA;

    Then we use ffplay to play the stream. There are a lot of error messages and the video seems frozen.

    &#xA;

    [vp9 @ 000001c3da86c200] Not all references are available&#xA;[vp9 @ 000001c3dffd5700] Not all references are available&#xA;[vp9 @ 000001c3da8477c0] Not all references are available&#xA;[vp9 @ 000001c3da848240] Not all references are available&#xA;[vp9 @ 000001c3da848e40] Not all references are available&#xA;[vp9 @ 000001c3e01d2fc0] Not all references are available&#xA;[vp9 @ 000001c3e01dd280] Not all references are available&#xA;[vp9 @ 000001c3e01e8980] Not all references are available&#xA;[vp9 @ 000001c3e01f1880] Not all references are available&#xA;[vp9 @ 000001c3da86c200] Not all references are available&#xA;[vp9 @ 000001c3dffd5700] Not all references are available&#xA;[vp9 @ 000001c3da8477c0] Not all references are available&#xA;[vp9 @ 000001c3da848240] Not all references are available&#xA;[vp9 @ 000001c3da848e40] Not all references are available&#xA;[vp9 @ 000001c3e01d2fc0] Not all references are available&#xA;[vp9 @ 000001c3e01dd280] Not all references are available0B f=0/0&#xA;[vp9 @ 000001c3e01e8980] Not all references are available&#xA;[vp9 @ 000001c3e01f1880] Not all references are available&#xA;[vp9 @ 000001c3da86c200] Not all references are available&#xA;[vp9 @ 000001c3dffd5700] Not all references are available&#xA;[vp9 @ 000001c3da8477c0] Not all references are available&#xA;[vp9 @ 000001c3da848240] Not all references are available&#xA;[vp9 @ 000001c3da848e40] Not all references are available&#xA;[vp9 @ 000001c3e01d2fc0] Not all references are available&#xA;[vp9 @ 000001c3e01dd280] Not all references are available&#xA;[vp9 @ 000001c3e01e8980] Not all references are available&#xA;[vp9 @ 000001c3e01f1880] Not all references are available&#xA;

    &#xA;

    Finally, we try hardware VP9 encoder.

    &#xA;

    ffmpeg -f dshow -rtbufsize 100M  -f vfwcap -i "0" -strict experimental -c:v vp9_qsv -f rtsp -rtsp_transport tcp rtsp://127.0.0.1/live/test&#xA;

    &#xA;

    It can't work.

    &#xA;

    [swscaler @ 0000021e88df9fc0] deprecated pixel format used, make sure you did set range correctly&#xA;[vp9_qsv @ 0000021e8687df80] Selected ratecontrol mode is unsupported&#xA;[vp9_qsv @ 0000021e8687df80] Low power mode is unsupported&#xA;[vp9_qsv @ 0000021e8687df80] Current frame rate is unsupported&#xA;[vp9_qsv @ 0000021e8687df80] Current picture structure is unsupported&#xA;[vp9_qsv @ 0000021e8687df80] Current resolution is unsupported&#xA;[vp9_qsv @ 0000021e8687df80] Current pixel format is unsupported&#xA;[vp9_qsv @ 0000021e8687df80] some encoding parameters are not supported by the QSV runtime. Please double check the input parameters.&#xA;Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height&#xA;Conversion failed!&#xA;

    &#xA;

    So, how can we deal with VP9 + RTSP successfully ?

    &#xA;