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 (14487)

  • 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


    


  • doc/muxers.texi : fix build issue for unknown command

    18 avril 2021, par Guo, Yejun
    doc/muxers.texi : fix build issue for unknown command
    

    The build log :
    ** Unknown command `@code' (left as is) (in src/doc/muxers.texi l. 2020)
    *** '' without macro. Before : -map option with the ffmpeg CLI tool. (in src/doc/muxers.texi l. 2020)
    *** '' without opening '' before : option with the ffmpeg CLI tool. (in src/doc/muxers.texi l. 2020)

    • [DH] doc/muxers.texi
  • PySceneDetect FFmpeg Not Available

    14 août 2023, par Dmitriy Pushkarev

    I already installed FFmpeg and this is available in terminal I can convert video and etc, but it's completely not available in PySceneDetect.

    


    pip installed FFmpeg-python and FFmpeg library and FFmpeg itself in system.

    


    PySceneDetect returns :

    


    ffmpeg could not be found on the system. Please install ffmpeg to enable video output support.


    


    I think trouble with path, but can't put path in PySceneDetect. I can use path to binary FFmpeg, only in ffmpeg-python library, like this and it's working

    


    This code working fine :

    


    Here i using only FFmpeg-python library

    


    stream = ffmpeg.input('vi0.mp4')
stream = ffmpeg.filter(stream, 'fps', fps=10, round='up')
stream = ffmpeg.output(stream, 'vi1.mp4')
ffmpeg.run(stream,cmd='./ffmpeg')


    


    But can't it to get work with PySceneDetect

    


    print(scenedetect.video_splitter.is_ffmpeg_available())


    


    return False

    


    split_video_ffmpeg(video_path, scene_list, show_progress=False)


    


    returns "ffmpeg could not be found on the system. Please install ffmpeg to enable video output support."