Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (89)

  • 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

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

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (11656)

  • tests : do not use AVFrame accessor

    22 avril 2017, par Muhammad Faiz
    tests : do not use AVFrame accessor
    

    Reviewed-by : wm4 <nfxjfg@googlemail.com>
    Signed-off-by : Muhammad Faiz <mfcc64@gmail.com>

    • [DH] tests/api/api-flac-test.c
    • [DH] tests/api/api-h264-test.c
    • [DH] tests/api/api-seek-test.c
    • [DH] tests/api/api-threadmessage-test.c
  • 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.)

    &#xA;

    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.

    &#xA;

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

    &#xA;

    screenshot of ffplay window popup

    &#xA;

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

    &#xA;

    The following is the information of my webcam :

    &#xA;

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

    &#xA;

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

    &#xA;

    $ v4l-info /dev/video2

    &#xA;

    ### v4l2 device info [/dev/video2] ###&#xA;general info&#xA;    VIDIOC_QUERYCAP&#xA;    driver                  : "ov519"&#xA;    card                    : "USB Camera (05a9:0511)"&#xA;    bus_info                : "usb-0000:00:14.0-8.2"&#xA;    version                 : 6.1.79&#xA;    capabilities            : 0x85200001 [VIDEO_CAPTURE,?,READWRITE,STREAMING,(null)]&#xA;&#xA;standards&#xA;&#xA;inputs&#xA;    VIDIOC_ENUMINPUT(0)&#xA;    index                   : 0&#xA;    name                    : "ov519"&#xA;    type                    : CAMERA&#xA;    audioset                : 0&#xA;    tuner                   : 0&#xA;    std                     : 0x0 []&#xA;    status                  : 0x0 []&#xA;&#xA;video capture&#xA;    VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)&#xA;    index                   : 0&#xA;    type                    : VIDEO_CAPTURE&#xA;    flags                   : 1&#xA;    description             : "GSPCA OV511"&#xA;    pixelformat             : 0x3131354f [O511]&#xA;    VIDIOC_G_FMT(VIDEO_CAPTURE)&#xA;    type                    : VIDEO_CAPTURE&#xA;    fmt.pix.width           : 640&#xA;    fmt.pix.height          : 480&#xA;    fmt.pix.pixelformat     : 0x3131354f [O511]&#xA;    fmt.pix.field           : NONE&#xA;    fmt.pix.bytesperline    : 640&#xA;    fmt.pix.sizeimage       : 614400&#xA;    fmt.pix.colorspace      : JPEG&#xA;    fmt.pix.priv            : 4276996862&#xA;&#xA;controls&#xA;    VIDIOC_QUERYCTRL(BASE&#x2B;0)&#xA;    id                      : 9963776&#xA;    type                    : INTEGER&#xA;    name                    : "Brightness"&#xA;    minimum                 : 0&#xA;    maximum                 : 255&#xA;    step                    : 1&#xA;    default_value           : 127&#xA;    flags                   : 48&#xA;    VIDIOC_QUERYCTRL(BASE&#x2B;1)&#xA;    id                      : 9963777&#xA;    type                    : INTEGER&#xA;    name                    : "Contrast"&#xA;    minimum                 : 0&#xA;    maximum                 : 255&#xA;    step                    : 1&#xA;    default_value           : 127&#xA;    flags                   : 32&#xA;    VIDIOC_QUERYCTRL(BASE&#x2B;2)&#xA;    id                      : 9963778&#xA;    type                    : INTEGER&#xA;    name                    : "Saturation"&#xA;    minimum                 : 0&#xA;    maximum                 : 255&#xA;    step                    : 1&#xA;    default_value           : 127&#xA;    flags                   : 32&#xA;    VIDIOC_QUERYCTRL(BASE&#x2B;24)&#xA;    id                      : 9963800&#xA;    type                    : MENU&#xA;    name                    : "Power Line Frequency"&#xA;    minimum                 : 0&#xA;    maximum                 : 2&#xA;    step                    : 1&#xA;    default_value           : 0&#xA;    flags                   : 0&#xA;    VIDIOC_QUERYCTRL(BASE&#x2B;32)&#xA;    id                      : 9963808&#xA;    type                    : BOOLEAN&#xA;    name                    : "Brightness, Automatic"&#xA;    minimum                 : 0&#xA;    maximum                 : 1&#xA;    step                    : 1&#xA;    default_value           : 1&#xA;    flags                   : 8&#xA;

    &#xA;

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

    &#xA;

    (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...)

    &#xA;

  • How to encode video with ffmpeg using AMD h264_amf

    10 novembre 2022, par Ivy Growing

    Given :

    &#xA;

      &#xA;
    • Win10
    • &#xA;

    • AMD CPU
    • &#xA;

    • Video capturing card Avermedia Live Gamer Extreme 3
    • &#xA;

    • ffmpeg versions and encoders :
    • &#xA;

    &#xA;

    >ffmpeg.exe -encoders | find "264"&#xA;ffmpeg version 5.1-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers&#xA;// cut&#xA; V....D libx264              libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (codec h264)&#xA; V....D libx264rgb           libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 RGB (codec h264)&#xA; V....D h264_amf             AMD AMF H.264 Encoder (codec h264)&#xA; V....D h264_mf              H264 via MediaFoundation (codec h264)&#xA; V....D h264_nvenc           NVIDIA NVENC H.264 encoder (codec h264)&#xA; V..... h264_qsv             H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (Intel Quick Sync Video acceleration) (codec h264)&#xA;

    &#xA;

    Required to capture the video into H.264 encoded file using AMD's hardware accelerator in the CPU (AMF, or VCE).&#xA;Tried : ffmpeg -y -f dshow -rtbufsize 2002000k -framerate 30 -i video="Live Gamer EXTREME 3"  -t 00:00:10  -c:v h264_amf output.ts&#xA;Result :

    &#xA;

    Input #0, dshow, from &#x27;video=Live Gamer EXTREME 3&#x27;:&#xA;  Duration: N/A, start: 88548.973998, bitrate: N/A&#xA;  Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422(tv, bt709/bt709/unknown), 1280x720, 30 fps, 30 tbr, 10000k tbn&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_amf))&#xA;Press [q] to stop, [?] for help&#xA;[h264_amf @ 000002404328c700] DLL amfrt64.dll failed to open&#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;

    For some reason ffmpeg uses resolution 1280x720... When trying to specifiy the capture card resolution the following error appears :

    &#xA;

    >ffmpeg -y -f dshow -rtbufsize 2002000k -framerate 30 -video_size 3840x2160 -i video="Live Gamer EXTREME 3" -r 30 -t 00:00:10   -c:v h264_amf -f mpegts output.ts&#xA;//cut&#xA;[dshow @ 0000029d7c0f84c0] Could not set video options&#xA;video=Live Gamer EXTREME 3: I/O error&#xA;

    &#xA;

    This is not unique error for Avermedia card. The same error appears with Dell web cam and for Magewell.

    &#xA;

    From this answer the extra flags to be used with h264_amf. I guessed the default values should be good enough. It seems something needs to be configured or initialized when using AMF/VCE.

    &#xA;

    The video encoding in software (without AMF) works just fine but loads the CPU. The goal is using dedicated hardware module and release computational power of the CPU for the other apps.

    &#xA;

    Command example will be appreciated.

    &#xA;