Recherche avancée

Médias (1)

Mot : - Tags -/framasoft

Autres articles (37)

  • Initialisation de MediaSPIP (préconfiguration)

    20 février 2010, par

    Lors de l’installation de MediaSPIP, celui-ci est préconfiguré pour les usages les plus fréquents.
    Cette préconfiguration est réalisée par un plugin activé par défaut et non désactivable appelé MediaSPIP Init.
    Ce plugin sert à préconfigurer de manière correcte chaque instance de MediaSPIP. Il doit donc être placé dans le dossier plugins-dist/ du site ou de la ferme pour être installé par défaut avant de pouvoir utiliser le site.
    Dans un premier temps il active ou désactive des options de SPIP qui ne le (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (7657)

  • avcodec/[e]ac3enc : Make encoders init-threadsafe, fix race

    3 décembre 2020, par Andreas Rheinhardt
    avcodec/[e]ac3enc : Make encoders init-threadsafe, fix race
    

    ff_eac3_exponent_init() set values twice when initializing a static
    table ; ergo the initialization code must not run concurrently with
    a running EAC-3 encoder. Yet this code is executed every time an EAC-3
    encoder is initialized. So use ff_thread_once() for this and also for a
    similar initialization performed for all AC-3 encoders to make them all
    init-threadsafe.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavcodec/ac3enc.c
    • [DH] libavcodec/ac3enc_fixed.c
    • [DH] libavcodec/ac3enc_float.c
    • [DH] libavcodec/eac3enc.c
  • avcodec/pthread_slice : Don't use static variable, fix race

    28 novembre 2020, par Andreas Rheinhardt
    avcodec/pthread_slice : Don't use static variable, fix race
    

    ff_slice_thread_init() uses a static variable to hold a function
    pointer, although the value of said pointer needn't be saved between
    different runs of this function at all.

    The reason for this being so is probably that said pointer points to
    a static function (if used) ; but storage class specifiers like "static"
    are not part of the type of an object and so including it in the pointer
    declaration is wrong (anyway, "static" means different things in both
    contexts : for the function declaration it affects linkage, for the
    variable storage duration).

    Using a static variable here can lead to races, e.g. when initializing
    VP9 (for which said function pointer was added) and H.264 with slice
    threading. The latter has the FF_CODEC_CAP_INIT_THREADSAFE flag set and
    is therefore unaffected by the lock guarding initializations of
    decoders.

    Reviewed-by : Anton Khirnov <anton@khirnov.net>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavcodec/pthread_slice.c
  • ffmpeg errors in the daemon

    3 octobre 2020, par smoto_shei

    I created a shell script to compress a video using ffmpeg(4.3.1).

    &#xA;

    ffmpeg -y -i \&#xA; &#x27;/var/www/System/Backend/Outputs/TempSaveMovie/200703_4_short_5fr_p2(100_20)_r(50_20).mp4&#x27; \&#xA; -vcodec h264 -an \&#xA; &#x27;/var/www/System/Backend/Outputs/MovieOutputs/200703_4_short_5fr_p2(100_20)_r(50_20).mp4&#x27;&#xA;&#xA;

    &#xA;

    If you run this code from the console, it will run without problems.&#xA;In fact, we're using the python subscript.call() to execute it. It works fine too.

    &#xA;

    cmd = &#x27;sh /var/www/System/Backend/cv2toffmpeg.sh&#x27;&#xA;subprocess.call(cmd, shell=True)&#xA;

    &#xA;

    Secondly, if I run it from a daemonized python program, I'll get an error. I get the following error.&#xA;You'll get an error like this

    &#xA;

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;./Outputs/TempSaveMovie/200703_4_short_5fr_p2(100_20)_r(50_20).mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2mp41&#xA;    encoder         : Lavf58.35.100&#xA;  Duration: 00:00:06.15, start: 0.000000, bitrate: 10246 kb/s&#xA;    Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 10244 kb/s, 13 fps, 13 tbr, 13312 tbn, 13 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (h264_nvenc))&#xA;Press [q] to stop, [?] for help&#xA;[mpeg4 @ 0x55cec17c5480] header damaged&#xA;[mpeg4 @ 0x55cec17c6840] header damaged&#xA;[mpeg4 @ 0x55cec1855f80] header damaged&#xA;[mpeg4 @ 0x55cec1866e00] header damaged&#xA;Output #0, mp4, to &#x27;./Outputs/MovieOutputs/200703_4_short_5fr_p2(100_20)_r(50_20).mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2mp41&#xA;    encoder         : Lavf58.45.100&#xA;    Stream #0:0(und): Video: h264 (h264_nvenc) (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 2000 kb/s, 13 fps, 13312 tbn, 13 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;      encoder         : Lavc58.91.100 h264_nvenc&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 4000000 vbv_delay: N/A&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mpeg4 @ 0x55cec17c8780] header damaged&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mpeg4 @ 0x55cec17c5480] header damaged&#xA;

    &#xA;

    I think the problem is when you run it from a daemonized process. There seems to be a similar problem in the past.&#xA;Ffmpeg does not properly convert videos when run as daemon&#xA;I would like to ask for your help to solve this problem. Thank you for your help from Japan.

    &#xA;