Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (81)

  • Modifier la date de publication

    21 juin 2013, par

    Comment changer la date de publication d’un média ?
    Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
    Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
    Dans la rubrique "Champs à ajouter, cocher "Date de publication "
    Cliquer en bas de la page sur Enregistrer

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

Sur d’autres sites (9244)

  • cmdutils & opencl : add -opencl_bench option to test and show available OpenCL devices

    9 décembre 2013, par Lenny Wang
    cmdutils & opencl : add -opencl_bench option to test and show available OpenCL devices
    

    Reviewed-by : Wei Gao <highgod0401@gmail.com>
    Reviewed-by : Stefano Sabatini <stefasab@gmail.com>
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] Makefile
    • [DH] cmdutils.c
    • [DH] cmdutils.h
    • [DH] cmdutils_common_opts.h
    • [DH] cmdutils_opencl.c
    • [DH] doc/APIchanges
    • [DH] doc/fftools-common-opts.texi
    • [DH] doc/utils.texi
    • [DH] libavutil/opencl.c
    • [DH] libavutil/opencl.h
    • [DH] libavutil/version.h
  • 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

    &#xA;

    Getting this error message while running the command :

    &#xA;

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

    &#xA;

    here is the complete code :

    &#xA;

    private void convertVideo() {&#xA;        String inputPath = "/storage/emulated/0/Download/video.mp4";&#xA;        String outputPath = "/storage/emulated/0/Download/output.m3u8";&#xA;        final String command = "-y -i "&#x2B; inputPath &#x2B;" -ar 22050 -hls_list_size 1000000 -hls_time 2 -s 640x360 " &#x2B; outputPath;&#xA;        FFmpeg.executeAsync(command, new ExecuteCallback() {&#xA;            @Override&#xA;            public void apply(long executionId, int returnCode) {&#xA;&#xA;                if (returnCode == RETURN_CODE_SUCCESS) {&#xA;                    Log.i(TAG, "Command execution completed successfully.");&#xA;                } else if (returnCode == RETURN_CODE_CANCEL) {&#xA;                    Log.i(TAG, "Command execution cancelled by user.");&#xA;                } else {&#xA;                    Log.i(TAG, String.format("Command execution failed with rc=%d and the output below.", returnCode));&#xA;                    Config.printLastCommandOutput(Log.INFO);&#xA;                }&#xA;            }&#xA;        });&#xA;&#xA;    }&#xA;

    &#xA;

    here is output log :

    &#xA;

    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&#xA;2020-08-28 07:05:59.448 10725-10820 E/mobile-ffmpeg: [h264_v4l2m2m @ 0xcb442c00] can&#x27;t configure encoder&#xA;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&#xA;2020-08-28 07:05:59.463 10725-10820 I/mobile-ffmpeg: Conversion failed!&#xA;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&#xA;

    &#xA;

  • ffmpeg C API (libswscale) : Scale a frame into an output frame with given width/height preserving aspect ratio, fill out the rest with transparency

    12 juin 2015, par nik4emniy

    Note : I need to use ffmpeg’s C API in my project.
    Input : video(let’s say,first frame)/image, output_width, output_height
    Output : PNG image with output_width/output_height.

    What I’ve done so far :

    a) decoded a frame from input into frame1

    b) sws_scale frame1 with needed context (output_width, output_height) into frame2

    c) initialized AVCodec CODEC_ID_PNG

    d) encoded frame2 into initialized AVPacket

    e) wrote AVPacket’s data into file

    So I have a working cycle that produces a PNG image, but it doesn’t save the aspect ratio (obviously).
    What I want to achieve is do the same thing preserving aspect ratio (which would change the frame2’s width||height), but then "centring" that image and filling out the "empty" parts with tranparent layer in the final PNG.

    Does anyone have an idea on how this can be achieved ?
    Again, I need to use C API, not command line.