Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (112)

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

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (11255)

  • FFMPEG not creating thumbnails

    12 juin 2016, par MixedVeg

    My ffmpeg command in php is

    echo $cmd_thumbnail_create = ("\"$ffmpeg\" -i \"" . $dir.$videopath . "\" -an -ss $getFromSecond \"" . $dir.$thumbnailpath ."\"");
    exec($cmd_thumbnail_create);

    Output of which is

    "C :\FFMPEG\bin\ffmpeg" -i "C :/xampp/htdocs/final/uploaded_videos/intro_en.mp4" -an -ss 6 "C :/xampp/htdocs/final/thumbnail/intro_en.jpg"

    This when copied and executed on the command prompt creates the thumbnail at proper location with proper name.

    Any suggestions ?

  • Overlaying video with ffmpeg

    11 novembre 2012, par elee

    I'm attempting to write a script that will merge 2 separate video files into 1 wider one, in which both videos play back simultaneously. I have it mostly figured out, but when I view the final output, the video that I'm overlaying is extremely slow.

    Here's what I'm doing :

    1. Expand the left video to the final video dimensions

      ffmpeg -i left.avi -vf "pad=640:240:0:0:black" left_wide.avi

    2. Overlay the right video on top of the left one

      ffmpeg -i left_wide.avi -vf "movie=right.avi [mv] ; [in][mv] overlay=320:0" combined_video.avi

    In the resulting video, the playback on the right video is about half the speed of the left video. Any idea how I can get these files to sync up ?

  • FFMPEG Flutter : attaching captions to a video issue

    24 juillet 2024, par Aqib Javed

    I am working on an app where i first extract audio from a video, then transcribe it and then i wanna attach that transcribed captions or subtitles to the original video.

    


    Everything is working smooth except the subtitles attaching part
if im running the FFMPEG command directly in terminal, it works fine but not in flutter

    


    here is my code of attaching the subtitles to the video :

    


     Future<void> attachCaptionsToVideo(DeepGramResponse deepGramResponse) async {&#xA;    var tempDir = await getTemporaryDirectory();&#xA;&#xA;    final outputPath = "${tempDir.path}/outputWithCaptions.mp4";&#xA;    final String subtitlePath = deepGramResponse.captionsPath&#xA;        .replaceAll(&#x27;\\&#x27;, &#x27;\\\\&#x27;)&#xA;        .replaceAll(&#x27; &#x27;, &#x27;\\ &#x27;);&#xA;    final String command =&#xA;        &#x27;-y -i ${deepGramResponse.videoPath} -vf subtitles=$subtitlePath $outputPath&#x27;;&#xA;    await FFmpegKit.executeAsync(command, (session) async {&#xA;      final returnCode = await session.getReturnCode();&#xA;      final output = await session.getOutput();&#xA;      final error = await session.getFailStackTrace();&#xA;&#xA;      log(&#x27;FFmpeg command executed with return code: $returnCode&#x27;);&#xA;      if (ReturnCode.isSuccess(returnCode)) {&#xA;        log(&#x27;Captions attached successfully&#x27;);&#xA;        deepGramResponse.copyWith(&#xA;          videoPath: outputPath,&#xA;        );&#xA;        Get.to(() => VideoPlayerScreen(videoPath: outputPath));&#xA;      } else {&#xA;        log(&#x27;FFmpeg command failed&#x27;);&#xA;        log(&#x27;Error output: $output&#x27;);&#xA;        log(&#x27;Error details: $error&#x27;);&#xA;        Fluttertoast.showToast(&#xA;            msg: &#x27;Something went wrong, please try again later&#x27;);&#xA;      }&#xA;    });&#xA;  }&#xA;</void>

    &#xA;

    here is the error im getting :

    &#xA;

    &#xA;

    [AVFilterGraph @ 0x7b8a3f35f0] No option name near&#xA;'/data/user/0/com.example.blink/app_flutter/captions.srt'&#xA;[AVFilterGraph @ 0x7b8a3f35f0] Error parsing a filter description around :&#xA;[AVFilterGraph @ 0x7b8a3f35f0] Error parsing filterchain 'subtitles=/data/user/0/com.example.blink/app_flutter/captions.srt'&#xA;around :&#xA;Error reinitializing filters !&#xA;Failed to inject frame into filter network : Invalid argument&#xA;Error while processing the decoded data for stream #0:0&#xA;Conversion failed !

    &#xA;

    &#xA;