Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (82)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (8480)

  • Wrong Bitrate after ffmpeg WAV to MP3 Conversion

    27 février 2015, par Nick Weisser

    I converted a WAV file to MP3. ffmpeg’s output states that it’s being converted into 128k bitrate, but it ends up with only 32k bitrate.

    # ffmpeg -i 3.28.09.WAV -acodec libmp3lame -ab 128k 3.28.09.mp3
    ffmpeg version 0.8.6-6:0.8.6-1, Copyright (c) 2000-2013 the Libav developers
     built on Mar 24 2013 07:20:17 with gcc 4.7.2
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    [wav @ 0x954f800] max_analyze_duration reached
    Input #0, wav, from '3.28.09.WAV':
     Duration: 00:27:07.47, bitrate: 2304 kb/s
       Stream #0.0: Audio: pcm_s24le, 48000 Hz, 2 channels, s32, 2304 kb/s
    Incompatible sample format 's32' for codec 'libmp3lame', auto-selecting format 's16'
    Output #0, mp3, to '3.28.09.mp3':
     Metadata:
       TSSE            : Lavf53.21.1
       Stream #0.0: Audio: libmp3lame, 48000 Hz, 2 channels, s16, 128 kb/s
    Stream mapping:
     Stream #0.0 -> #0.0
    Press ctrl-c to stop encoding
    size=   25430kB time=1627.51 bitrate= 128.0kbits/s    
    video:0kB audio:25430kB global headers:0kB muxing overhead 0.000495%

    The original WAV file is RIFF (little-endian) data, WAVE audio, Microsoft PCM, 24 bit, stereo 48000 Hz.

    The output MP3 file is an audio file with ID3 version 2.4.0, contains : MPEG ADTS, layer III, v1, 32 kbps, 48 kHz, Stereo when inspected with the file utility. My PHP library getID3 also state.

    # ffmpeg -i 3.28.09.mp3
    ffmpeg version 0.8.6-6:0.8.6-1, Copyright (c) 2000-2013 the Libav developers
     built on Mar 24 2013 07:20:17 with gcc 4.7.2
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    [mp3 @ 0x8f56800] max_analyze_duration reached
    Input #0, mp3, from '3.28.09.mp3':
     Metadata:
       encoder         : Lavf53.21.1
     Duration: 00:27:07.51, start: 0.000000, bitrate: 128 kb/s
       Stream #0.0: Audio: mp3, 48000 Hz, stereo, s16, 128 kb/s
    At least one output file must be specified

    Any ideas what I might be missing here ?

  • 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());
           }
       }
    }