Recherche avancée

Médias (0)

Mot : - Tags -/metadatas

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

Autres articles (46)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

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

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (5335)

  • Adding watermark bitmap over video in android : 4.3's MediaMuxer or ffmpeg

    24 novembre 2018, par Alin

    Here is my scenario :

    • Download an avi movie from the web
    • Open a bitmap resource
    • Overlay this bitmap at the bottom of the movie on all frames in the background
    • Save the video on extarnal storage
    • The video length is 15 seconds usually

    Is this possible to achieve using MediaMuxer ? Any info on the matter is gladly received

    I’ve been looking to http://bigflake.com/mediacodec/#DecodeEditEncodeTest (Thanks @fadden) and it says there :

    "Decoding the frame and copying it into a ByteBuffer with
    glReadPixels() takes about 8ms on the Nexus 5, easily fast enough to
    keep pace with 30fps input, but the additional steps required to save
    it to disk as a PNG are expensive (about half a second)"

    So having almost 1 sec/frame is not acceptable. From what I am thinking one way would be to save each frame as PNG, open it, add the bitmap overlay on it and then save it. However this would take an enormous time to accomplish.

    I wonder if there is a way to do things like this :

    1. Open video file from external storage
    2. Start decoding it
    3. Each decoded frame will be altered with the bitmap overlay in memory
    4. The frame is sent to an encoder.

    On iOS I saw that there a way to take the original audio + original video + an image and add them in a container and then just encode the whole thing...

    Should I switch to ffmpeg ? How stable and compatible is ffmpeg ? Am I risking compatibility issues with android 4.0+ devices ? Is there a way to use ffmpeg to acomplish this ? I am new to this domain and still doing research.


    Years later edit :
    Years have passed since the question and ffmpeg isn’t really easy to add to a commercial software in terms of license. How did this evolved ? Newer versions of android are more capable on this with the default sdk ?


    Some more time later edit

    I got some negative votes for posting info as an answer so I’ll edit the original question. Here is a great library which, from my testing does apply watermark to video and does it with progress callback making it a lot easier to show progress to the user and also uses the default android sdks. https://github.com/MasayukiSuda/Mp4Composer-android

    This library generate an Mp4 movie using Android MediaCodec API and apply filter, scale, and rotate Mp4.

    Sample code, could look like :

    new mp4Composer(sourcePath, destinationPath)
           .filter(new GlWatermarkFilter(watermarkBitmap)
           .listener(){
                 @Override
                 private void onProgress(double value){}

                 @Override
                 private void onCompleted(double value){
                     runOnUiThread( () ->{
                        showSneakbar
                     }
                 }

                 @Override
                 private void onCancelled(double value){}

                 @Override
                 private void onFailed(Exception e){}

           }).start();

    Testing on emulator, seems to work fine on android 8+ while on older generates a black video file.However, when testing on real device seems to work.

  • ffmpeg file read permission denied in application but not in debug

    25 novembre 2019, par Purgitoria

    My application has a function of taking captured images and using an ffmpeg background worker to stitch these into a time lapse video. The GUI has some simple options for video quality and for the source folder and output file. I had an older version of my application written in VB.NET and that worked without issue but i am rewriting in C# as it supports additional capture and filter capability in the image processing but am having real trouble figuring out what is wrong with this function.

    I have tried relocating ffmpeg to different locations just in case it was a permissions issue but that had no effect and i also tried to put the function in a "try" with a message box to output any exceptions but i got different errors that prevented me from compiling the code. When i run the application from within VS 2015 in the debugging tool the function works just fine and it will create a video from a collection of still images and create a log but when i build and install the application it does not work at all and i cannot see what is causing it to fail. In the options for ffmpeg i used the -report to output a log of what happens in the background worker and in debug it creates this log but from the application it does not so i presumed it was not even running ffmpeg and going straight to the completed stage of the function.

    Function startConversion()

       CheckForIllegalCrossThreadCalls = False
       Dim quality As Integer = trbQuality.Value
       Dim input As String = tbFolderOpen.Text
       Dim output As String = tbFolderSave.Text
       Dim exepath As String = Application.StartupPath + "\\bin\ffmpeg.exe"
       input = input & "\SCAImg_%1d.bmp"
       input = Chr(34) & input & Chr(34)
       output = Chr(34) & output & Chr(34)

       Dim sr As StreamReader
       Dim ffmpegOutput As String

       ' all parameters required to run the process
       proc.StartInfo.UseShellExecute = False
       proc.StartInfo.CreateNoWindow = True
       proc.StartInfo.RedirectStandardError = True
       proc.StartInfo.FileName = exepath
       proc.StartInfo.Arguments = "-framerate 25 -start_number 0 -pattern_type sequence -framerate 10 -i " & input & " -r 10 -c:v libx264 -preset slow -crf " & quality & " " & output
       proc.Start()

       lblInfo.Text = "Conversion in progress... Please wait..."
       sr = proc.StandardError 'standard error is used by ffmpeg
       btnMakeVideo.Enabled = False
       Do
           ffmpegOutput = sr.ReadLine
           tbProgress.Text = ffmpegOutput
       Loop Until proc.HasExited And ffmpegOutput = Nothing Or ffmpegOutput = ""

       tbProgress.Text = "Finished !"
       lblInfo.Text = "Completed!"
       MsgBox("Completed!", MsgBoxStyle.Exclamation)
       btnMakeVideo.Enabled = True
       Return 0

    End Function

    I checked the application folder and it does contain a sub folder \bin with the ffmpeg.exe located within the folder so i then used cmd to run an instance of the installed ffmpeg from the application folder and it seemed to be throwing out permissions errors :

    Failed to open report "ffmpeg-20191101-191452.log" : Permission denied Failed to set value ’1’ for option ’report’ : Permission denied Error parsing global options : Permission denied

    This seems then like it is certainly a permissions problem but where i am not sure. I did not run in to this error when using VB.NET so i am wondering where i am going wrong now. I thought perhaps it would just be a write permission in the application folder so i the removed the -report and ran ffmpeg again using cmd from my application folder and it then gave the error

    C :\Users\CEAstro\Pictures\AnytimeCap : Permission denied

    Am i missing something really obvious in my code or is there something more fundamental i have wrong in my setup ?

    I should also add that i tried running ffmpeg via cmd from a copy that was manually placed elsewhere (i used the same file) and that actually created the report but again i got a permission denied when trying to read the input files, considering it was from the user "my pictures" folder which should not have restrictions on read/write access i am at a rael loss.

  • How to get Updated Shared Object Files of OpenCV and FFMPEG libraries to overcome Libpng vulnerability ? [duplicate]

    3 mars 2017, par Liya

    This question already has an answer here :

    We seek a technical help on a current issue which we are facing with one of our android application.

    Our application is for live video streaming and recording (both audio and video) using wifi camera . We have completed the development process and every functionality of the application is working as expected in current version. but once we tried to upload the application to Google has rejected the application stating that vulnerability issue with Libpng library version.

    Our application uses OpenCV, FFMPEG, JavaCV and JavaCPP libraries for Image processing for Video generation. But when we tried to upload to play store google have rejected application with following message :

    “ Hello Google Play Developer,

    We rejected Application name, for violating our Malicious Behavior or
    User Data policy. If you submitted an update, the previous version of
    your app is still available on Google Play.

    This app uses software that contains security vulnerabilities for
    users or allows the collection of user data without proper disclosure.

    Below is the list of issues and the corresponding APK versions that
    were detected in your recent submission. Please upgrade your app(s) as
    soon as possible and increment the version number of the upgraded APK.

    Vulnerability APK Version(s) Libpng library

    The vulnerabilities were fixed in libpng v1.0.66, v.1.2.56, v.1.4.19,
    v1.5.26 or higher. You can find more information about how resolve the
    issue in this Google Help Center article.”

    Since we have not used libpng library directly in our application we assume the problem is with opencv lib version which may be using libpng , so we replaced the opencv jar file with its gradle dependency and .so files of different libraries are combined in an armeabi.jar file and once we deleted the .so files from libs/armeabi.jar folder and uploaded to play store, then Google didn’t rejected with vulnerability issue and it got uploaded to the play store but the recording isn’t working in that version because we have removed the .SO files from the Project.

    So as per our assumptions the libpng vulnerability is not only due to opencv but also due to the other libraries or the .so files .So please kindly suggest us which all .SO files we can remove from the library , so our application functionality for video recording works properly .

    We tried to update the OpenCV, FFMPEG libraries and since the SO files are not getting regenerated so could not resolve this issue yet

    We already refer following links to find a solution :

    1. libpng-vulnerability

    2. opencv-in-android

    3. FFmpegAndroid

    For more information please read our stackover flow post regarding this issue :Libpng vulnerability

    We need help to solve this issue. Please let us know if you can help us to solve this issue since we are running out of time.

    PS : These are the assumptions we made on this issue, May be we are wrong , so please guide us to the right path so we can achieve our goal.