Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (41)

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

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

Sur d’autres sites (7797)

  • Revision 98537 : 3 notices PHP en moins lors de la création d’une Page unique. Le champ ...

    23 juin 2016, par marcimat@… — Log

    3 notices PHP en moins lors de la création d’une Page unique.
    Le champ $erreurchamp_page ? n’est pas toujours présent, tout comme $argcontexte ?page ?.

  • ffmpeg Get Audio Samples in a specific AVSampleFormat from AVFrame

    20 novembre 2020, par cs guy

    I am looking at the example from ffmpeg docs :
Here

    


    static int output_audio_frame(AVFrame *frame)
{
    size_t unpadded_linesize = frame->nb_samples * av_get_bytes_per_sample(frame->format);
    printf("audio_frame n:%d nb_samples:%d pts:%s\n",
           audio_frame_count++, frame->nb_samples,
           av_ts2timestr(frame->pts, &audio_dec_ctx->time_base));
    /* Write the raw audio data samples of the first plane. This works
     * fine for packed formats (e.g. AV_SAMPLE_FMT_S16). However,
     * most audio decoders output planar audio, which uses a separate
     * plane of audio samples for each channel (e.g. AV_SAMPLE_FMT_S16P).
     * In other words, this code will write only the first audio channel
     * in these cases.
     * You should use libswresample or libavfilter to convert the frame
     * to packed data. */
    fwrite(frame->extended_data[0], 1, unpadded_linesize, audio_dst_file);
    return 0;
}


    


    The issue is decoder's format cant be set so it will give me audio samples in any of the following types :

    


    enum AVSampleFormat {
      AV_SAMPLE_FMT_NONE = -1, AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_S32,
      AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_DBL, AV_SAMPLE_FMT_U8P, AV_SAMPLE_FMT_S16P,
      AV_SAMPLE_FMT_S32P, AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_DBLP, AV_SAMPLE_FMT_S64,
      AV_SAMPLE_FMT_S64P, AV_SAMPLE_FMT_NB
    }


    


    I am working with a sound engine and the engine requres me to send float [-1 to 1] PCM data to the engine so I would like to obtain the frame's audio data as float for the two channels (stereo music). How may I do that ? Do I need to use libswresample ? If so can anyone sent me an example for my case

    


  • golang : Audio to FLAC conversion without running a executable

    16 avril 2019, par Joonatan Samuel

    I am trying to make a Google App Engine that takes a file from Storage, and the converts arbitrary audio file to FLAC. App Engine, however, does not permit running executables.

    My current code looks something like this :

    cmd := exec.CommandContext(ctx, `./ffmpeg`,
       `-i`, `pipe:0`, `pipe:1`, `-ac`, `1`, `-c:a`, `flac`, `-f`, `flac`)
    cmd.Stdin = rc
    cmd.Stdout = wc

    var errOutput bytes.Buffer
    cmd.Stderr = &errOutput

    err = cmd.Run()
    fmt.Printf("Running ffmpeg: %v... \nstderr: %s\n", err, errOutput.String())

    Tried looking for go packages (e.g. https://github.com/xfrr/goffmpeg) that do this, but all that I found seem to use the same "run executable on inputs" paradigm as the code above.

    How should I approach this ? Is there a package that provides bindings to FFMPEG or similar ?