Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (53)

  • 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

  • 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" ;

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (8663)

  • download video by ffmpeg access denied [closed]

    14 septembre 2021, par Vĩnh Hội
  • FFMPEG : Combine "Create video from images" + scale to x + add audio + overlay logo

    7 janvier 2020, par Thomas Wild

    I´m working on a webcam-project. It is for generating timelapse videos of sunset/sundown.

    I´m using a raspberrypi to generate them with gphoto2 + DSLR.

    At the end of the day the images should get to an video, with audio and an overlay logo.
    And it should be scaled to 1920 pixel.
    I got a nice solution an it worked.

    1. Producing the timelapse video an scale it :

      ffmpeg -y -framerate 25 -start_number 0000001 -i /var/www/html/webcam/2020-01-05_bilder/%7d.jpg -vf scale=1920:-1 -pix_fmt yuv420p /var/www/html/webcam/2020-01-05-tag-output-1920.mp4

    1. Taking the output of (1) and add an overlay-logo, add audio

      ffmpeg -y -i '/var/www/html/webcam/2020-01-05-tag-output-1920.mp4'
      -i '/var/www/html/webcam-scripts/graphics/logo.png'
      -i '/var/www/html/webcam-scripts/sounds/chill_time_5.mp3'
      -shortest -filter_complex '[1][0]scale2ref=h=ow/mdar:w=iw/6[#A logo][liebfrauen]; [#A logo]format=argb,colorchannelmixer=aa=0.95[#B logo transparent]; [liebfrauen][#B logo transparent] overlay=(main_w-w)-(main_w*0.05):(main_h-h)-(main_h*0.01)'
      -c:v libx264 -crf 18 -preset slow -pix_fmt yuv420p -c:a aac -strict -2
      '/var/www/html/webcam/2020-01-05-tag-1920.mp4

    I tried to combine both actions, but I get an error :

    ffmpeg -y -framerate 25 -start_number 0000001 -i '/var/www/html/webcam/2020-01-05_bilder/%7d.jpg' -vf scale=1920:-1 -pix_fmt yuv420p -i '/var/www/html/webcam-scripts/graphics/logo.png' -i '/var/www/html/webcam-scripts/sounds/chill_time_5.mp3' -shortest -filter_complex '[1][0]scale2ref=h=ow/mdar:w=iw/6[#A logo][liebfrauen]; [#A logo]format=argb,colorchannelmixer=aa=0.95[#B logo transparent]; [liebfrauen][#B logo transparent] overlay=(main_w-w)-(main_w*0.05):(main_h-h)-(main_h*0.01)' -c:v libx264 -crf 18 -preset slow -pix_fmt yuv420p -c:a aac -strict -2 '/var/www/html/webcam/2020-01-05-tag-1920.mp4'

    Error : Filtergraph ’scale=720 :-1’ was specified through the -vf/-af/-filter option for output stream 0:0, which is fed from a complex filtergraph.
    - vf/-af/-filter and -filter_complex cannot be used together for the same stream.

    Isn`t it possible to combine these inputs and scale it ? Or ... Where is my misunderstanding ?

  • ffmpeg stream segmenting loses some frames after initialization

    17 février 2020, par zerociudo

    I use this ffmep command to get stream from usb camera and segment videos of 1 seconds

    ffmpeg -i /dev/video0 -pix_fmt yuv420p -vcodec libx264 \
                     -r 15 -x264opts keyint=15:min-keyint=15 -crf 19 \
                     -vf drawtext='expansion=strftime:fontfile='/usr/share/fonts/cantarell/Cantarell-Light.otf':fontsize=28:fontcolor=white:shadowcolor=black:shadowx=2:shadowy=1:text='%Y-%m-%d\ %H\\\\:%m\\\\:%S':x=200:y=200'" \
                     -f segment -reset_timestamps 1 -segment_time 1 -segment_format mp4 \
                     -strftime 1 -map 0 output/%Y-%m-%d-%H:%M:%S.mp4 \

    The output that I get is

    Parsed_drawtext_0 @ 0x5633950a66c0] Using "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf"
    [Parsed_drawtext_0 @ 0x5633950a66c0] expansion=strftime is deprecated.
    [libx264 @ 0x5633950a1680] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 0x5633950a1680] profile High, level 3.1
    [libx264 @ 0x5633950a1680] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=18 lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=10 keyint_min=6 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=19.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    [segment @ 0x56339509fac0] Opening 'output/2020-02-17-13:39:14.mp4' for writing
    Output #0, segment, to 'output/%Y-%m-%d-%H:%M:%S.mp4':
     Metadata:
       encoder         : Lavf58.20.100
       Stream #0:0: Video: h264 (libx264), yuv420p, 1280x720, q=-1--1, 10 fps, 10240 tbn, 10 tbc
       Metadata:
         encoder         : Lavc58.35.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    [segment @ 0x56339509fac0] Opening 'output/2020-02-17-13:39:18.mp4' for writing
    [segment @ 0x56339509fac0] Opening 'output/2020-02-17-13:39:19.mp4' for writing
    [segment @ 0x56339509fac0] Opening 'output/2020-02-17-13:39:20.mp4' for writing

    You can clearly see that first video is output/2020-02-17-13:39:14.mp4, then something happens and the next video is output/2020-02-17-13:39:18.mp4. After this I lose 3 seconds and my whole videos are delayed by 3 seconds.

    Is my command incorrect or is there something else could cause it ?