Recherche avancée

Médias (91)

Autres articles (57)

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

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (6587)

  • Compiling ffmpeg for chromium on Windows

    7 janvier 2019, par ykhandel

    I am following the instructions here to generate the gn files for Chromium. I have installed the cygwin base package along with diffutils, nasm, make and python.

    Also, I have copied chromium/scripts/cygwin-wrapper to /usr/local/bin

    1. Started C :\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat

    2. Started C :\cygwin\cygwin.bat

    3. cd to third_party\chromium\scripts

    4. python build_ffmpeg win ia32

    I am getting some warnings plus this :

    Could not create temporary library.
    make : *** [/cygdrive/d/src/chromium/src/third_party/ffmpeg/ffbuild/library.mak:102 : libavutil/avutil-56.dll] Error 1

    make : *** Waiting for unfinished jobs....

    Could not create temporary library.

    Could not create temporary library.

    make : *** [/cygdrive/d/src/chromium/src/third_party/ffmpeg/ffbuild/library.mak:102 : libavcodec/avcodec-58.dll] Error 1

    make : *** [/cygdrive/d/src/chromium/src/third_party/ffmpeg/ffbuild/library.mak:102 : libavformat/avformat-58.dll] Error 1

    Traceback (most recent call last) :

    File "build_ffmpeg.py", line 900, in

    sys.exit(main(sys.argv[1 :]))

    File "build_ffmpeg.py", line 502, in main

    options=options)

    File "build_ffmpeg.py", line 876, in ConfigureAndBuild

    configure_args)

    File "build_ffmpeg.py", line 870, in do_build_ffmpeg

    options.config_only, branding, configure_flags)

    File "build_ffmpeg.py", line 408, in BuildFFmpeg

    [’make’, ’-j%d’ % parallel_jobs] + libraries, cwd=config_dir)

    File "build_ffmpeg.py", line 106, in PrintAndCheckCall

    subprocess.check_call(argv, *args, **kwargs)

    File "/usr/lib/python2.7/subprocess.py", line 186, in check_call

    raise CalledProcessError(retcode, cmd)

    subprocess.CalledProcessError : Command ’[’make’, ’-j8’, ’libavcodec/avcodec-
    58.dll’, ’libavformat/avformat-58.dll’, ’libavutil/avutil-56.dll’]’ returned non-zero exit status 2

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