Recherche avancée

Médias (91)

Autres articles (36)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (6218)

  • FFMPEG recording in ASP.NET Core mvc application

    19 avril 2020, par Timber

    I'm using ASP.NET Core and ffmpeg to record a live video stream. When the page receives a get request, the stream should begin recording and saving to a folder using ffmpeg. I want to make it so that when visiting the stop endpoint, the ffmpeg process is closed cleanly.

    



    Unfortunately I'm unable to send a 'q' to stdin after leaving the Get method. Using taskkill requires the use of /F making the ffmpeg process (which is not a window) force quit and not save the video properly, resulting in a corrupt file.

    



    I tried using Process.Kill() but that results in a corrupt file as well. Also, I tried Process.CloseMainWindow() which worked, but only when the process is started as a window, and I'm unable to start the process as a window in the server I'm using.

    



    I've include the code I have so far below, so hopefully someone could lead me in the right path.

    



    using System;&#xA;...&#xA;using Microsoft.Extensions.Logging;&#xA;&#xA;namespace MyApp.Controllers&#xA;{&#xA;    [Route("api/[controller]")]&#xA;    [Authorize]&#xA;    public class RecordingController : Controller&#xA;    {&#xA;        private readonly ApplicationDbContext _context;&#xA;        private readonly ILogger<homecontroller> _logger;&#xA;&#xA;        public RecordingController(ApplicationDbContext context, ILogger<homecontroller> logger)&#xA;        {&#xA;            _context = context;&#xA;            _logger = logger;&#xA;        }&#xA;&#xA;        [HttpGet]&#xA;        public async Task<actionresult> Get()&#xA;        {&#xA;&#xA;            // Define the os process&#xA;            var processStartInfo = new ProcessStartInfo()&#xA;            {&#xA;                // ffmpeg arguments&#xA;                Arguments = "-f mjpeg -i \"https://urlofstream.com/video.gci\" -r 5 \"wwwroot/video.mp4\"",&#xA;                FileName = "ffmpeg.exe",&#xA;                UseShellExecute = true&#xA;            };&#xA;&#xA;            var p1 = Process.Start(processStartInfo);&#xA;&#xA;            // p1.StandardInput.WriteLineAsync("q"); &lt;-- This works here but not in the Stop method&#xA;&#xA;            return Ok(p1.Id);&#xA;        }&#xA;&#xA;&#xA;        // GET: api/Recording/stop&#xA;        [HttpGet("stop/{pid}")]&#xA;        public ActionResult Stop(int pid)&#xA;        {&#xA;            Process processes = Process.GetProcessById(pid);&#xA;            processes.StandardInput.WriteLineAsync("q");     // Does not work, is not able to redirect input&#xA;            return Ok();&#xA;        }&#xA;    }&#xA;}&#xA;&#xA;&#xA;</actionresult></homecontroller></homecontroller>

    &#xA;

  • Could not load or assembly or one of its dependencies

    29 juin 2017, par Prathibha Chiranthana

    I am using Aforge.net frame work for doing image processing work.
    I have add ’AForge.Video.FFMPEG.dll’ as a referance to my project.
    I am using VS2012 and 32 bit build target.
    When Buiding i get

    System.IO.FileNotFoundException was unhandled
     HResult=-2147024770
     Message=Could not load file or assembly 'AForge.Video.FFMPEG.dll' or one of its dependencies. The specified module could not be found.
     Source=VideoReadere
     FileName=AForge.Video.FFMPEG.dll
     FusionLog=""
     StackTrace:
          at VideoReadere.Form1..ctor()
          at VideoReadere.Program.Main() in c:\Users\Prabad\Documents\Visual Studio 2012\Projects\VideoReadere\VideoReadere\Program.cs:line 19
          at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
          at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
          at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
          at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
          at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
          at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
          at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
          at System.Threading.ThreadHelper.ThreadStart()
     InnerException:

    my code for that is occur exception

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Threading.Tasks;
    using System.Windows.Forms;

    namespace VideoReadere
    {
       static class Program
       {
           /// <summary>
           /// The main entry point for the application.
           /// </summary>
           [STAThread]
           static void Main()
           {
               Application.EnableVisualStyles();
               Application.SetCompatibleTextRenderingDefault(false);
    //here below line give exception
               Application.Run(new Form1());
           }
       }
    }
  • Could not load or assembly or one of its dependencies

    24 mars 2017, par Prathibha Chiranthana

    I am using Aforge.net frame work for doing image processing work.
    I have add ’AForge.Video.FFMPEG.dll’ as a referance to my project.
    I am using VS2012 and 32 bit build target.
    When Buiding i get

    System.IO.FileNotFoundException was unhandled
     HResult=-2147024770
     Message=Could not load file or assembly 'AForge.Video.FFMPEG.dll' or one of its dependencies. The specified module could not be found.
     Source=VideoReadere
     FileName=AForge.Video.FFMPEG.dll
     FusionLog=""
     StackTrace:
          at VideoReadere.Form1..ctor()
          at VideoReadere.Program.Main() in c:\Users\Prabad\Documents\Visual Studio 2012\Projects\VideoReadere\VideoReadere\Program.cs:line 19
          at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
          at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
          at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
          at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
          at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
          at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
          at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
          at System.Threading.ThreadHelper.ThreadStart()
     InnerException:

    my code for that is occur exception

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Threading.Tasks;
    using System.Windows.Forms;

    namespace VideoReadere
    {
       static class Program
       {
           /// <summary>
           /// The main entry point for the application.
           /// </summary>
           [STAThread]
           static void Main()
           {
               Application.EnableVisualStyles();
               Application.SetCompatibleTextRenderingDefault(false);
    //here below line give exception
               Application.Run(new Form1());
           }
       }
    }