Recherche avancée

Médias (1)

Mot : - Tags -/ipad

Autres articles (96)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

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

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (19134)

  • Anomalie #2985 (Nouveau) : Les docs attachés à un auteur ne sont pas visibles pour les rédacs dans...

    26 avril 2013, par Suske -

    Voir http://forum.spip.net/fr_251736.html

    Je confirme.

    Par contre ils s’afficheraient dans le public, ce que je veux bien croire mais pas testé.

    Une question d’autorisation j’imagine.

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

    



    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

    



    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 :

    



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


    



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

    



    _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;

  • ffmpeg webcam stream on windows to sdl

    17 janvier 2021, par user3705497

    Hi I am trying to display webcam stream on windows.

    &#xA;

    I can use "ffplay" but I want to use "ffmpeg" command.

    &#xA;

    c:\>ffmpeg -f dshow -i video="USB2.0 VGA UVC WebCam" -f sdl test&#xA;ffmpeg version 2020-12-27-git-bff6fbead8-full_build-www.gyan.dev Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 10.2.0 (Rev5, Built by MSYS2 project)&#xA;  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint&#xA;  libavutil      56. 62.100 / 56. 62.100&#xA;  libavcodec     58.115.102 / 58.115.102&#xA;  libavformat    58. 65.100 / 58. 65.100&#xA;  libavdevice    58. 11.103 / 58. 11.103&#xA;  libavfilter     7. 94.100 /  7. 94.100&#xA;  libswscale      5.  8.100 /  5.  8.100&#xA;  libswresample   3.  8.100 /  3.  8.100&#xA;  libpostproc    55.  8.100 / 55.  8.100&#xA;Input #0, dshow, from &#x27;video=USB2.0 VGA UVC WebCam&#x27;:&#xA;  Duration: N/A, start: 92136.240000, bitrate: N/A&#xA;    Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 30 fps, 30 tbr, 10000k tbn, 10000k tbc&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (rawvideo (native) -> rawvideo (native))&#xA;Press [q] to stop, [?] for help&#xA;Output #0, sdl,sdl2, to &#x27;test&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf58.65.100&#xA;    Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422(progressive), 640x480, q=2-31, 147456 kb/s, 30 fps, 30 tbn&#xA;    Metadata:&#xA;      encoder         : Lavc58.115.102 rawvideo&#xA;av_interleaved_write_frame(): Operation not permitted&#xA;frame=    1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.03 bitrate=N/A speed=0.448x&#xA;video:600kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown&#xA;Conversion failed!&#xA;

    &#xA;

    The following works though :

    &#xA;

    ffmpeg -i file.webm -f sdl test&#xA;

    &#xA;

    Any ideas why the failure ?

    &#xA;