Recherche avancée

Médias (1)

Mot : - Tags -/embed

Autres articles (42)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • 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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (10384)

  • problem using ffmpeg drawtext for rtl languge

    9 janvier 2019, par Soroush Tayyebi

    i use this command to write on a video :

    ffmpeg -i source.mp4 -vf drawtext=\"text_shaping=1:fontfile=font.ttf:
       text='یه نوشته فارسی!': fontcolor=black: fontsize=$font_size: box=1: boxcolor=black@0:boxborderw=0: x=(w-text_w)/2: y=(h-text_h)/2 :enable='between(t,5,10)'\"  -c:a copy -force_key_frames 0:05:00,0:6:00 end.mp4

    it work fine when i don’t have numbers and symbols(!, ?,$ and ...) in first and end of my text.
    my lang is right to left and this commmand not support rtl.
    what i must do to solve this problem ?

  • ffmpeg output 0 second with wrong coordinates and hidden text

    18 juillet 2023, par Abdullah Mohamed

    I'm trying to add some Text and Images to the video

    


    Code

    


    -i 'input.MOV' -i 'image.jpg'         -filter_complex "[0]crop=1181.25:2100.0:1089.375:0.0[v];
          color=black[c];
          [v]colorchannelmixer=0.39:0.769:0.189:0:0:0.349:0.686:0.168:0:0:0.272:0.534:0.131:0:0:0:0:0[v];
          [c][v]scale2ref[t][v];
          [t]setsar=1,
          colorkey=black,
          split=2[t1][t2];
                  [t1]drawtext=
          text=Abdullah Muhammad T1
          :fontsize=40.0
          :box=1
          :boxborderw=20.0
          :boxcolor=#2196f3
          :fontcolor=#f44336,
          rotate=10.0*PI/180:
  
          c=black@0[rotate];
      [v][rotate]overlay=x=400.0:y=300.0:shortest=1[v],
          
          
                  [t2]drawtext=
          text=Abdullah Muhammad T2
          :fontsize=40.0
          :box=1
          :boxborderw=20.0
          :boxcolor=#ffeb3b
          :fontcolor=#000000,
          rotate=10.0*PI/180:
  
          c=black@0[rotate];
      [v][rotate]overlay=x=0.0:y=0.0:shortest=1[v],
          
          
                  [1:v]scale=w=360.0:h=360.0,
          rotate=-90.0*PI/180:
  ow=rotw(iw-50):oh=roth(ih-50):
          c=black@0[rotate];
      [v][rotate]overlay=x=0.0:y=0.0:shortest=1[v],
          
          
                  [1:v]scale=w=360.0:h=360.0,
          rotate=30.0*PI/180:
  ow=rotw(iw-50):oh=roth(ih-50):
          c=black@0[rotate];
      [v][rotate]overlay=x=200.0:y=600.0:shortest=1
          
          
          " -c:a copy -preset ultrafast -y 'output.mp4'


    


    My Issues

    


      

    1. First image should be at 0,0 coordinates but it's not.
    2. 


    3. There should be 2 Texts but 1 of them is hidden and the other is not fully shown.
    4. 


    5. the video is 13 seconds and the output is only 0 second.
    6. 


    


    Expected

    


    


    Texts should be shown and images should be in the right position and video output should be 13 seconds.

    


    


    Actual
enter image description here

    


    Another issue

    


    


    If I trimmed the video the output will still be the same duration

    


    


    -i 'input_video.MOV' -ss 0:00:00.000000 -t 0:00:16.216000 -i 'input_image.jpg'         -filter_complex "[0]crop=1181.25:2100.0:1089.375:0.0[v];
          color=black[c];
          [v]colorchannelmixer=0.39:0.769:0.189:0:0:0.349:0.686:0.168:0:0:0.272:0.534:0.131:0:0:0:0:0[v];
          [c][v]scale2ref[t][v];
          [t]setsar=1,
          colorkey=black,
          split=2[t1][t2];
                  [t1]drawtext=
          text=Abdullah Muhammad T1
          :fontsize=40.0
          :box=1
          :boxborderw=20.0
          :boxcolor=#2196f3
          :fontcolor=#f44336,
          rotate=10.0*PI/180:
  
          c=black@0[rotate];
      [v][rotate]overlay=x=400.0:y=300.0:shortest=1[v],
          
          
                  [t2]drawtext=
          text=Abdullah Muhammad T2
          :fontsize=40.0
          :box=1
          :boxborderw=20.0
          :boxcolor=#ffeb3b
          :fontcolor=#000000,
          rotate=10.0*PI/180:
  
          c=black@0[rotate];
      [v][rotate]overlay=x=0.0:y=0.0:shortest=1[v],
          
          
                  [1:v]scale=w=360.0:h=360.0,
          rotate=-90.0*PI/180:
  ow=rotw(iw-50):oh=roth(ih-50):
          c=black@0[rotate];
      [v][rotate]overlay=x=0.0:y=0.0:shortest=1[v],
          
          
                  [1:v]scale=w=360.0:h=360.0,
          rotate=30.0*PI/180:
  ow=rotw(iw-50):oh=roth(ih-50):
          c=black@0[rotate];
      [v][rotate]overlay=x=200.0:y=600.0:shortest=1
          
          
          " -c:a copy -preset ultrafast -y 'output.mp4'


    


  • How can I combine these three ffmpeg commands ?

    16 mai 2022, par Anuj Saxena

    I want to combine the following three commands into one command, if possible.

    


    a = f'''ffmpeg -i {footage} -vcodec libx264 -acodec aac {mov_path}'''
b = f'''ffmpeg -i {mov_path} -vf "drawtext=text=' {hostname}\n {socket.gethostbyname(hostname)}\n {getpass.getuser()}':x=10:y=H-th-10:fontfile=KhmerOS.ttf:fontsize=50:fontcolor=black:shadowcolor=black:shadowx=2:shadowy=2" {watermark_path}'''
c = f'''ffmpeg -i {watermark_path} -vf "drawtext=fontfile=KhmerOS.ttf: text='%{{frame_num}}': start_number=1: x=(w-tw)/2: y=h-(2*lh): fontcolor=black: fontsize=50: box=1: boxcolor=white: boxborderw=5" -c:a copy {current_frame} '''


    


    I want a single output video because I don't want to use unnecessary variables like b,c,watermark_path, and current_frame I want only one resultant video with mov_path