Recherche avancée

Médias (1)

Mot : - Tags -/ogg

Autres articles (32)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

Sur d’autres sites (7123)

  • asfdec : substract preroll time from marker presentation time

    19 septembre 2013, par Vladimir Pantelic
    asfdec : substract preroll time from marker presentation time
    

    this was forgotten when we changed ASF to not output the preroll time

    Signed-off-by : Vladimir Pantelic <vladoman@gmail.com>
    Signed-off-by : Anton Khirnov <anton@khirnov.net>

    • [DBH] libavformat/asfdec.c
  • How to add "ffmpeg" to the Cloud Run environment or to Dockerfile ?

    16 janvier 2021, par awabs

    I am triying to a logo to video that is uploaded to cloud storage using ffmpeg library, I deployed this code as cloud function is runs only with small size videos, so I decided to move to cloud run, but here I have to build container myself so I used this command instead

    &#xA;

    gcloud builds submit --pack image=europe-west1-docker.pkg.dev/video-sharing-a1mfa/video-sharing-repo/my-image,env=GOOGLE_FUNCTION_TARGET=addLogo&#xA;

    &#xA;

    and it builds the image and I just had to create a service in the Cloud Run and it is running, but unfortunately when I trigger this function I get this error

    &#xA;

    Error: spawn ffmpeg ENOENT&#xA;at Process.ChildProcess._handle.onexit (internal/child_process.js:268:19)&#xA;at onErrorNT (internal/child_process.js:470:16)&#xA;at processTicksAndRejections (internal/process/task_queues.js:84:21)&#xA;

    &#xA;

    Which I am not sure of but I guess is that ffmpeg in not installed in contanier (where it comes preinstalled in the gcloud functions env). Any idea how to install it or what the docker file configuration might be ?

    &#xA;

    here is my code :

    &#xA;

    const { Storage } = require(&#x27;@google-cloud/storage&#x27;);&#xA;const projectId = &#x27;video-sharing-a1mfa&#x27;;&#xA;let gcs = new Storage({&#xA;    projectId&#xA;});&#xA;&#xA;const os = require(&#x27;os&#x27;);&#xA;const path = require(&#x27;path&#x27;);&#xA;const spawn = require(&#x27;child-process-promise&#x27;).spawn;&#xA;&#xA;&#xA;exports.addLogo = async (req, res) => {&#xA;&#xA;const event = JSON.parse(req.body);&#xA;const bucket = event.bucket;&#xA;const contentType = event.contentType;&#xA;const filePath = event.name;&#xA;&#xA;console.log(&#x27;File change detected, function execution started&#x27;);&#xA;if (path.basename(filePath).startsWith(&#x27;resized-&#x27;)) {&#xA;    console.log(&#x27;We already renamed that file!&#x27;);&#xA;    return;&#xA;}&#xA;const destBucket = gcs.bucket(bucket);&#xA;const tmpFilePath = path.join(os.tmpdir(), path.basename(filePath));&#xA;const metadata = { contentType: contentType };&#xA;const tmpLogoPath = path.join(os.tmpdir(), &#x27;watermark.png&#x27;);&#xA;await destBucket.file(&#x27;watermark.png&#x27;).download({&#xA;    destination: tmpLogoPath&#xA;})&#xA;&#xA;const newPath = path.join(os.tmpdir(), &#x27;output.mp4&#x27;)&#xA;&#xA;await destBucket.file(filePath).download({&#xA;    destination: tmpFilePath&#xA;});&#xA;console.log(&#x27;file downloaded to temp&#x27;);&#xA;&#xA;console.log(&#x27;adding watermark&#x27;);&#xA;&#xA;var str = "overlay=10:10"&#xA;&#xA;await spawn(&#x27;ffmpeg&#x27;, [&#x27;-i&#x27;, tmpFilePath, &#x27;-i&#x27;, tmpLogoPath, &#x27;-filter_complex&#x27;, str, newPath]);&#xA;&#xA;&#xA;console.log(&#x27;watermark added&#x27;);&#xA;&#xA;return destBucket.upload(newPath, {&#xA;    destination: path.dirname(filePath) &#x2B; &#x27;/resized-&#x27; &#x2B; path.basename(filePath),&#xA;    metadata: metadata&#xA;});;&#xA;};&#xA;

    &#xA;

  • FFmpeg continues to process after time specified at "-to"

    4 août 2020, par Yamahabest

    I have a video, where I want to cut a part from the beginning, and from the end. And I want to apply some fade ins/fade outs, and add some text.

    &#xA;

    So, I came up with the following syntax :

    &#xA;

    -ss 10 -to 40 &#xA;-i "D:\DATA\Software\VideoProcessor_Files\20171015 Zelhem Tandem Frans met Mirthe.MP4" &#xA;-loop 1 -i "Input_Files\logo maurik large.png" &#xA;-loop 1 -i "Input_Files\logo maurik small.png" &#xA;-filter_complex "&#xA;    color=0x7F7F7F@0.95:1920x1080[grey_for_fade_out];&#xA;    [grey_for_fade_out]fade=t=out:st=12:d=2:alpha=1[grey_fade_out];&#xA;    [0:v][grey_fade_out]overlay[video_grey_fade_out];&#xA;    color=0x7F7F7F@0.95:1920x1080[grey_for_fade_in];&#xA;    [grey_for_fade_in]fade=t=in:st=37:d=2:alpha=1[grey_fade_in];&#xA;    [video_grey_fade_out][grey_fade_in]overlay[video_grey_fade_out_in];&#xA;    [1:v]fade=t=out:st=13:d=2:alpha=1[over];&#xA;    [over]scale=iw/1.5:-1[scaled];&#xA;    [video_grey_fade_out_in][scaled]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/10[video_grey_fade_out_in_logo];&#xA;    [1:v]fade=t=in:st=36:d=2:alpha=1[over2];&#xA;    [over2]scale=iw/1.5:-1[scaled2];&#xA;    [video_grey_fade_out_in_logo][scaled2]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2[video_grey_fade_out_in_logo2];&#xA;    [2:v]colorchannelmixer=aa=0.5,fade=t=in:st=14:d=2:alpha=1,fade=t=out:st=35:d=2:alpha=1[over3];&#xA;    [over3]scale=iw/10:-1[scaled3];&#xA;    [video_grey_fade_out_in_logo2][scaled3]overlay=10:10[video_complete];&#xA;    [video_complete]drawtext=fontfile=Input_Files/Sansation-Bold.ttf:text=&#x27;Tandemvlucht met Mirthe&#x27;:fontsize=96:fontcolor=white:alpha=&#x27;if(lt(t,11),1,(2-(t-11))/2)&#x27;:x=(w-text_w)/2:y=((h-text_h)/2)&#x2B;125,drawtext=fontfile=Input_Files/Sansation-Bold.ttf:text=&#x27;Zeddam&#x27;:fontsize=96:fontcolor=white:alpha=&#x27;if(lt(t,11),1,(2-(t-11))/2)&#x27;:x=(w-text_w)/2:y=((h-text_h)/2)&#x2B;250,drawtext=fontfile=Input_Files/Sansation-Bold.ttf:text=&#x27;4 augustus 2020&#x27;:fontsize=96:fontcolor=white:alpha=&#x27;if(lt(t,11),1,(2-(t-11))/2)&#x27;:x=(w-text_w)/2:y=((h-text_h)/2)&#x2B;375,drawtext=fontfile=Input_Files/Sansation-Bold.ttf:text=&#x27;Ook een keer meevliegen?&#x27;:fontsize=96:fontcolor=white:alpha=&#x27;if(lt(t,37),0,(t-37)/2)&#x27;:x=(w-text_w)/2:y=((h-text_h)/6),drawtext=fontfile=Input_Files/Sansation-Bold.ttf:text=&#x27;Of bel 085 - 049 55 69&#x27;:fontsize=96:fontcolor=white:alpha=&#x27;if(lt(t,37),0,(t-37)/2)&#x27;:x=(w-text_w)/2:y=((h-text_h)/2)&#x2B;350"&#xA;-preset medium &#xA;-crf 18 &#xA;-c:a copy &#xA;-y ".\Output_Files\Video\Zeddam\2020-08-04\Mirthe\27ed390a-8497-4550-b93f-4f87d9f2c9f0\MP_Tandemvlucht met_Mirthe_Zeddam_2020-08-04.mp4"&#xA;

    &#xA;

    I am quite sure this has worked in the past, but now FFmpeg just keeps on processing endlessly. If I then stop the FFmpeg process, and look at the resulting file, I see that the last frame (of the end of the specified period) just keeps on duplicating.

    &#xA;

    The drop counter in the console output of FFmpeg also starts increasing at the end of the specified period :

    &#xA;

    frame=  987 fps= 15 q=-1.0 Lsize=   31357kB time=00:00:41.04 bitrate=6259.0kbits/s dup=0 drop=10 speed=0.644x&#xA;

    &#xA;

    I am kind of lost on why this doesn't work anymore. I might have upgraded the FFmpeg executable in the mean time. Maybe my syntax was/is not correct, but I believe it just worked.

    &#xA;

    It has to be in the complex filter, because when I remove that, it works alright.&#xA;It is not in the drawtext part of the complex filter, because it still occurs when I remove that. And when I only do the drawtext, FFmpeg stops correctly at the specified time.

    &#xA;

    I have tried this, but then it still occurs :

    &#xA;

    -filter_complex "&#xA;    color=0x7F7F7F@0.95:1920x1080[grey_for_fade_out];&#xA;    [grey_for_fade_out]fade=t=out:st=12:d=2:alpha=1[grey_fade_out];&#xA;    [0:v][grey_fade_out]overlay[video_grey_fade_out];&#xA;    color=0x7F7F7F@0.95:1920x1080[grey_for_fade_in];&#xA;    [grey_for_fade_in]fade=t=in:st=37:d=2:alpha=1[grey_fade_in];&#xA;    [video_grey_fade_out][grey_fade_in]overlay"&#xA;

    &#xA;

    Also with this, it still occurs :

    &#xA;

    -filter_complex "&#xA;    [1:v]fade=t=out:st=13:d=2:alpha=1[over];&#xA;    [over]scale=iw/1.5:-1[scaled];&#xA;    [0:v][scaled]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/10[video_grey_fade_out_in_logo];&#xA;    [1:v]fade=t=in:st=36:d=2:alpha=1[over2];&#xA;    [over2]scale=iw/1.5:-1[scaled2];&#xA;    [video_grey_fade_out_in_logo][scaled2]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2[video_grey_fade_out_in_logo2];&#xA;    [2:v]colorchannelmixer=aa=0.5,fade=t=in:st=14:d=2:alpha=1,fade=t=out:st=35:d=2:alpha=1[over3];&#xA;    [over3]scale=iw/10:-1[scaled3];&#xA;    [video_grey_fade_out_in_logo2][scaled3]overlay=10:10"&#xA;

    &#xA;

    I just don't understand. All my fade-ins/-outs seem to be within the specified range :

    &#xA;

      &#xA;
    • fade=t=out:st=12:d=2 : start at 12 seconds, duration 2 seconds. This ends at 14 seconds, which is smaller than 40 seconds.
    • &#xA;

    • fade=t=in:st=37:d=2 : start at 37 seconds, duration 2 seconds. This ends at 39 seconds, which is smaller than 40 seconds.
    • &#xA;

    • fade=t=out:st=13:d=2 : start at 13 seconds, duration 2 seconds. This ends at 15 seconds, which is smaller than 40 seconds.
    • &#xA;

    • fade=t=in:st=36:d=2 : start at 36 seconds, duration 2 seconds. This ends at 38 seconds, which is smaller than 40 seconds.
    • &#xA;

    &#xA;

    It is just like some sequence is not ended properly, which is causing FFmpeg to just continue.

    &#xA;