Recherche avancée

Médias (1)

Mot : - Tags -/epub

Autres articles (31)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

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

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (5660)

  • What is the most suitable H265 setting converting from H264 on ffmpeg ?

    9 juin 2017, par minion007

    Currently, I was trying to convert my videos no matter personal videos or movies from H264 to H265. But that was much harder than what I expected.

    Firstly, it took me over 10 hours to build ffmpeg on Linux and I believe I’m still having some problems on dealing with this.

    Secondly, I notice there is degradation after converting by using the setting or parameters from Internet or ffmpeg official website. On the other hand, the video size would be the same or even bigger than the original video size if I use small crf like 23 or 28.

    For instance, sudo ffmpeg -i input.mp4 -c:v hevc -x265-params lossless -preset medium -crf 30 -c:a copy output.mkv

    sudo ffmpeg -i input.mp4 -c:v libx265 -x265-params lossless -preset medium -crf 30 -c:a copy output.mkv

    the above two settings give me the very small video size (between 21% 23% of the original video) which is the main reason why I want to convert my videos to H265 but drawback would be the quality of converted video is worse than the original video (I would may be between 30% 35% degradation).

    Thirdly, the size of video would be much bigger than the original size of video if I use the lossless parameter.

    sudo ffmpeg -i input.mp4 -c:v libx265 -x265-params lossless=1 -preset medium -crf 30 -c:a copy output.mkv

    the above setting can keep the quality of the original video but size would be huge (above 200% of original video).

    Is there any suggestion ?

  • OpenFaas. Write python function with FFmpeg using

    11 août 2021, par Валентин Никин

    I need to write OpenFaas function which can accept binary file as parameter. This function will extract some data from that binary file. Based on that data function will generate ffmpeg command. And finally function must be call ffmpeg to process generated command and return file as output.

    


    Function language must be python, because I need to use some python modules to process input binary file.

    


    The main questions :

    


      

    1. Can I accept binary a file as function parameter (in python function) ?
    2. 


    3. Can I call ffmpeg from python function, and return binary file as output ?
    4. 


    


    I have already met with alexellis official example (https://github.com/alexellis/openfaas-streaming-templates) but that example used bash language.

    


    I have one idea, but I don't know is it correct.
Maybe I can use example with bash, to accept binary file as parameter, then I call python script, after that I call ffmpeg, and return file as output as described in the example.
But I need some python modules available with pip. So, I don't know how I can got this.

    


    I'm newest in OpenFaas, so any idea would be appriciated

    


  • MobileFFMPEG Output file #0 does not contain any stream

    30 septembre 2020, par Alhaj

    I am using implementation 'com.arthenica:mobile-ffmpeg-full:4.4'

    


    I just want o crop audio file to 10 second to 20 second

    


    '''
fun cropAudio(input :String)

    


        val newFileName = UUID.randomUUID().toString()

    val location: String = getBatchDirectoryName()!!

    val output: String = location + "/" + newFileName + ".mp3"

    val temp=" -i $input -ss 60 -to 70 $output"

    Log.e("alhaj", " a $s")

    FFmpeg.execute(temp, object : ExecuteCallback {

        fun onSuccess(message: String?) {
            uploadOnFirebase(output, title)
            mediaPlayer.stop()
            Log.e("alhaj", message!!)
        }

        override fun apply(executionId: kotlin.Long, returnCode: Int) {
            if (returnCode == RETURN_CODE_SUCCESS) {
                Log.i("alhaj", "Async command execution completed successfully.");
            } else if (returnCode == RETURN_CODE_CANCEL) {
                Log.i("alhaj", "Async command execution cancelled by user.");
            } else {
                Log.i("alhaj", String.format("Async command execution failed with rc=%d.", returnCode));
            }
        }
    }.toString())
}


    


    '''

    


    but i am getting error

    


    '''

    


    2020-09-30 03:13:41.079 10300-10410/com.example.touchmeadmin I/mobile-ffmpeg : Output #0, mp3, to ' -i /storage/emulated/0/AJ backup/songs/Maroon 5 - Memories (Official Video) ( 256kbps cbr ).mp3 -ss 60 -to 70 /storage/emulated/0/Android/data/com.example.touchmeadmin/files/Music/830350fd-5218-4ee0-bd99-0dd50b802930.mp3' :
2020-09-30 03:13:41.079 10300-10410/com.example.touchmeadmin E/mobile-ffmpeg : Output file #0 does not contain any stream

    


    '''