Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (16)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

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

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (4040)

  • fftools/ffmpeg_opt : Document VAAPI -device usage for DirectX Adapter

    14 avril 2023, par Sil Vilerino
    fftools/ffmpeg_opt : Document VAAPI -device usage for DirectX Adapter
    

    Initial review at https://github.com/intel-media-ci/ffmpeg/pull/619/

    Signed-off-by : Sil Vilerino <sivileri@microsoft.com>
    Reviewed-by : Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
    Reviewed-by : Wu, Tong1 <tong1.wu@intel.com>

    • [DH] doc/ffmpeg.texi
    • [DH] fftools/ffmpeg_opt.c
  • screen recorder by using accord.net

    12 juin 2020, par mohammad

    I tried to creat screen recorder by ussing accord.ffmpeg when run project it show this error :

    &#xA;&#xA;

    &#xA;

    An unhandled exception of type 'System.AccessViolationException' occurred in Accord.Video.FFMPEG.dll&#xA; Additional information : Attempted to read or write protected memory. This is often an indication that other memory is corrupt

    &#xA;

    &#xA;&#xA;

    At line :

    &#xA;&#xA;

    FileWriter.WriteAudioFrame(e.Signal.RawData);&#xA;

    &#xA;&#xA;

    Full Code :

    &#xA;&#xA;

    using System;&#xA;using System.Collections.Generic;&#xA;using System.ComponentModel;&#xA;using System.Data;&#xA;using System.Drawing;&#xA;using System.Linq;&#xA;using System.Text;&#xA;using System.Threading.Tasks;&#xA;using System.Windows.Forms;&#xA;using Accord;&#xA;using Accord.Video;&#xA;using Accord.Video.FFMPEG;&#xA;using System.Diagnostics;&#xA;using System.Threading;&#xA;using Accord.DirectSound;&#xA;using Accord.Audio;&#xA;using System.IO;&#xA;namespace WindowsFormsApplication1&#xA;{&#xA;    public partial class Form1 : Form&#xA;    {&#xA;        public Form1()&#xA;        {&#xA;            InitializeComponent();&#xA;        }&#xA;&#xA;        VideoFileWriter FileWriter;&#xA;        Stopwatch stopwatch = new Stopwatch();&#xA;        AudioCaptureDevice audioDevice;&#xA;        int frameTime;&#xA;        int totalTime;&#xA;        Thread recorderTherad;&#xA;        bool start;&#xA;&#xA;        /// diemntion of screen&#xA;        int x = 1280;&#xA;        int y = 800;&#xA;&#xA;        private void button1_Click(object sender, EventArgs e)&#xA;        {&#xA;            //Start recorder&#xA;&#xA;            AudioDeviceInfo info = null;&#xA;            var adc = new AudioDeviceCollection(AudioDeviceCategory.Capture);&#xA;            foreach (var ad in adc)&#xA;            {&#xA;                string desc = ad.Description;&#xA;                if (desc.IndexOf("Audio") > -1)&#xA;                {&#xA;                    info = ad;&#xA;                }&#xA;            }&#xA;            if (info == null)&#xA;            {&#xA;                audioDevice = new AudioCaptureDevice();&#xA;            }&#xA;            else&#xA;            {&#xA;                audioDevice = new AudioCaptureDevice(info);&#xA;            }&#xA;&#xA;            audioDevice.NewFrame &#x2B;= AudioDevice_NewFrame;&#xA;            audioDevice.Format = SampleFormat.Format16Bit;&#xA;&#xA;&#xA;&#xA;            FileWriter = new VideoFileWriter();&#xA;            FileWriter.Open(@"d:\nn.mp4",x,y,10,VideoCodec.MPEG4  ,1000000,AudioCodec.MP3  ,320000,audioDevice.SampleRate ,audioDevice.Channels  );&#xA;&#xA;            recorderTherad = new Thread(delegate () { recorder(); });&#xA;            start = true;&#xA;            audioDevice.Start();&#xA;            recorderTherad.Start();&#xA;        }&#xA;&#xA;        private void recorder()&#xA;        {&#xA;            stopwatch.Start();&#xA;            while (start == true)&#xA;            {&#xA;             Bitmap bitmap = new Bitmap(x, y);&#xA;                using (Graphics g = Graphics.FromImage(bitmap))&#xA;                { g.CopyFromScreen(new System.Drawing.Point(0, 0), System.Drawing.Point.Empty, new Size(x, y)); }&#xA;&#xA;                stopwatch.Stop();&#xA;                frameTime = Convert.ToInt32(stopwatch.ElapsedMilliseconds);&#xA;                stopwatch.Restart();&#xA;&#xA;                //if time of get screen shoot > 100 msec&#xA;                if (frameTime > 100)&#xA;                {&#xA;                    totalTime &#x2B;= frameTime;&#xA;                    TimeSpan d = new TimeSpan(0, 0, 0, 0, totalTime);&#xA;                    FileWriter.WriteVideoFrame(bitmap, d);&#xA;                    bitmap.Dispose();&#xA;                }&#xA;                else&#xA;                {&#xA;                    totalTime &#x2B;= 100;&#xA;                    TimeSpan d = new TimeSpan(0, 0, 0, 0, totalTime);&#xA;                    FileWriter.WriteVideoFrame(bitmap, d);&#xA;                    bitmap.Dispose();&#xA;                    Thread.Sleep(100 - frameTime);&#xA;                }&#xA;            }&#xA;        }&#xA;        private void AudioDevice_NewFrame(object sender, Accord.Audio.NewFrameEventArgs e)&#xA;        {&#xA;                FileWriter.WriteAudioFrame(e.Signal.RawData);&#xA;        }&#xA;&#xA;        private void button2_Click(object sender, EventArgs e)&#xA;        {&#xA;            audioDevice .Stop();&#xA;            start = false;&#xA;            recorderTherad.Abort();&#xA;            FileWriter.Close();&#xA;            FileWriter.Dispose();&#xA;            audioDevice.Dispose();&#xA;        }&#xA;    }&#xA;}&#xA;

    &#xA;

  • Subtitles in ffmpeg/libavfilter

    15 juin 2021, par Captain Jack

    I have a C program to read video/audio with libav/ffmpeg libraries and decode it.

    &#xA;&#xA;

    I am playing with some filters and most work just fine. I can draw text, overlay logos, flip and invert video colours. However, I am having big issues overlaying subtitles.

    &#xA;&#xA;

    My filter is very simple.

    &#xA;&#xA;

    const char *vfilter_descr = "[in]subtitles=subs.srt[out]";&#xA;

    &#xA;&#xA;

    On the console I get this :

    &#xA;&#xA;

    [Parsed_subtitles_0 @ 0x7fe76c703240] Shaper: FriBidi 0.19.7 (SIMPLE) HarfBuzz-ng 2.4.0 (COMPLEX)&#xA;[Parsed_subtitles_0 @ 0x7fe76c703240] Using font provider coretext&#xA;[Parsed_subtitles_0 @ 0x7fe76c703240] fontselect: (Arial, 400, 0) -> /Library/Fonts/Microsoft/Arial.ttf, -1, ArialMT&#xA;[Parsed_subtitles_0 @ 0x7fe76c703240] fontselect: (Arial, 400, 100) -> /Library/Fonts/Microsoft/Arial Italic.ttf, -1, Arial-ItalicMT&#xA;

    &#xA;&#xA;

    ...which somewhat confirms that subtitles are loading, though I am not sure why there are two fonts being loaded ?

    &#xA;&#xA;

    However, they are not showing at all - almost as if they never loaded. I tried several different files, including ASS ones but no luck.

    &#xA;&#xA;

    ffmpeg version is the latest one.

    &#xA;&#xA;

    $ ffmpeg -v&#xA;ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers&#xA;  built with Apple LLVM version 9.0.0 (clang-900.0.39.2)&#xA;  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.1.3_1 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags=&#x27;-I/Library/Java/JavaVirtualMachines/adoptopenjdk-11.0.2.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/adoptopenjdk-11.0.2.jdk/Contents/Home/include/darwin&#x27; --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-videotoolbox --disable-libjack --disable-indev=jack --enable-libaom --enable-libsoxr&#xA;  libavutil      56. 22.100 / 56. 22.100&#xA;  libavcodec     58. 35.100 / 58. 35.100&#xA;  libavformat    58. 20.100 / 58. 20.100&#xA;  libavdevice    58.  5.100 / 58.  5.100&#xA;  libavfilter     7. 40.101 /  7. 40.101&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  3.100 /  5.  3.100&#xA;  libswresample   3.  3.100 /  3.  3.100&#xA;  libpostproc    55.  3.100 / 55.  3.100&#xA;

    &#xA;&#xA;

    Any ideas ?

    &#xA;