
Recherche avancée
Autres articles (16)
-
Publier sur MédiaSpip
13 juin 2013Puis-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 2011Contrairement à 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, parUnlike 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 Vilerinofftools/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> -
screen recorder by using accord.net
12 juin 2020, par mohammadI tried to creat screen recorder by ussing accord.ffmpeg when run project it show this error :





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





At line :



FileWriter.WriteAudioFrame(e.Signal.RawData);




Full Code :



using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Accord;
using Accord.Video;
using Accord.Video.FFMPEG;
using System.Diagnostics;
using System.Threading;
using Accord.DirectSound;
using Accord.Audio;
using System.IO;
namespace WindowsFormsApplication1
{
 public partial class Form1 : Form
 {
 public Form1()
 {
 InitializeComponent();
 }

 VideoFileWriter FileWriter;
 Stopwatch stopwatch = new Stopwatch();
 AudioCaptureDevice audioDevice;
 int frameTime;
 int totalTime;
 Thread recorderTherad;
 bool start;

 /// diemntion of screen
 int x = 1280;
 int y = 800;

 private void button1_Click(object sender, EventArgs e)
 {
 //Start recorder

 AudioDeviceInfo info = null;
 var adc = new AudioDeviceCollection(AudioDeviceCategory.Capture);
 foreach (var ad in adc)
 {
 string desc = ad.Description;
 if (desc.IndexOf("Audio") > -1)
 {
 info = ad;
 }
 }
 if (info == null)
 {
 audioDevice = new AudioCaptureDevice();
 }
 else
 {
 audioDevice = new AudioCaptureDevice(info);
 }

 audioDevice.NewFrame += AudioDevice_NewFrame;
 audioDevice.Format = SampleFormat.Format16Bit;



 FileWriter = new VideoFileWriter();
 FileWriter.Open(@"d:\nn.mp4",x,y,10,VideoCodec.MPEG4 ,1000000,AudioCodec.MP3 ,320000,audioDevice.SampleRate ,audioDevice.Channels );

 recorderTherad = new Thread(delegate () { recorder(); });
 start = true;
 audioDevice.Start();
 recorderTherad.Start();
 }

 private void recorder()
 {
 stopwatch.Start();
 while (start == true)
 {
 Bitmap bitmap = new Bitmap(x, y);
 using (Graphics g = Graphics.FromImage(bitmap))
 { g.CopyFromScreen(new System.Drawing.Point(0, 0), System.Drawing.Point.Empty, new Size(x, y)); }

 stopwatch.Stop();
 frameTime = Convert.ToInt32(stopwatch.ElapsedMilliseconds);
 stopwatch.Restart();

 //if time of get screen shoot > 100 msec
 if (frameTime > 100)
 {
 totalTime += frameTime;
 TimeSpan d = new TimeSpan(0, 0, 0, 0, totalTime);
 FileWriter.WriteVideoFrame(bitmap, d);
 bitmap.Dispose();
 }
 else
 {
 totalTime += 100;
 TimeSpan d = new TimeSpan(0, 0, 0, 0, totalTime);
 FileWriter.WriteVideoFrame(bitmap, d);
 bitmap.Dispose();
 Thread.Sleep(100 - frameTime);
 }
 }
 }
 private void AudioDevice_NewFrame(object sender, Accord.Audio.NewFrameEventArgs e)
 {
 FileWriter.WriteAudioFrame(e.Signal.RawData);
 }

 private void button2_Click(object sender, EventArgs e)
 {
 audioDevice .Stop();
 start = false;
 recorderTherad.Abort();
 FileWriter.Close();
 FileWriter.Dispose();
 audioDevice.Dispose();
 }
 }
}



-
Subtitles in ffmpeg/libavfilter
15 juin 2021, par Captain JackI have a C program to read video/audio with libav/ffmpeg libraries and decode it.



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.



My filter is very simple.



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




On the console I get this :



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




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



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



ffmpeg version is the latest one.



$ ffmpeg -v
ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
 built with Apple LLVM version 9.0.0 (clang-900.0.39.2)
 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='-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' --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
 libavutil 56. 22.100 / 56. 22.100
 libavcodec 58. 35.100 / 58. 35.100
 libavformat 58. 20.100 / 58. 20.100
 libavdevice 58. 5.100 / 58. 5.100
 libavfilter 7. 40.101 / 7. 40.101
 libavresample 4. 0. 0 / 4. 0. 0
 libswscale 5. 3.100 / 5. 3.100
 libswresample 3. 3.100 / 3. 3.100
 libpostproc 55. 3.100 / 55. 3.100




Any ideas ?