Recherche avancée

Médias (91)

Autres articles (9)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

Sur d’autres sites (2710)

  • Internecine Legal Threats

    1er juin 2011, par Multimedia Mike — Legal/Ethical

    FFmpeg and associated open source multimedia projects such as xine, MPlayer, and VLC have long had a rebel mystique about them ; a bunch of hackers playing fast and loose with IP law in order to give the world the free multimedia experience it deserved. We figured out the algorithms using any tools available, including the feared technique of binary reverse engineering. When I gave a presentation about FFmpeg at Linuxtag in 2007, I created this image illustrating said mystique :



    It garnered laughs. But I made the point that we multimedia hackers just press on, doing our thing while ignoring legal threats. The policy has historically worked out famously for us– to date, I seem to be the only person on the receiving end of a sort-of legal threat from the outside world.

    Who would have thought that the most credible legal threat to an open source multimedia project would emanate from a fork of that very project ? Because that’s exactly what has transpired :



    Click for full threat

    So it came to pass that Michael Niedermayer — the leader of the FFmpeg project — received a bona fide legal nastygram from Mans Rullgard, a representative of the FFmpeg-forked Libav project. The subject of dispute is a scorched-earth matter involving the somewhat iconic FFmpeg zigzag logo :

     
    Original 2D logo enhanced 3D logo

    To think of all those years we spent worrying about legal threats from organizations outside the community. I’m reminded of that time-honored horror trope/urban legend staple : Get out ! The legal threats are coming from inside the house !

    I’m interested to see how this all plays out, particularly regarding jurisdiction, as we have a U.K. resident engaging an Italian lawyer outfit to deliver a legal threat to an Austrian citizen regarding an image hosted on a server in Hungary. I suspect I know why that law firm was chosen, but it’s still a curious jurisdictional setup.

    People often used to ask me if we multimedia hackers would get sued to death for doing what we do. My response was always, “There’s only one way to know for sure,” by which I meant that we would just have to engage in said shady activities and determine empirically if lawsuits resulted. So I’m a strong advocate for experimentation to push the limits. Kudos to Michael and Mans for volunteering to push the legal limits.

  • Output file using FFmpeg in Xamarin Android

    28 juillet 2022, par Ahmed Mujtaba

    I'm building an android app using Xamarin. The requirement of the app is to capture video from the camera and encode the video to send it across to a server.

    &#xA;&#xA;

    Initially, I was using an encoder library on the server-side to encode recorded video but it was proving to be extremely unreliable and inefficient especially for large-sized video files. I have posted my issues on another thread here

    &#xA;&#xA;

    I then decided to encode the video on the client-side and then send it to the server. I've found encoding to be a bit complicated and there isn't much information available on how this can be done. So, I searched for the only way I knew how to encode a video that is by using FFmpeg codec. I've found some solutions. There's a project on GitHub that demonstrates how FFmpeg is used inside a Xamarin android project. However, running the solution doesn't give any output. The project has a binary FFmpeg file which is installed to the phone directory using the code below :

    &#xA;&#xA;

    _ffmpegBin = InstallBinary(XamarinAndroidFFmpeg.Resource.Raw.ffmpeg, "ffmpeg", false);&#xA;

    &#xA;&#xA;

    Below is the example code for encoding video into a different set of outputs :

    &#xA;&#xA;

    _workingDirectory = Android.OS.Environment.ExternalStorageDirectory.AbsolutePath;&#xA;var sourceMp4 = "cat1.mp4";&#xA;var destinationPathAndFilename = System.IO.Path.Combine (_workingDirectory, "cat1_out.mp4");&#xA;var destinationPathAndFilename2 = System.IO.Path.Combine (_workingDirectory, "cat1_out2.mp4");&#xA;var destinationPathAndFilename4 = System.IO.Path.Combine (_workingDirectory, "cat1_out4.wav");&#xA;if (File.Exists (destinationPathAndFilename))&#xA;    File.Delete (destinationPathAndFilename);&#xA;CreateSampleFile(Resource.Raw.cat1, _workingDirectory, sourceMp4);&#xA;&#xA;&#xA;var ffmpeg = new FFMpeg (this, _workingDirectory);&#xA;&#xA;var sourceClip = new Clip (System.IO.Path.Combine(_workingDirectory, sourceMp4));&#xA;&#xA;var result = ffmpeg.GetInfo (sourceClip);&#xA;&#xA;var br = System.Environment.NewLine;&#xA;&#xA;// There are callbacks based on Standard Output and Standard Error when ffmpeg binary is running as a process:&#xA;&#xA;var onComplete = new MyCommand ((_) => {&#xA;    RunOnUiThread(() =>_logView.Append("DONE!" &#x2B; br &#x2B; br));&#xA;});&#xA;&#xA;var onMessage = new MyCommand ((message) => {&#xA;    RunOnUiThread(() =>_logView.Append(message &#x2B; br &#x2B; br));&#xA;});&#xA;&#xA;var callbacks = new FFMpegCallbacks (onComplete, onMessage);&#xA;&#xA;// 1. The idea of this first test is to show that video editing is possible via FFmpeg:&#xA;// It results in a 150x150 movie that eventually zooms on a cat ear. This is desaturated, and there&#x27;s a fade-in.&#xA;&#xA;var filters = new List<videofilter> ();&#xA;filters.Add (new FadeVideoFilter ("in", 0, 100));&#xA;filters.Add(new CropVideoFilter("150","150","0","0"));&#xA;filters.Add(new ColorVideoFilter(1.0m, 1.0m, 0.0m, 0.5m, 1.0m, 1.0m, 1.0m, 1.0m));&#xA;var outputClip = new Clip (destinationPathAndFilename) { videoFilter = VideoFilter.Build (filters)  };&#xA;outputClip.H264_CRF = "18"; // It&#x27;s the quality coefficient for H264 - Default is 28. I think 18 is pretty good.&#xA;ffmpeg.ProcessVideo(sourceClip, outputClip, true, new FFMpegCallbacks(onComplete, onMessage));&#xA;&#xA;//2. This is a similar version in command line only:&#xA;string[] cmds = new string[] {&#xA;    "-y",&#xA;    "-i",&#xA;    sourceClip.path,&#xA;    "-strict",&#xA;    "-2",&#xA;    "-vf",&#xA;    "mp=eq2=1:1.68:0.3:1.25:1:0.96:1",&#xA;    destinationPathAndFilename2,&#xA;    "-acodec",&#xA;    "copy",&#xA;};&#xA;ffmpeg.Execute (cmds, callbacks);&#xA;&#xA;// 3. This lists codecs:&#xA;string[] cmds3 = new string[] {&#xA;    "-codecs",&#xA;};&#xA;ffmpeg.Execute (cmds, callbacks);&#xA;&#xA;// 4. This convers to WAV&#xA;// Note that the cat movie just has some silent house noise.&#xA;ffmpeg.ConvertToWaveAudio(sourceClip, destinationPathAndFilename4, 44100, 2, callbacks, true);&#xA;</videofilter>

    &#xA;&#xA;

    I have tried different commands but no output file is generated. I have tried to use another project found here but this one has the same issue. I don't get any errors but no output file is generated. I'm really hoping someone can help me find a way I can manage to use FFmpeg in my project or some way to compress video to transport it to the server.

    &#xA;&#xA;

    I will really appreciate if someone can point me in the right direction.

    &#xA;

  • Revision 6723e34224 : Merge "fix permissions on cpplint.py (0644->0755)" into experimental

    4 mai 2013, par James Zern

    Merge "fix permissions on cpplint.py (0644->0755)" into experimental