Recherche avancée

Médias (91)

Autres articles (83)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

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

  • ffmpeg is not working while uploading file using uploadify

    21 janvier 2016, par Ranjith

    for a particular video i tried like this, and it worked

    exec('/usr/bin/ffmpeg -i /home/xxxxxx/public_html/test/video1.mp4  /home/xxxxxxx/public_html/test/video1.flv');

    but for uploadify i write code like this ,

    <?php

    if (!empty($_FILES)) {
    $userId=$_SESSION["user_userid"];
    $filename = $_FILES['Filedata']['name'];
    $filetmpname = $_FILES['Filedata']['tmp_name'];
    $fileType = $_FILES["Filedata"]["type"];
    $fileSizeMB = ($_FILES["Filedata"]["size"] / 1024 / 1024);
    $folder=$_REQUEST['folder'];

    exec("/usr/bin/ffmpeg -i"."/home/xxxxxx/public_html/private/".$folder."/".$filename." "."/home/xxxxxx/public_html/private/".$folder."/".$filename.".flv");

    }elseif($_POST['d']){
    $filename = $_POST['d'];
    $folder=$_REQUEST['folder'];
    $dFile = $folder.$filename;
    if(file_exists($dFile)){
       unlink($dFile);
    }
    }
    ?>

    this code is not converting the uploaded file.
    help me please.

    thanks

  • How to concat videos that have different colour spaces ?

    17 avril 2023, par Ham789

    enter image description hereI writing a Python program that uses subprocess to automate ffmpeg. The program concatenates many videos together with the concat filter. The problem I have is that the colour of some of the videos is very washed out in the final output. I believe this is because the videos have different colour spaces. Some are B.709 and some are B.2020. The B.2020 videos are washed out.

    


    I have tried converting the B.2020 videos to B.709 before concatenating by using the following command on each video but the outputs are still washed out :

    


    ffmpeg -i input.mov -vf colorspace=all=bt709:iall=bt2020:fast=1 output.mov


    


    It wasn't clear to me which way round the arguments should go so I also tried switching the bt2020 and bt709 terms but they still look washed out but with more saturation.

    


    Is this the right approach ? Am I missing some other arguments in order to convert the B.2020 videos to B.709 while preserving their colour ?

    


    I have attached a side by side of the original and converted video.

    


    The metadata of the videos I am trying to concat are :

    


    Video 1

    


      

    • color_range=tv
    • 


    • color_space=bt709
    • 


    • color_transfer=bt709
    • 


    • color_primaries=bt709
    • 


    


    Video 2

    


      

    • color_range=tv
    • 


    • color_space=bt2020nc
    • 


    • color_transfer=arib-std-b67
    • 


    • color_primaries=bt2020
    • 


    


  • Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

    28 août 2020, par bbdangar

    I am using this library : com.arthenica:mobile-ffmpeg-full:4.4

    


    Getting this error message while running the command :

    


    final String command = "-y -i "+ inputPath +" -ar 22050 -hls_list_size 1000000 -hls_time 2 -s 640x360 " + outputPath;


    


    here is the complete code :

    


    private void convertVideo() {
        String inputPath = "/storage/emulated/0/Download/video.mp4";
        String outputPath = "/storage/emulated/0/Download/output.m3u8";
        final String command = "-y -i "+ inputPath +" -ar 22050 -hls_list_size 1000000 -hls_time 2 -s 640x360 " + outputPath;
        FFmpeg.executeAsync(command, new ExecuteCallback() {
            @Override
            public void apply(long executionId, int returnCode) {

                if (returnCode == RETURN_CODE_SUCCESS) {
                    Log.i(TAG, "Command execution completed successfully.");
                } else if (returnCode == RETURN_CODE_CANCEL) {
                    Log.i(TAG, "Command execution cancelled by user.");
                } else {
                    Log.i(TAG, String.format("Command execution failed with rc=%d and the output below.", returnCode));
                    Config.printLastCommandOutput(Log.INFO);
                }
            }
        });

    }


    


    here is output log :

    


    2020-08-28 07:05:59.355 10725-10820 W/mobile-ffmpeg: [graph 0 input from stream 0:0 @ 0xe2306c80] sws_param option is deprecated and ignored
2020-08-28 07:05:59.448 10725-10820 E/mobile-ffmpeg: [h264_v4l2m2m @ 0xcb442c00] can't configure encoder
2020-08-28 07:05:59.448 10725-10820 E/mobile-ffmpeg: Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
2020-08-28 07:05:59.463 10725-10820 I/mobile-ffmpeg: Conversion failed!
2020-08-28 07:05:59.465 10725-10725 I/mobile-ffmpeg: ffmpeg version v4.4-dev-416 Copyright (c) 2000-2020 the FFmpeg developers