Recherche avancée

Médias (0)

Mot : - Tags -/metadatas

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (23)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • 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

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (5944)

  • FFMPEG filter_complex with paletteuse and subtitles with force_style

    24 janvier 2019, par Adam Silva

    So I’m creating gifs from a video input, and to improve the quality I’m also using paletteuse among other options like scaling with this command

    /usr/bin/ffmpeg -ss 10 -t 3 -i /tmp/download.mp4 -i logo.png -filter_complex '[0:v] fps=12,scale=480:-1,overlay=x=(main_w-overlay_w)-5:y=(main_h-overlay_h)-5, split [a][b];[a] palettegen [p];[b][p] paletteuse' /var/www/html/youtube.gif

    Now I want to add subtitles to this gif with some custom styles like this :

    subtitles=subs.srt:force_style='FontName=Impact,Shadow=0.5'

    This is what I tried when combining the two :

    /usr/bin/ffmpeg -ss 10 -t 3 -i /tmp/download.mp4 -i logo.png -filter_complex '[0:v] fps=12,scale=480:-1,overlay=x=(main_w-overlay_w)-5:y=(main_h-overlay_h)-5,subtitles=subs.srt:force_style="'FontName=Impact,Shadow=0.5'" split [a][b];[a] palettegen [p];[b][p] paletteuse' /var/www/html/create-gifs/youtube.gif

    However, it’s not recognizing the Shadow style. If I run the commands separately they work, but the quality of the gif goes down when adding the subtitles. How can I make this work ?

  • Adding subtitles with FFMpegCore in C# is not working on Azure Function

    1er février 2024, par Skerdi Berberi

    I have deployed a C# azure function with ffmpeg.exe (using FFMpegCore nuget). The function adds audio and srt/ass subtitles to a video.
When I test locally this code works (running on azurite). But, when I deploy the azure function, the audio is added to the video but the subtitles don't show up.

    


    At the begining I thought it was an issue with the Fonts because I was using ASS File for subtitles but then I switched to SRT and still is not working.

    


    I've tried with both SRT and ASS but they both don't work using this code :

    


    await FFMpegArguments
 .FromFileInput(videoInputPath, true, options =>
 {
     options.WithCustomArgument("-stream_loop -1");
 })
 .AddFileInput(audioPath, true)
 .OutputToFile(videoOutputPath, true, (options) =>
 {
     options.WithDuration(thread.AudioData.TotalAudioDuration);

     options.WithVideoCodec(VideoCodec.LibX264);   // Re-encode video using x264 codec
     options.WithAudioCodec(AudioCodec.Aac);       // Re-encode audio to AAC
     options.WithSpeedPreset(Speed.VeryFast);
     options.UsingShortest(true);

     options.WithVideoFilters((videoOptions) =>
     {
         videoOptions.HardBurnSubtitle(SubtitleHardBurnOptions.Create(subtitlesFile));
     });
 }).ProcessAsynchronously();


    


    Here's the command it creates on Azure function :

    


    ffmpeg -stream_loop -1 -i "C:\local\Temp\videoTempPath.mp4" -i "C:\local\Temp\audioTempPath.mp3" -t 00:00:22.8160000 -c:v libx264 -c:a aac -preset veryfast -shortest -vf "subtitles='C\:\\local\\Temp\\subtitles.srt'" "C:\local\Temp\output.mp4" -y


    


  • I have 22,1 GB of movie data totally that I want to put on several DVDs

    8 mars 2017, par P. Dee

    I have 22,1 GB of movie data totally that I want to put on several DVDs.

    I want ffmpeg to create one long 22.1 GB mp4 file from a lot of small files to then split them into as many 4.7 GB mp4-files as necessary(should fit on 5 DVDs), so the order is preserved.

    Which command do I need ?

    I started with ffmpeg -f concat -safe 0 -i mylist.txt -c copy -fs 5046586573 output1.mp4 with mylist.txt containing

    # this is a comment
    file '/path/to/file1'
    file '/path/to/file2'
    file '/path/to/file3'

    Then looking at the duration, to then continue with ffmpeg -ss duration -f concat -safe 0 -i mylist.txt -c copy -fs 5046586573 output2.mp4

    Which command does that at once ?