Recherche avancée

Médias (91)

Autres articles (21)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

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

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

Sur d’autres sites (4096)

  • How to use ffmpeg for decoding aac data and transfer it to CMSamplebufferref

    21 novembre 2016, par dgqbcwh

    There are many encoding examples of how to encode CMSamplebufferref (PCM data) structure to aac . Now there is a stream which is from a ip camera. The camera use rtsp protocol for translating the h264+aac stream to iPhone. I’d like to know how to decode the aac stream then creating CMSamplebufferref.

  • ffmpeg - How to (programmatically) copy a stream's side data ?

    25 mars 2021, par waldenCalms

    My app is a tag editor (eg ID3) written in Swift for macOS. I'm using ffmpeg as my library to perform the tag editing. When the user is done editing, the app should save the changes to (essentially) a modified copy of the original file. I'm able to copy everything I need (from input -> output file) EXCEPT "side data".

    


    In other words, I'm doing the programmatic equivalent of :

    


    ffmpeg -i input.mp3 -metadata key1=value1 -metadata key2=value2 -codec copy output.mp3


    


    So, output.mp3 must be identical to input.mp3, except for the few metadata changes made by the user.

    


    What I have working so far

    


    I'm able to copy the audio stream and all associated metadata (tags), as is, from input.mp3 to output.mp3.

    


    The problem

    


    My input.mp3 happens to have some side data (see below), which does not get copied over to output.mp3. How to copy side data ? To be honest, I don't even know what side data is, and the documentation is not very helpful.

    


    ffprobe gives the following output (snippet) for the input.mp3's side data that looks like :

    


    Side data:
      replaygain: track gain - -9.200000, track peak - unknown, album gain - unknown, album peak - unknown,


    


    I want THIS ^ to get copied over to output.mp3, but it does not :(

    


    Relevant code snippet (format context initialization code omitted for conciseness)

    


    let inAudioStream = inFormatContext!.pointee.streams.advanced(by: Int(audio_stream_index)).pointee!.pointee&#xA;var outAudioStream = outFormatContext!.pointee.streams.advanced(by: Int(audio_stream_index)).pointee!.pointee&#xA;            &#xA;/* Free existing side data*/&#xA;            &#xA;for i in 0..* Copy side data if present */&#xA;            &#xA;if let srcSideData = inAudioStream.side_data {&#xA;                &#xA;    let rawPtr: UnsafeMutableRawPointer? = av_mallocz_array(Int(inAudioStream.nb_side_data),&#xA;                                                            MemoryLayout<avpacketsidedata>.size)&#xA;                &#xA;    outAudioStream.side_data = UnsafeMutablePointer<avpacketsidedata>(OpaquePointer(rawPtr))&#xA;    outAudioStream.nb_side_data = inAudioStream.nb_side_data&#xA;                &#xA;    for i in 0..(OpaquePointer(data))&#xA;    }&#xA;}&#xA;            &#xA;status = avformat_write_header(outFormatContext, nil)&#xA;</avpacketsidedata></avpacketsidedata>

    &#xA;

    I got this logic from this page. Is this ^ the right way to copy a stream's side data to the corresponding stream in the output file ? If not, how to do it ?

    &#xA;

    I have also tried the following functions with no luck :

    &#xA;

    av_stream_new_side_data(...)&#xA;av_stream_add_side_data(...)&#xA;

    &#xA;

    Please ask for details if required, and I will provide them. Thanks very much !

    &#xA;

  • when using ffmpeg to copy h264 data from a fifo to a file, my free ram memory keeps decreasing over time

    9 septembre 2019, par Nidheesh V

    video data is comming to a fifo. the ffmpeg is made to take the fifo data and copy it to my sdcard
    when ffmpeg is used to copy the data,the free ram decreases

    tried using different versions of ffmpeg,but same issue

    ffmpeg -f h264 -i /tmp/file.h264 -c:a copy -c:v copy /tmp/sdcard/record_main.mp4
    This command was used to perform the process

    ram free memory should not decrease as time goes