Recherche avancée

Médias (91)

Autres articles (108)

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

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

Sur d’autres sites (9341)

  • flutter_ffmpeg - Can we trim a part of the video in flutter while recording

    16 février 2021, par Mayur Agarwal

    I am making a flutter app, in which a user can record a video and pause in between, and when the user pauses the video a clip is formed.
So if the 4 clips are there, then 4th clip can be removed from the video (according to the time of the last clip).
By a clip I just mean the time interval between two continuous pauses. The video is being recorded continuously.
There's a way to trim a video after it's being record, for example,

    


     ffmpeg -ss 00:01:00 -i input.mp4 -to 00:02:00 -c copy output.mp4


    


    But I think it's possible only when the video is recorded.

    


    So, Is there any way to to trim a video (using flutter_ffmpeg) or the last clip, while the recording is paused ?

    


  • System.InvalidOperationException thrown when running as part of a WPF application. Xabe.FFmpeg

    16 mars 2021, par S. O. James

    I have the following code which runs on a console application

    


      string filePath = "C:\\Users\\**\\Desktop\\sample-mp4-file.mp4";
  string output1 = "C:\\Users\\**\\Desktop\\1.jpg";
  string output2 = "C:\\Users\\**\\Desktop\\2.jpg";
  var ms = new MultiSnapshotCommand(filePath);
  await ms.Add(TimeSpan.FromSeconds(20), output1);
  await ms.Add(TimeSpan.FromSeconds(20), output2);
  await ms.Invoke();


    


    Which uses the following

    


      public async Task Add(TimeSpan timestamp, string outputPath)
  {
      var conversion = await FFmpeg.Conversions.FromSnippet.Snapshot(filePath, outputPath, timestamp);
      conversionQueue.Enqueue(conversion);
  }


    


    This executes fine and both snapshots are created when calling Invoke().
However, when executing the same code running in an async method in response to a button click in a WPF scenario, the UI freezes, then a few moments later Exception thrown: 'System.InvalidOperationException' in System.Diagnostics.Process.dll is shown from the debugger output with no recovery.

    


    The error seems to be occurring at await FFmpeg.Conversions.FromSnippet.Snapshot(filePath, outputPath, timestamp);

    


    Original - https://github.com/tomaszzmuda/Xabe.FFmpeg/issues/341

    


    Edit

    


    My project files https://github.com/Scharps/MP4ToImageConverter/tree/05beeb1cc359b654fb51a9695b5c20386c4d5fb6.
FFmpeg is required in Path system variable. File locations will need to be changed also

    


  • ffmpeg mkv to mp4 converter drops part of the audio, how to configure in python ?

    14 mars 2021, par user3486773

    I am converting several mkv files to mp4 via ffmpeg and python. However when I go to play them, the background audio is synced up perfect, but it's as if it's dropped all the voices. Is there a way to set all the audio to mono ?

    


    or how do I specify the number of channels ?

    


    The following audio and video settings work in vlc :

    


    video settings:
Codec = H-265
bitrate = 800 kb/s

audio settings:
Codec = MP3
bitrate = 128 kb/s
channels = 2
sample rate = 8000Hz


    


    my python code :

    


    import os
import ffmpeg
import glob

start_dir = os.chdir("C:/Users/Me/Downloads/")
files = [file for file in glob.glob("*.mkv")]

def convert_to_mp4(mkv_file):
    name, ext = os.path.splitext(mkv_file)
    out_name = name + ".mp4"
    ffmpeg.input(mkv_file).output(out_name).run()
    print("Finished converting {}".format(mkv_file))

print(os.getcwd())
for path, folder, files in os.walk(os.getcwd()):
    for file in files:
        if file.endswith('.mkv'):
            print("Found file: %s" % file)
            convert_to_mp4(os.path.join(os.getcwd(), file))
        else:
            pass