Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (84)

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

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (7684)

  • How can I overlay an angled gradient or fade over the corner of a video with ffmpeg ?

    16 février 2021, par grgoelyk

    I want to darken the corner of a video with a (for instance) 45-degree black gradient. I'd like to customize the angle, feathering, color and opacity. My video is 10-bit UHD HEVC and I need to output to 10-bit lossless intermediate (probably v210 codec). How can I do all of this in ffmpeg ?

    


    Here is a mockup of what I want to do :

    


    enter image description here

    


  • Video rotation using Android ffmpeg Library

    13 septembre 2014, par Adroid Freak

    I’m using Android ffmpeg Library, The library is working fine, the only issue I’m having is that the video is rotated. The original video is rotated by 90 degree, I tried many options by adding them to the library function below, the commented code is a sample of what I tried, I tried many other options but none of them is working.

    Anyone of you guys got it to work ?

       public void processVideo(Clip in, Clip out, boolean enableExperimental, ShellCallback sc) throws Exception {

           ArrayList<string> cmd = new ArrayList<string>();

           cmd.add(mFfmpegBin);
    //      cmd.add("-vf \"transpose=1\"");Not working
    //      cmd.add(" -vfilters \"rotate=90\"");Not working
           cmd.add("-y");

           if (in.format != null)
           {
               cmd.add(Argument.FORMAT);
               cmd.add(in.format);
           }

           if (in.videoCodec != null)
           {
               cmd.add(Argument.VIDEOCODEC);
               cmd.add(in.videoCodec);
           }

           if (in.audioCodec != null)
           {
               cmd.add(Argument.AUDIOCODEC);
               cmd.add(in.audioCodec);
           }

           cmd.add("-i");
           cmd.add(new File(in.path).getCanonicalPath());

           if (out.videoBitrate > 0)
           {
               cmd.add(Argument.BITRATE_VIDEO);
               cmd.add(out.videoBitrate + "k");
           }

           if (out.width > 0)
           {
               cmd.add(Argument.SIZE);
               cmd.add(out.width + "x" + out.height);

           }
           if (out.videoFps != null)
           {
               cmd.add(Argument.FRAMERATE);
               cmd.add(out.videoFps);
           }

           if (out.videoCodec != null)
           {
               cmd.add(Argument.VIDEOCODEC);
               cmd.add(out.videoCodec);
           }

           if (out.videoBitStreamFilter != null)
           {
               cmd.add(Argument.VIDEOBITSTREAMFILTER);
               cmd.add(out.videoBitStreamFilter);
           }


           if (out.videoFilter != null)
           {
               cmd.add("-vf");
               cmd.add(out.videoFilter);
           }

           if (out.audioCodec != null)
           {
               cmd.add(Argument.AUDIOCODEC);
               cmd.add(out.audioCodec);
           }

           if (out.audioBitStreamFilter != null)
           {
               cmd.add(Argument.AUDIOBITSTREAMFILTER);
               cmd.add(out.audioBitStreamFilter);
           }
           if (out.audioChannels > 0)
           {
               cmd.add(Argument.CHANNELS_AUDIO);
               cmd.add(out.audioChannels+"");
           }

           if (out.audioBitrate > 0)
           {
               cmd.add(Argument.BITRATE_AUDIO);
               cmd.add(out.audioBitrate + "k");
           }

           if (out.format != null)
           {
               cmd.add("-f");
               cmd.add(out.format);
           }

           if (enableExperimental)
           {
               cmd.add("-strict");
               cmd.add("-2");//experimental
           }
    //      cmd.add("-metadata:s:v rotate=\"0\"");Not working
    //      cmd.add("rotate=\"0\""); Not working

           cmd.add(new File(out.path).getCanonicalPath());

           execFFMPEG(cmd, sc);

       }
    </string></string>

    This is how I’m using it btw,

    FfmpegController fc = new FfmpegController(this, fileTmp);

    clip_out.videoFps = "30";
    clip_out.width = 480;
    clip_out.height = 320;
    clip_out.videoCodec = "mpeg4";
    clip_out.audioCodec = "copy";
    clip_out.videoBitrate = 450;

        fc.processVideo(clip_in, clip_out, false, new ShellUtils.ShellCallback()  

    Information about the compilation,

    /data/data/com.example.testffmpeg/app_bin/ffmpeg -filters
    ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
    built on Nov 15 2013 00:50:10 with gcc 4.6 20120106 (prerelease)
    configuration: --arch=arm --cpu=cortex-a8 --target-os=linux --enable-runtime-cpudetect --enable-small --prefix=/data/data/info.guardianproject.ffmpeg/app_opt --enable-pic --disable-shared --enable-static --cross-prefix=/home/n8fr8/dev/android/ndk//toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi- --sysroot=/home/n8fr8/dev/android/ndk//platforms/android-3/arch-arm --extra-cflags='-I../x264 -mfloat-abi=softfp -mfpu=neon' --extra-ldflags=-L../x264 --enable-version3 --enable-gpl --disable-doc --enable-yasm --enable-decoders --enable-encoders --enable-muxers --enable-demuxers --enable-parsers --enable-protocols --enable-filters --enable-avresample --enable-libfreetype --disable-indevs --enable-indev=lavfi --disable-outdevs --enable-hwaccels --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-network --enable-libx264 --enable-zlib --enable-muxer=md5
  • C# The specified executable is not a valid application for this OS platform

    22 avril 2015, par Mihai Ciully

    I’m making a Video sharing application(the likes of youtube) for my bachelor degree(the project is done in asp.net web forms)
    And i want to convert any video the user uploads to mp4.For this i’m using the Nreco ffmpeg wrapper for asp.

    I’m doing all this locally and this project is not going live.

    The video conversion is done in a separate thread.

    protected void Upload_Click(object sender, EventArgs e)
    {
    //File Uploads to Server
    Thread t1 = new Thread(
    unused => compressVideo(Video_Path, Final_Path,User_id)
    );
    t1.Start();
    }

    public static void compressVideo(string Video_Path, string Final_Path,string UID)
    {
       var ffMpeg = new NReco.VideoConverter.FFMpegConverter();
       ffMpeg2.ConvertProgress += (o, args) =>
           {
               //SignalR calls.Doing this to update the ui
           };

       ffMpeg.ConvertMedia(Video_Path, Final_Path, NReco.VideoConverter.Format.mp4);
    }

    First time i did this it all worked fine,not a single problem.
    Two weeks late,after not modifying this page,i try it again and the application throws this exception :

    An unhandled exception of type ’System.ComponentModel.Win32Exception’
    occurred in NReco.VideoConverter.dll

    Additional information : The specified executable is not a valid
    application for this OS platform.

    on the line :

    ffMpeg.ConvertMedia(Video_Path, Final_Path, NReco.VideoConverter.Format.mp4);

    If i call the ffMpeg.ConvertMedia(),the exception is not thrown and the code works as expected.So im guessing it has something to do with threads.But that’s not all.
    After messing around with the code trying to solve this and not succeeding i revert back to the original code.In a last attempt i try it again(with the original code) and the application gave the build error.

    attempted to access an unloaded appdomain.

    Any modification i did to the code was ignored and i was always getting that error when compiling.
    After taking a five minutes break to calm down, i try it again.It magically fixed its self.The build error was gone and even the conversion was working.

    But the dream didn’t last long.After a few minutes the conversion thread started throwing the same exception again.
    I was not able to replicate the same result.

    My experience and knowledge with asp.net web forms and web design in general are fairly low,so please keep the answers as simple as possible.