Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (56)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (7809)

  • ffmpeg generate thumbnails on GPU

    22 juin 2018, par Oleksandr Kyrpa

    I try to generate thumbnails with acceleration on GPU, so compile ffmpeg 3.4.1 and run command :

    ./ffmpeg  -i ~/Videos/1080.mp4 -vf "hwupload_cuda,thumbnail_cuda=100,scale_cuda=107:60,hwdownload,format=yuv420p" -vframes 1 -y ~/Videos/thumbs/thumb%03d.jpg

    But I get wrong output picture (the color of thumbnail is green) :

    enter image description here

    Correct image must be black.
    How to make first image with correct color ?

    enter image description here

    log : -loglevel verbose

    ffmpeg version N-89707-g89b84cb Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
     configuration: --cpu=native --enable-pthreads --extra-version=hd --enable-gnutls --enable-vaapi --enable-vdpau --enable-nonfree --enable-gpl --enable-swscale --enable-libx264 --enable-version3 --enable-nvenc --enable-libnpp --enable-cuda --enable-cuvid --enable-cuda-sdk --enable-filter=scale_cuda --enable-filter=thumbnail_cuda --extra-cflags=-I/usr/local/cuda-8.0/include --extra-ldflags=-L/usr/local/cuda-8.0/lib64
     libavutil      56.  7.100 / 56.  7.100
     libavcodec     58.  9.100 / 58.  9.100
     libavformat    58.  3.100 / 58.  3.100
     libavdevice    58.  0.100 / 58.  0.100
     libavfilter     7. 11.100 /  7. 11.100
     libswscale      5.  0.101 /  5.  0.101
     libswresample   3.  0.101 /  3.  0.101
     libpostproc    55.  0.100 / 55.  0.100
    [h264 @ 0x392ed40] Reinit context to 1920x1088, pix_fmt: yuv420p
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/alex/Videos/1080.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2012-05-30T20:01:34.000000Z
     Duration: 00:01:14.21, start: 0.000000, bitrate: 5476 kb/s
       Stream #0:0(und): Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1920x1080 (1920x1088), 5321 kb/s, 29.97 fps, 29.97 tbr, 60k tbn, 59.94 tbc (default)
       Metadata:
         creation_time   : 1970-01-01T00:00:00.000000Z
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 152 kb/s (default)
       Metadata:
         creation_time   : 2012-05-30T20:01:34.000000Z
         handler_name    : IsoMedia File Produced by Google, 5-11-2011
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
    Press [q] to stop, [?] for help
    [h264 @ 0x3a38280] Reinit context to 1920x1088, pix_fmt: yuv420p
    [Parsed_thumbnail_cuda_1 @ 0x4e3d8c0] batch size: 100 frames
    [graph 0 input from stream 0:0 @ 0x4e8b640] w:1920 h:1080 pixfmt:yuv420p tb:1/60000 fr:30000/1001 sar:0/1 sws_param:flags=2
    [auto_scaler_0 @ 0x4e8ca00] w:iw h:ih flags:'bicubic' interl:0
    [format @ 0x4e8b540] auto-inserting filter 'auto_scaler_0' between the filter 'Parsed_format_4' and the filter 'format'
    [Parsed_scale_cuda_2 @ 0x4e89380] w:1920 h:1080 -> w:107 h:60
    [swscaler @ 0x4ebf0c0] deprecated pixel format used, make sure you did set range correctly
    [auto_scaler_0 @ 0x4e8ca00] w:107 h:60 fmt:yuv420p sar:0/1 -> w:107 h:60 fmt:yuvj420p sar:0/1 flags:0x4
    Output #0, image2, to '/home/alex/Videos/thumbs/thumb%03d.jpg':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       encoder         : Lavf58.3.100
       Stream #0:0(und): Video: mjpeg, 1 reference frame, yuvj420p(pc, left), 107x60, q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc (default)
       Metadata:
         creation_time   : 1970-01-01T00:00:00.000000Z
         handler_name    : VideoHandler
         encoder         : Lavc58.9.100 mjpeg
       Side data:
         cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
    [Parsed_thumbnail_cuda_1 @ 0x4e3d8c0] frame id #76 (pts_time=2.535867) selected from a set of 100 images
    No more output streams to write to, finishing.
    frame=    1 fps=0.9 q=3.1 Lsize=N/A time=00:00:02.56 bitrate=N/A speed=2.26x    
    video:2kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
    Input file #0 (/home/alex/Videos/1080.mp4):
     Input stream #0:0 (video): 115 packets read (134655 bytes); 101 frames decoded;
     Input stream #0:1 (audio): 1 packets read (9 bytes);
     Total: 116 packets (134664 bytes) demuxed
    Output file #0 (/home/alex/Videos/thumbs/thumb%03d.jpg):
     Output stream #0:0 (video): 1 frames encoded; 1 packets muxed (1864 bytes);
     Total: 1 packets (1864 bytes) muxed

    UPDATE, working !
    Add format=nv12 before hwupload

    -vf "format=nv12,hwupload_cuda,thumbnail_cuda,scale_cuda=1280:72‌​0,hwdownload,format=‌​nv12"

  • How can i make drawtext filter start the text scrolling from the center while scrolling from right to left

    16 janvier 2018, par Femzy

    Hello How can i make the text start from the center when the video play ? Currently it start from the left side and people dont see the first words before it goes. I want the text to start from either the center of the video or the right while moving from right to left. Thanks in advance for helping me...
    This is my code that currently works for the text, but it starts from the edge of the of the left while moving from right to left

    echo shell_exec('ffmpeg -loop 1 -i slide2.jpg -vf scale=-2:1080,drawtext="textfile=text.txt:expansion=normal:fontfile=FreeSerif.otf: y=h-line_h-20:x=-200*t: fontcolor=white: fontsize=50" -pix_fmt yuv420p -t '.$words_count.' -movflags +faststart textover10.mp4 -report');
  • FFMPEG : watermark 4k Video failed

    10 janvier 2018, par Diaa Saada

    I’m using FFMPEG to watermark my videos and it is working fine when the output is 1080p or lower even if the input is 4K

    ffmpeg -i 4k.mkv -i watermark.png -filter_complex "scale=-2:1080,overlay=10:10" output1080.mp4

    But if I tried to output a 4K video

    ffmpeg -i 4k.mkv -i watermark.png -filter_complex "overlay=10:10" output4k.mp4

    I get this error message

       x264 [error]: malloc of size 26199520 failedme=00:00:00.88 bitrate=   0.0kbits/s speed=1.72x
    Video encoding failed
    [aac @ 0xaa42240] Qavg: 17612.034
    [aac @ 0xaa42240] 2 frames left in the queue on closing
    Conversion failed!

    the linux I am working on is 32x so I’m using 32 version of ffmpeg

    how can I fix this ?