Recherche avancée

Médias (91)

Autres articles (35)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (9281)

  • How to convert mo4 to mp3 in android java ?

    3 août 2023, par Akshit

    I have the mp4 link of a video but don't have a link for the mp3 version of that mp4 video. So is there any way that I can convert that mp4 video to mp3 in Android ? I saw some resources but nothing works for me. I have two ways in which I believe this can be achieved

    


      

    1. Convert the mp4 link to mp3 directly. ( Not Sure if this is achievable )
    2. 


    3. Download the mp4 on the device with the help of a link and then use some code to convert that mp4 to mp3.
    4. 


    


    I also tried some solutions which are available online

    


    https://github.com/tanersener/mobile-ffmpeg

    


    I tried the above library to achieve the final goal. But got Async command execution failed with returnCode=1. This error in the code I am using is

    


        private class Mp4ToMp3ConverterTask extends AsyncTask {

    @Override
    protected String doInBackground(String... params) {
        String mp4FilePath = params[0];
        String mp3OutputPath = Environment.getExternalStorageDirectory().getAbsolutePath() + "/output.mp3";

        String[] ffmpegCommand = {"-i", mp4FilePath, "-vn", "-ar", "44100", "-ac", "2", "-b:a", "192k", mp3OutputPath};


        Config.enableStatisticsCallback(new StatisticsCallback() {
            public void apply(Statistics newStatistics) {
                Log.d("Dekh", String.format("frame: %d, time: %d", newStatistics.getVideoFrameNumber(), newStatistics.getTime()));
            }
        });

        long executionIdd = FFmpeg.executeAsync(ffmpegCommand, new ExecuteCallback() {

            @Override
            public void apply(final long executionId, final int returnCode) {
                if (returnCode == RETURN_CODE_SUCCESS) {
                    Log.i("Dekh", "Async command execution completed successfully.");
                } else if (returnCode == RETURN_CODE_CANCEL) {
                    Log.i("Dekh", "Async command execution cancelled by user.");
                } else {
                    Log.i("Dekh", String.format("Async command execution failed with returnCode=%d.", returnCode));
                }
            }
        });

        FFmpeg.cancel(executionIdd);

        return mp3OutputPath;
    }
}


    


    Solution number 2 which I used is

    


    https://androidprogrammatically425516919.wordpress.com/2020/04/21/how-to-convert-video-to-audio-in-android-programmatically/

    


    But I got an error here also Failed to instantiate extractor. and another error is java.io.FileNotFoundException : open failed : EISDIR (Is a directory)
I tried the online available solution to solve these errors but nothing worked. Such as granting write permission. Providing a valid location to save the output.

    


    But nothing work so far. Please help me on this. Thank you

    


  • Error at the stage initialization ffmpeg

    13 juin 2017, par Sasha Tsvigun

    I am developing an ios application to display an online stream through a rtsp link from IP cameras using the FFMPEG library. I’ve successfully added all the libraries and headers, successfully built the project. But at the initialization stage of the ffmpeg framework, when calling the function av_register_all () ; in the DidFinishLaunchingOutNOptions method, I get the following error.

    "_av_register_all", referenced from:
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    enter image description here

    If the function is commented - there is no error and the project is successfully started

    I understand that the problem is not great, but I can not solve it on my own. Maybe someone will tell how to solve it ?
    Thanks for any advice !

  • yuv420p pixel format in GStreamer ?

    5 août 2022, par cubecubed

    I am trying to stream a video from opencv/python to rtsp-simple-server via GStreamer. I am able to view the video fine in vlc, but the online streaming application I am using is very picky. I need the stream to have a pixel format of yuv420p. How do I convert a stream to this format with GStreamer ?

    


    This is my current code which creates a stream with the yuv444p :

    


    out = cv2.VideoWriter('appsrc ! videoconvert' + \
' ! x264enc speed-preset=ultrafast bitrate=600 key-int-max=40' + \
' ! rtspclientsink location=rtsp://localhost:554/video',
cv2.CAP_GSTREAMER, 0, fps, (width, height), True)


    


    I am looking for the GStreamer equivalent of -pix_fmt yuv420p