Recherche avancée

Médias (1)

Mot : - Tags -/sintel

Autres articles (73)

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (7686)

  • ffmpeg progress is freezing frames when scene change

    19 août 2017, par Karol

    I’m capturing data from IP camera with RTSP protocol with ffmpeg with command :

    ffmpeg -rtsp_transport tcp -progress /media/kamip/stats.txt -i rtsp://192.168.1.220:554/live/h264/ch0
    -c:v copy -c:a copy -strict 1 -map 0 -f segment -strftime 1
    -segment_time 1800 /media/kamip/cam_%d_%m_%Y_%H_%M_%S.mkv

    I’m using this for 5 cameras. One is different type and it is in different location.
    Because ffmpeg does not support reconnect I’m writing status to /media/kamip/stats.txt file. In another script I’m parsing this output and every 30 seconds I’m checking if frame number changed, if yes - it is ok, if not, I’m restarting above command.

    The problem is only in the night. When is quite dark and suddenly lights on, for example when car is parking, the /media/kamip/stats.txt is showing the same frame number, so my script is recognizing this as a lost connection (video freeze)

    I tried "-strict 1" option and I think it is better (one false alarm per day instead of 10 per day), so I think this may be related to ffmpeg, not camera/video source, especially because the video is fine even frame number reported by ffmpeg is still the same. Also VLC does not have this kind of problem (but I cannot use it currently for this camera)

    I found that ffmpeg has build-in scene change detector, but it should works only when encoding video (I’m using "copy" option for audio and video) ?

    I’m thinking about different way of analyzing the video capturing, but this "-progress" in ffmpeg should works fine - and it is working fine for other cameras for few years).

    I also do not see any errors,
    when I encoded one cutted file with "-loglevel debug" I saw only information like below :

    [libx264 @ 0x25d77a0] scene cut at 174 Icost:2049115 Pcost:2006553
    ratio:0.0208 bias:0.1387 gop:54 (imb:3186 pmb:168)

    ffmpeg in latest version

    ffmpeg version 3.3.3-1ubuntu1~16.04.york0 Copyright (c) 2000-2017 the FFmpeg developers
    built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609

    any help will be appreciated

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

  • 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