Recherche avancée

Médias (1)

Mot : - Tags -/graphisme

Autres articles (39)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 is the first MediaSPIP stable release.
    Its official release date is June 21, 2013 and is announced here.
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • 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 (3639)

  • 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

    


  • sppedUp FFmpegKit overlay Flutter

    17 septembre 2023, par mlika

    I'm using FFmpegKit to overlay text on video :
I'm coding it for macos app, I double checked the CPU usage,it's using only 20%
I have MAC M1 PRO

    


      String drawtextFilter = 'drawtext=fontfile=\'$_fontPath\':'
          'textfile=\'${segments[i].textFilePath}\':'
          'x=(w-text_w)/2:y=(h-text_h)/2:'
          'fontsize=65:fontcolor=white@0.8:' // @0.8 sets the opacity
          'bordercolor=black:borderw=9:'
          'shadowcolor=black:shadowx=5:shadowy=5:' // Adding shadow
          'box=1:boxcolor=black@0.1:boxborderw=20:' // Adding background box
          'fix_bounds=1:'
          'line_spacing=10:'
          'enable=\'between(t,0,${segments[i].duration})\'';
  String command =
          '-i "${segments[i].videoPath}" -vf "$drawtextFilter" -c:v h264_videotoolbox -threads 0 -y "$outputPath"';



    


    The problem is it's taking too long to finish the speed is around 0.6
Is there a solution or alternative as, I'm converting 1hour+ videos and it's taking too much time.
Thanks

    


      

    • I tried compute and Isolate to run multiple ffmpeg but it still very slow
    •