Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (99)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • 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 : (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    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 (...)

Sur d’autres sites (10930)

  • running ECSTask in IOS

    26 janvier 2017, par DecKno

    I am new to IOS platform. I have a code snippet written using JAVA API.

        AmazonECS amazonECS = new AmazonECSClient(credentials).withRegion(usWest1);          
        String command="bash /opt/run-task.sh "+"/mnt/s3/inputFile1::/mnt/s3/inputFile2"+" "+ "outputFile";

          ContainerOverride containerOverrides = new ContainerOverride().withCommand(command).withName("&lt;<container>>");
          TaskOverride overrides = new TaskOverride().withContainerOverrides(containerOverrides);
          RunTaskRequest runTaskRequest = new RunTaskRequest().withCluster("&lt;<cluster>>").withTaskDefinition("&lt;<task definition="definition" arn="arn">>")
                  .withOverrides(overrides).withGeneralProgressListener(new ProgressListener() {

                   @Override
                   public void progressChanged(ProgressEvent progressEvent) {
                       System.out.println(progressEvent.getBytesTransferred());
                       System.out.println(progressEvent.getEventType());
                   }
               });


          Task task = new Task().withTaskDefinitionArn("&lt;<task definition="definition" arn="arn">>")
                           .withOverrides(overrides);

           RunTaskResult runTaskResult = amazonECS.runTask(runTaskRequest).withTasks(task);
           List<failure> failures = runTaskResult.withTasks(task).getFailures();
    </failure></task></task></cluster></container>

    I am using ffmpeg to merge few video files as single file. I need to know if there is equivalent functionality available in IOS.

  • ffmpeg - overlay filter alpha premultiplied performs brighter on transparent images

    26 avril 2022, par windows_air

    Description

    &#xA;

    I'm using ffmpeg's overlay filter with alpha premultiplied parameter. I noticed that when a completely transparent image was overlay to the background video, the output video was much brighter.

    &#xA;

    In the following demo, I will use RGBA8888 format images for overlay. Its use of RGBA (255,255,255,0) indicates full transparency (aka completely transparent white), and the result demonstrates a very noticeable brightening (the expected result should be unchanged, since the image is completely transparent).&#xA;ps : Using RGBA (0,0,0,0) (aka completely transparent black) also results in a brightened image.

    &#xA;

    Code (overlay transparent white)

    &#xA;

    ffmpeg.exe  -loglevel debug -i a1.mp4 -i a1.png -filter_complex "[0:v][1:v]overlay=x=0:y=0:alpha=premultiplied[v]" -map "[v]"  -c:v:0 libx264 -f mp4  output.mp4&#xA;

    &#xA;

    result_img_white

    &#xA;

    Code (overlay transparent black)

    &#xA;

    This command uses lavfi to simulate the transparent black output of RGBA. For demonstration purposes only, you may need ctrl+c to prevent infinite output.

    &#xA;

    ffmpeg.exe -y -i a1.mp4 -f lavfi -i "color=color=black@0.0:size=1920x540,format=rgba" -filter_complex "[0:v][1:v]overlay=x=0:y=0:alpha=premultiplied[v]" -map "[v]"  -c:v:0 libx264 -f mp4  output.mp4&#xA;

    &#xA;

    result_black_img

    &#xA;

    The results show that the upper part is more whitish (brighter).

    &#xA;

    Related files can be downloaded here : https://gist.github.com/windowsair/5315437a97dadf3f74f886486657183d

    &#xA;


    &#xA;

    Back to the question, I had to use premultiplied to get the correct overlay result : Using the straight option will have a darkening effect in areas that are not fully transparent, which is why I insisted on premultiplied . Is this a ffmpeg problem ? How should I avoid the undesirable effect of brighter images from transparent image overlays ? Thank you !

    &#xA;

  • ffmpg - Overlay merged video from a bunch of small videos on another video

    31 août 2022, par Krishna Chebrolu

    I have a situation where 3-4 small 5secs video clips to be merged and placed at a specific point in time of another video within a fixed frame of 800x600.

    &#xA;

    For example, main video is of 40 secs of 1280x720 resolution and have 4 small clips of 5 secs each to be placed in a frame of 800x600 from 10 to 30 secs one after the other (or) merge them before placing within the frame.

    &#xA;

    I tried multiple filters and failing to get the required output.

    &#xA;

    ffmpeg -y -i bg.mp4 -i c0.mp4 -i f.mp4 -filter_complex "split [main][tmp]; [tmp][1:v][1:a][2:v][2:a]concat=n=2:v=1:a=1[tmp1]; [main][tmp1] overlay=enable=&#x27;between(t,10,24)&#x27;:x=50:y=50[v]; [v]drawtext=enable=&#x27;between(t,26,29)&#x27;:font=&#x27;DejaVu Serif&#x27;:text=&#x27;Kris Cheb&#x27;:x=(w-tw)/2:y=((h-text_h)/4): fontsize=80: fontcolor=white, drawtext=enable=&#x27;between(t,27,29)&#x27;:text=&#x27;Awesome Work..&#x27;:x=(w-tw)/2:y=(((h-text_h)/3)&#x2B;20): fontsize=38: fontcolor=white, drawtext=enable=&#x27;between(t,27,29)&#x27;:text=&#x27;Congratulations!!&#x27;:x=(w-tw)/2:y=(((h-text_h)/2)&#x2B;10): fontsize=38: fontcolor=white"[v] -map [v] out.mp4&#xA;

    &#xA;

    Of course, in the above command, I'm yet to add scale with force_original_aspect_ratio=decrease filter and associated attributes.

    &#xA;

    Could someone please suggest how to achieve this with ffmpeg ?

    &#xA;

    Thanks

    &#xA;

    [EDIT-1] :

    &#xA;

    To overcome this issue, as an alterative, I had split bg.mp4 into multiple segments intro.mp4, outro.mp4 & frame.png and concatenated them with the following command, which is working fine. Of course, there is slight deviation from original requirement of placing c0.mp4 & f.mp4 as overlay in the middle segment and now frame.png is being used as overlay on these middle segment clips.

    &#xA;

    ffmpeg -y -i intro.mp4 -i c0.mp4 -i f.mp4 -i outro.mp4 -i frame.png &#xA;-filter_complex "[0:v][0:a][1:v][1:a][2:v][2:a][3:v][3:a]concat=n=4:v=1:a=1[vv][a];&#xA;[vv][4:v]overlay=enable=&#x27;between(t,4,16)&#x27;:x=0:y=0[v];&#xA;[v]drawtext=text=&#x27;NAME&#x27;: font=&#x27;Serif&#x27;:fontsize=70: fontcolor=white: x=((w-tw)/2):y=(((h-text_h)/4)&#x2B;10):enable=&#x27;between(t,16,20)&#x27;, &#xA;drawtext=text=&#x27;TEXT2&#x27;:font=&#x27;Serif&#x27;:fontsize=40: fontcolor=black:x=((w-tw)/2): y= ((h/2)&#x2B;30):enable=&#x27;between(t,16,20)&#x27;,&#xA;drawtext=text=&#x27;<text3>&#x27;:font=&#x27;Serif&#x27;:fontsize=40: fontcolor=black:x=((w- &#xA;tw)/2):y=((h/2)&#x2B;70):enable=&#x27;between(t,16,20)&#x27;[v]" -vsync 2 -map &#xA;[v] -map [a] out.mp4&#xA;</text3>

    &#xA;

    But, need help in replacing the audio of middle segment clips c0.mp4 & f.mp4 with the audio from bgm.mp3 which will be given as a new input.

    &#xA;

    Appreciate all the help..

    &#xA;