Recherche avancée

Médias (1)

Mot : - Tags -/lev manovitch

Autres articles (63)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (6448)

  • how to record camera to file while encoding stream to v4l2-loopback device ?

    3 février 2021, par Jonatas

    So i have this logitech c920 camera 1920x1080 h264 capable and i would like to record the camera to file while at the same time copying/encoding the stream to a loopback device so the camera can be still used by other apps.&#xA;here is the code i got so far :

    &#xA;

    ffmpeg -report -f alsa -i hw:CARD=C920,DEV=0 -r 1500 -s 1920x1080 -f v4l2 -vcodec h264 \&#xA;-i /dev/video1 -copyinkf -vcodec copy /home/jonatas/Videos/2021-02-01185658.mp4 \ &#xA;-f v4l2 /dev/video0&#xA;

    &#xA;

    error :

    &#xA;

    Unknown V4L2 pixel format equivalent for yuvj420p&#xA;Could not write header for output file #1 (incorrect codec parameters ?): Invalid argument&#xA;Error initializing output stream 1:0 -- &#xA;

    &#xA;

    some info on /dev/video0(loopbackdevice) :

    &#xA;

    v4l2-ctl -d /dev/video0&#xA;&#xA;    Device Caps      : 0x05208003&#xA;        Video Capture&#xA;        Video Output&#xA;        Video Memory-to-Memory&#xA;        Read/Write&#xA;        Streaming&#xA;        Extended Pix Format&#xA;Priority: 0&#xA;Video input : 0 (loopback: ok)&#xA;Video output: 0 (loopback in)&#xA;Format Video Output:&#xA;    Width/Height      : 1280/720&#xA;    Pixel Format      : &#x27;YUYV&#x27; (YUYV 4:2:2)&#xA;    Field             : None&#xA;    Bytes per Line    : 2560&#xA;    Size Image        : 1843200&#xA;    Colorspace        : sRGB&#xA;    Transfer Function : Default (maps to sRGB)&#xA;    YCbCr/HSV Encoding: Default (maps to ITU-R 601)&#xA;    Quantization      : Default (maps to Limited Range)&#xA;    Flags             : &#xA;Streaming Parameters Video Capture:&#xA;    Frames per second: 30.000 (30/1)&#xA;    Read buffers     : 8&#xA;Streaming Parameters Video Output:&#xA;    Frames per second: 30.000 (30/1)&#xA;    Write buffers    : 8&#xA;&#xA;User Controls&#xA;&#xA;                    keep_format 0x0098f900 (bool)   : default=0 value=0&#xA;              sustain_framerate 0x0098f901 (bool)   : default=0 value=0&#xA;                        timeout 0x0098f902 (int)    : min=0 max=100000 step=1 default=0 value=0&#xA;               timeout_image_io 0x0098f903 (bool)   : default=0 value=0&#xA;

    &#xA;

    some info on my camera in /dev/video1

    &#xA;

    v4l2-ctl -d /dev/video1 --all&#xA;Driver Info:&#xA;    Driver name      : uvcvideo&#xA;    Card type        : HD Pro Webcam C920&#xA;    Bus info         : usb-0000:00:14.0-7.2&#xA;    Driver version   : 5.4.78&#xA;    Capabilities     : 0x84a00001&#xA;        Video Capture&#xA;        Metadata Capture&#xA;        Streaming&#xA;        Extended Pix Format&#xA;        Device Capabilities&#xA;    Device Caps      : 0x04200001&#xA;        Video Capture&#xA;        Streaming&#xA;        Extended Pix Format&#xA;Media Driver Info:&#xA;    Driver name      : uvcvideo&#xA;    Model            : HD Pro Webcam C920&#xA;    Serial           : EC6C336F&#xA;    Bus info         : usb-0000:00:14.0-7.2&#xA;    Media version    : 5.4.78&#xA;    Hardware revision: 0x00000011 (17)&#xA;    Driver version   : 5.4.78&#xA;Interface Info:&#xA;    ID               : 0x03000002&#xA;    Type             : V4L Video&#xA;Entity Info:&#xA;    ID               : 0x00000001 (1)&#xA;    Name             : HD Pro Webcam C920&#xA;    Function         : V4L2 I/O&#xA;    Flags         : default&#xA;    Pad 0x01000007   : 0: Sink&#xA;      Link 0x0200001f: from remote pad 0x100000a of entity &#x27;Processing 3&#x27;: Data, Enabled, Immutable&#xA;Priority: 2&#xA;Video input : 0 (Camera 1: ok)&#xA;Format Video Capture:&#xA;    Width/Height      : 1280/720&#xA;    Pixel Format      : &#x27;H264&#x27; (H.264)&#xA;    Field             : None&#xA;    Bytes per Line    : 2560&#xA;    Size Image        : 1843200&#xA;    Colorspace        : sRGB&#xA;    Transfer Function : Default (maps to sRGB)&#xA;    YCbCr/HSV Encoding: Default (maps to ITU-R 601)&#xA;    Quantization      : Default (maps to Full Range)&#xA;    Flags             : &#xA;Crop Capability Video Capture:&#xA;    Bounds      : Left 0, Top 0, Width 1280, Height 720&#xA;    Default     : Left 0, Top 0, Width 1280, Height 720&#xA;    Pixel Aspect: 1/1&#xA;Selection Video Capture: crop_default, Left 0, Top 0, Width 1280, Height 720, Flags: &#xA;Selection Video Capture: crop_bounds, Left 0, Top 0, Width 1280, Height 720, Flags: &#xA;Streaming Parameters Video Capture:&#xA;    Capabilities     : timeperframe&#xA;    Frames per second: 30.000 (30/1)&#xA;    Read buffers     : 0&#xA;                     brightness 0x00980900 (int)    : min=0 max=255 step=1 default=128 value=128&#xA;                       contrast 0x00980901 (int)    : min=0 max=255 step=1 default=128 value=128&#xA;                     saturation 0x00980902 (int)    : min=0 max=255 step=1 default=128 value=128&#xA; white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1&#xA;                           gain 0x00980913 (int)    : min=0 max=255 step=1 default=0 value=255&#xA;           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2&#xA;                0: Disabled&#xA;                1: 50 Hz&#xA;                2: 60 Hz&#xA;      white_balance_temperature 0x0098091a (int)    : min=2000 max=6500 step=1 default=4000 value=3233 flags=inactive&#xA;                      sharpness 0x0098091b (int)    : min=0 max=255 step=1 default=128 value=128&#xA;         backlight_compensation 0x0098091c (int)    : min=0 max=1 step=1 default=0 value=0&#xA;                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3&#xA;                1: Manual Mode&#xA;                3: Aperture Priority Mode&#xA;              exposure_absolute 0x009a0902 (int)    : min=3 max=2047 step=1 default=250 value=333 flags=inactive&#xA;         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=0&#xA;                   pan_absolute 0x009a0908 (int)    : min=-36000 max=36000 step=3600 default=0 value=0&#xA;                  tilt_absolute 0x009a0909 (int)    : min=-36000 max=36000 step=3600 default=0 value=0&#xA;                 focus_absolute 0x009a090a (int)    : min=0 max=250 step=5 default=0 value=0&#xA;                     focus_auto 0x009a090c (bool)   : default=1 value=0&#xA;                  zoom_absolute 0x009a090d (int)    : min=100 max=500 step=1 default=100 value=100&#xA;

    &#xA;

    if i remove the 3rd line of my script the camera records the stream of video and sound to the file flawless. i tried diferent things for the 3rd line as -vcodec and something to do with pix-format flag to YUYV without success.&#xA;Is it possible to achieve this with just one ffmpeg process ?&#xA;Will the sound be made available to the loopback device also ?&#xA;How to transcode it to the proper pixel format used by loopback device ?

    &#xA;

  • multiple GPU encoding use FFMPEG under multiple threads environment

    8 septembre 2022, par shenuo

    Here is the application situation.&#xA;I want use 4 NV GPUs to carry out some calculation work (CUDA based), and encoding work (FFMPEG &NVEC), it works fine when they are in serial. But when I want them to be parallel. like this

    &#xA;

    void encodingwork(){&#xA;            #pragma omp parallel for num_threads(4)&#xA;                for (int i = 0; i &lt; 4; i&#x2B;&#x2B;) {&#xA;                    cudaSetDevice(i);&#xA;                    encodingwork();&#xA;                }&#xA;        }&#xA;&#xA;        int main(){&#xA;            thread thd;&#xA;            for (int k = 0; k &lt; N; k&#x2B;&#x2B;) {&#xA;#pragma omp parallel for num_threads(4)&#xA;                for (int i = 0; i &lt; 4; i&#x2B;&#x2B;) {&#xA;                    cudaSetDevice(i);&#xA;                    cudawork();&#xA;                }&#xA;                if (k != 0)&#xA;                    thd.join();&#xA;                thd = thread(encodingwork);&#xA;            }&#xA;            thd.join();&#xA;        }&#xA;

    &#xA;

    an error will be thrown out from ffmpeg. just like

    &#xA;

    [AVHWDeviceContext @ 000002334959ac80] cu->cuMemFree((CUdeviceptr)data) failed -> CUDA_ERROR_ILLEGAL_ADDRESS: an illegal memory access was encountered&#xA;&#xA;[hevc_nvenc @ 00000230c956b200] EncodePicture failed!: generic error (20):&#xA;Error sending a frame for encoding: -1313558101 (Unknown error occurred)&#xA;

    &#xA;

    can anybody tell me what's wrong with this ?

    &#xA;

  • Encode Ogg/Opus with very specific structure

    28 septembre 2022, par sonovice

    I have an ogg/opus file with a pretty special structure that I would like to reproduce.

    &#xA;

    opusinfo returns a few hints of how it was made :

    &#xA;

    New logical stream (#1, serial: 59d24a85): type opus&#xA;Encoded with Lavf56.40.101&#xA;User comments section follows...&#xA;        encoder=Lavc56.60.100 libopus&#xA;        encoder_options=--quiet --bitrate 96 --vbr&#xA;        pad=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000&#xA;Opus stream 1:&#xA;        Pre-skip: 312&#xA;        Playback gain: 0 dB&#xA;        Channels: 2&#xA;        Original sample rate: 48000Hz&#xA;        Packet duration:   60.0ms (max),   56.6ms (avg),   20.0ms (min)&#xA;        Page duration:   1460.0ms (max),  323.6ms (avg),  120.0ms (min)&#xA;        Total data length: 38872802 bytes (overhead: 1.12%)&#xA;        Playback length: 51m:11.473s&#xA;        Average bitrate: 101.2 kb/s, w/o overhead: 100.1 kb/s&#xA;Logical stream 1 ended&#xA;

    &#xA;

    Lavf/Lavc suggests that it was made with FFMPEG, but I am not able to find suitable settings.

    &#xA;

    Looking at the actual bytes, it starts with an 0x200 (512) byte long ogg page containing metadata, followed by an 0xE00 (3584) byte long ogg page with actual audio content. Both pages sum up exactly to 0x1000 (4096) bytes.&#xA;Head of the ogg file

    &#xA;

    After that, each page is exactly 0x1000 (4096) bytes long with potential zero padding, so that the pages start at offsets 0x1000, 0x2000, 0x3000 etc.&#xA;examplary page boundary

    &#xA;

    Is there any known tool or library that can produce such ogg/opus files from PCM wave audio ?

    &#xA;

    (Unfortunately I cannot share the file as it contains proprietary content.)

    &#xA;