Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (49)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

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

  • ffmpeg based app and VLC IPC ?

    1er avril 2012, par ronag

    I have an application that uses the ffmpeg libraries (not ffmpeg.exe) to encode video and would like to forward the encoded data directly to a VLC process.

    Right now I use udp ://localhost (i.e. avio_open("udp://localhost:5290") and vlc udp://@localhost:5290) for interprocess communication, however it seems a bit unreliable.

    ffmpeg (avio_open) doesn't seem to support named pipes, i.e. \\.\pipe\test is not accepted, and I cannot use standard output/input piping since the applications run in different processes.

    Soo my question is, how can I achieve reliable (and somewhat efficient) interprocess communication between VLC and an application using the ffmpeg libraries ?

  • Interact with ffmpeg from a .NET program - Write Input

    7 mai 2015, par Shimmy

    In reference to this question, as you can see I managed to run and receive data from the program.

    However I didn’t manage to submit data to it, for instance, while converting a file, pressing q immediately stop conversion and stops the program.
    I need my application to support stopping the process as well, and I think this should be done by passing this parameter to the ffmpeg app, since I want it to take care of all uncollected resource or whatever dust it would leave behind if I would just go and use process.Kill()

    Here is what I’ve tried :

    static int lineCount = 0;
    static bool flag;
    static void process_ErrorDataReceived(object sender, DataReceivedEventArgs e)
    {
     Console.WriteLine("Error ({1:m:s:fff}: {0})", lineCount++,
         DateTime.Now);

     if (e.Data != null && string.Equals(e.Data,"Press [q] to stop, [?] for help"))
       flag = true;

     if (flag)
     {
       flag = false;
       Console.WriteLine("Stopping ({0:m:s:fff})...", DateTime.Now);
       process.CancelErrorRead();
       process.CancelOutputRead();
       process.StandardInput.WriteLine("q");
     }  

     Console.WriteLine(e.Data);
     Console.WriteLine();
    }

    But it doesn’t do anything, seems that once the conversion has been requested, I have no control on it any more, I can only receive output from it. Running it as stand alone does allow me interaction of course.

    What am I missing here, is it a different trick in submitting the output or the code in previous answer is wrong, or I should have chosen a different approach ?

    For your attention, RedirectStandardInput is on.

    NOTE : as you can see in the answer of my previous question, ffmpeg interacts differently, I think the one who knows the answer will be (maybe I’m wrong) someone with experience in ffmpeg.

  • Crop MP3 to first 30 seconds

    2 décembre 2016, par Cheekysoft

    Original Question

    I want to be able to generate a new (fully valid) MP3 file from an existing MP3 file to be used as a preview — try-before-you-buy style. The new file should only contain the first n seconds of the track.

    Now, I know I could just "chop the stream" at n seconds (calculating from the bitrate and header size) when delivering the file, but this is a bit dirty and a real PITA on a VBR track. I’d like to be able to generate a proper MP3 file.

    Anyone any ideas ?

    Answers

    Both mp3split and ffmpeg are both good solutions. I chose ffmpeg as it is commonly installed on linux servers and is also easily available for windows. Here’s some more good command line parameters for generating previews with ffmpeg

    • -t <seconds></seconds> chop after specified number of seconds
    • -y force file overwrite
    • -ab <bitrate></bitrate> set bitrate e.g. -ab 96k
    • -ar <rate hz="hz"></rate> set sampling rate e.g. -ar 22050 for 22.05kHz
    • -map_meta_data <outfile>:<infile></infile></outfile> copy track metadata from infile to outfile

    instead of setting -ab and -ar, you can copy the original track settings, as Tim Farley suggests, with :

    • -acodec copy