Recherche avancée

Médias (91)

Autres articles (45)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

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

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (7183)

  • FFMPEG - subtitles not showing for the full duration of video

    26 juin 2023, par Caio Maia

    I could not archive the following :

    


      

    1. Have images loaded from a textfile to create a slideshow.
    2. 


    3. Have a background music with volume control.
    4. 


    5. Have my voice.mp3 over the bg music.
    6. 


    7. Have subtitles in the ass format.
    8. 


    9. Have a text shown with drawtext in the full duration of video.
    10. 


    11. in only one command, if possible.
    12. 


    


    The command I tryed is :

    


    ffmpeg.exe -f concat -i images.txt -i bg_music.m4a -i voice.mp3 -filter_complex "[0:v]drawtext=fontfile='fonte.TTF':fontsize=20:fontcolor=white:text='Imagens da internet':x=w-tw-10:y=h-th-10,[0]overlay=10:10,ass=subtitles.txt[out],[1]volume=0.3[a1];[2]volume=2[a2];[a1][a2]amix=inputs=2:duration=shortest[aud]" -map "[out]" -map "[aud]":a -pix_fmt yuv420p -c:v libx264 -c:s mov_text -r 30 -y out.mp4


    


    It works but not for subtitles that are showing only after the first image of th slideshow appears.

    


    the content of images.txt is :

    


    file 'image1.png'
duration 20
file 'image2.png'
duration 5
file 'image3.png'
duration 5


    


    the content of subtitles.txt is

    


    Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Dialogue: 0,0:00:01.00,0:00:06.00,Default,,0,0,0,,Subscribe!
Dialogue: 0,0:00:07.00,0:00:16.00,Default2,,0,0,0,,Like!
Dialogue: 0,0:00:17.00,0:00:26.00,Default,,0,0,0,,Share!


    


    The problem is that only the "Share !" text is shown.

    


  • lavc/libopenh264 : Support full range videos in transcoding

    18 avril 2023, par Jun Zhao
    lavc/libopenh264 : Support full range videos in transcoding
    

    Support full range videos when transcoding, enabled the
    YUVJ420P to avoid auto scale from YUVJ420P to YUV420P

    Signed-off-by : Jun Zhao <barryjzhao@tencent.com>

    • [DH] libavcodec/libopenh264enc.c
  • Capture full-range/lossless rgb frame from capture card that supports NV12 and YUYV output

    13 janvier 2023, par kunal joshi

    I am trying to make a program which captures an image, then i need to compare captured image and the input data which i displayed, both should matc pixel by pixel

    &#xA;

    Here are the details of my capture card

    &#xA;

    $ v4l2-ctl —list-formats-ext -d /dev/video0

    &#xA;

    ioctl: VIDIOC_ENUM_FMT&#xA;        Type: Video Capture&#xA;&#xA;        [0]: &#x27;NV12&#x27; (Y/CbCr 4:2:0)&#xA;                Size: Discrete 3840x2160&#xA;                        Interval: Discrete 0.033s (30.000 fps)&#xA;                Size: Discrete 2560x1440&#xA;                        Interval: Discrete 0.017s (60.000 fps)&#xA;                Size: Discrete 1920x1080&#xA;                        Interval: Discrete 0.017s (60.000 fps)&#xA;                Size: Discrete 1280x720&#xA;                        Interval: Discrete 0.017s (60.000 fps)&#xA;                Size: Discrete 640x480&#xA;                        Interval: Discrete 0.017s (60.000 fps)&#xA;        [1]: &#x27;YUYV&#x27; (YUYV 4:2:2)&#xA;                Size: Discrete 2560x1440&#xA;                        Interval: Discrete 0.020s (50.000 fps)&#xA;                Size: Discrete 1920x1080&#xA;                        Interval: Discrete 0.017s (60.000 fps)&#xA;                Size: Discrete 1280x720&#xA;                        Interval: Discrete 0.017s (60.000 fps)&#xA;                Size: Discrete 640x480&#xA;                        Interval: Discrete 0.017s (60.000 fps)&#xA;        [2]: &#x27;&#x27; (30313050-0000-0010-8000-00aa003)&#xA;        [3]: &#x27;&#x27; (e436eb7e-524f-11ce-9f53-0020af0)&#xA;&#xA;

    &#xA;

    $ v4l2-ctl —all

    &#xA;

    Driver Info:&#xA;        Driver name      : uvcvideo&#xA;        Card type        : ITE HDMI 4K&#x2B; Bridge: ITE HDMI 4&#xA;        Bus info         : usb-0000:00:14.0-6&#xA;        Driver version   : 5.18.0&#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;Priority: 2&#xA;Video input : 0 (Camera 1: ok)&#xA;Format Video Capture:&#xA;        Width/Height      : 1920/1080&#xA;        Pixel Format      : &#x27;YUYV&#x27; (YUYV 4:2:2)&#xA;        Field             : None&#xA;        Bytes per Line    : 3840&#xA;        Size Image        : 4147200&#xA;        Colorspace        : sRGB&#xA;        Transfer Function : Rec. 709&#xA;        YCbCr/HSV Encoding: Rec. 709&#xA;        Quantization      : Default (maps to Limited Range)&#xA;        Flags             :&#xA;Crop Capability Video Capture:&#xA;        Bounds      : Left 0, Top 0, Width 1920, Height 1080&#xA;        Default     : Left 0, Top 0, Width 1920, Height 1080&#xA;        Pixel Aspect: 1/1&#xA;Selection Video Capture: crop_default, Left 0, Top 0, Width 1920, Height 1080, Flags:&#xA;Selection Video Capture: crop_bounds, Left 0, Top 0, Width 1920, Height 1080, Flags:&#xA;Streaming Parameters Video Capture:&#xA;        Capabilities     : timeperframe&#xA;        Frames per second: 60.000 (60/1)&#xA;        Read buffers     : 0&#xA;&#xA;&#xA;

    &#xA;

    I have tried using various methods opencv but ffmpeg came the closest

    &#xA;

    With below command i am able to get good results but not what i want

    &#xA;

    ffmpeg -y -f v4l2 -pix_fmt NV12 -video_size 1920x1080 -i /dev/video0 -pix_fmt bgra -frames:v 10 webcam%03d.bmp&#xA;

    &#xA;

    Reference Image

    &#xA;

    RGB of Reference image

    &#xA;

    RGB of captured image

    &#xA;

    Note :- I am able to capture fine with Aforge on windows, but not with ffmpeg on linux.&#xA;Would like to know if anyone has already got solution to this.

    &#xA;

    Thanks in advance.

    &#xA;