Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

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

Autres articles (91)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (3558)

  • ffmpeg fontfile works fine with command prompt but did not work when called via C# code

    13 août 2020, par Aman singh Parihar
    ffmpeg.exe -y -i "C:\TEST.mp4" -frames:v 1 -filter_complex "drawtext=fontfile='/Windows/Fonts/GOTHIC.TTF': text='TEST': fontcolor=Red: fontsize = 100: x=(w/100)*5: y=(h/100)*87: " D:\ffoutput.png 


    


    This command works fine when executed from the command prompt. But when the same command is executed using the C# code, it does not work. Although everything works fine instead of fontfile.
Forex : color of the text will chnage, x and y will change, fontsize will change but fontstyle(fontfile) will not change.
Function call Execute("ffmpeg.exe","-y -i "C:\TEST.mp4" -frames:v 1 -filter_complex "drawtext=fontfile='/Windows/Fonts/GOTHIC.TTF': text='TEST': fontcolor=Red: fontsize = 100: x=(w/100)*5: y=(h/100)*87: " D:\ffoutput.png")

    


            private string Execute(string exePath, string parameters)
        {
            /*C# code which does not work*/
            string result = String.Empty;

            using (Process p = new Process())
            {
                p.StartInfo.UseShellExecute = false;
                p.StartInfo.CreateNoWindow = true;
                p.StartInfo.RedirectStandardOutput = true;
                p.StartInfo.FileName = exePath;
                p.StartInfo.Arguments = parameters;
                p.StartInfo.Verb = "runas";
                p.Start();
                p.WaitForExit();
                result = p.StandardOutput.ReadToEnd();
            }

            return result;
        }


    


  • How map_channel works in ffmpeg ?

    2 août 2020, par Redbraid

    I need to extract channels from 5.1 audios. These audio tracks are contained in a MKV file. Structure of "movie.mkv" file is like this :

    


    Input #0, matroska,webm, from 'movie.mkv':
  Duration: 00:40:38.08, start: 0.000000, bitrate: 21128 kb/s
    Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x800 [SAR 1:1 DAR 12:5], 24 fps, 24 tbr, 1k tbn, 48 tbc
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
    Stream #0:2(ger): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
    Stream #0:3(eng): Subtitle: subrip


    


    But the syntax is very messy, so I did not figure out how to extract channels properly.

    


    This code, for the first audio track, works fine :

    


    ffmpeg -i "movie.mkv" -map_channel 0.1.0 "eng channel 1.wav"
ffmpeg -i "movie.mkv" -map_channel 0.1.1 "eng channel 2.wav"
ffmpeg -i "movie.mkv" -map_channel 0.1.2 "eng channel 3.wav"
ffmpeg -i "movie.mkv" -map_channel 0.1.3 "eng channel 4.wav"
ffmpeg -i "movie.mkv" -map_channel 0.1.4 "eng channel 5.wav"
ffmpeg -i "movie.mkv" -map_channel 0.1.5 "eng channel 6.wav"


    


    I believe that 0.1.0 is : input #0 (movie.mkv) ; then stream 1 (audio eng) ; then channel 0 (very first channel).

    


    But when I'm trying to extract channels from second audio track...

    


    ffmpeg -i "movie.mkv" -map_channel 0.2.0 "ger channel 1.wav"
ffmpeg -i "movie.mkv" -map_channel 0.2.1 "ger channel 2.wav"
ffmpeg -i "movie.mkv" -map_channel 0.2.2 "ger channel 3.wav"
ffmpeg -i "movie.mkv" -map_channel 0.2.3 "ger channel 4.wav"
ffmpeg -i "movie.mkv" -map_channel 0.2.4 "ger channel 5.wav"
ffmpeg -i "movie.mkv" -map_channel 0.2.5 "ger channel 6.wav"


    


    ...it extracts not German sound, but instead it results with the same eng channels (which also sound little louder than in previous case). In this code, 0.2.0 appears to be : input #0 (movie.mkv) ; then stream 2 (audio ger) ; then channel 0 (very first channel).

    


    So what am I doing wrong ? :-)

    


  • Windows 10 EV code signing no longer works on electron app

    23 février 2021, par SoOhNo

    I have an electron app. Pretty basic app. It doesn't use ffmpeg for anything it does play an mp3 chime from time to time. I build my app with electron-forge using squirrel format. I then sign it using the SafeNet Authentication app. It's always worked flawlessly.

    


    It's been a couple months since I last released a version. Only thing that has changed is some html ui updates within my electron app and of course lots of Windows 10 updates.

    


    My app builds fine using electron-forge, it installs and runs without issue. I then sign it like usual from the command line and SafeNet confirms it was signed. Right clicking on the file shows it has been signed by my organization. However, once I execute the signed app I get this error : "The code execution cannot proceed because ffmpeg.dll was not found. Reinstalling the program may fix this problem."

    


    Here is what I have tried so far :

    


      

    • Building/Signing on a different windows 10 machine.
    • 


    • Uninstall/Reinstall SafeNet.
    • 


    • Running signed .exe on a different Windows 10 instance
    • 


    • Building/Signing with a cmd session ran as administrator
    • 


    


    I am at a loss, why is it screaming about ffmpeg.dll which my app doesn't depend on ? Why only after the .exe has been signed do I get this error ?

    


    OS : Windows 10
    
Electron v7.3.2
    
Electron-Forge/cli v6.0.0-beta.47
    
SafeNet x64 v10.3