Recherche avancée

Médias (0)

Mot : - Tags -/organisation

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (34)

  • Configuration spécifique d’Apache

    4 février 2011, par

    Modules spécifiques
    Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
    Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
    Création d’un (...)

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

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

Sur d’autres sites (6359)

  • FFprobe command in a var in IF statement

    28 octobre 2017, par bdrilling33

    I am trying to set up a batch file (currently testing in CMD prompt) to run when there is a change in the directory. I have a command stored in a variable "test" which tells me what the first audio codec is. if it isn’t aa3 i plan to re encode the audio with ffmpeg. My first issue is that when i try to run a simple if statement with my var, i get an error.

    set test=ffprobe -v error -select_streams a:0 -show_entries stream=codec_name -of default=nokey=1:noprint_wrappers=1 "my movie (2017).mkv"

    when i run %test% it returns what is expected.

    if i run this as :

    if %test% == "ac3" echo true

    i get :

    -v was unexpected at this time.

    my end goal is to have something like this when something is added to the folder (haven’t go the when something changes part yet...probably just run this once a day idk) :

    set test=ffprobe -v error -select_streams a:0 -show_entries stream=codec_name -of default=nokey=1:noprint_wrappers=1 "%f"

    set outpath=S:\Blu Ray\New folder\"%f"

    for %f in (*.mkv) DO
       if %test% <> "ac3" (
           ffmpeg -i “%f” -vcodec copy -scodec copy -acodec ac3 -b:a 640k “%outpath%";
    del "%f";
    move "%outpath%" "s:\Blu Ray\")

    any help would be great

    BD

  • checkasm : use perf API on Linux ARM*

    1er septembre 2017, par Clément Bœsch
    checkasm : use perf API on Linux ARM*
    

    On ARM platforms, accessing the PMU registers requires special user
    access permissions. Since there is no other way to get accurate timers,
    the current implementation of timers in FFmpeg rely on these registers.
    Unfortunately, enabling user access to these registers on Linux is not
    trivial, and generally involve compiling a random and unreliable github
    kernel module, or patching somehow your kernel.

    Such module is very unlikely to reach the upstream anytime soon. Quoting
    Robin Murphin from ARM :

    > Say you do give userspace direct access to the PMU ; now run two or more
    > programs at once that believe they can use the counters for their own
    > "minimal-overhead" profiling. Have fun interpreting those results...
    >
    > And that's not even getting into the implications of scheduling across
    > different CPUs, CPUidle, etc. where the PMU state is completely beyond
    > userspace's control. In general, the plan to provide userspace with
    > something which might happen to just about work in a few corner cases,
    > but is meaningless, misleading or downright broken in all others, is to
    > never do so.

    As a result, the alternative is to use the Performance Monitoring Linux
    API which makes use of these registers internally (assuming the PMU of
    your ARM board is supported in the kernel, which is definitely not a
    given...).

    While the Linux API is obviously cross platform, it does have a
    significant overhead which needs to be taken into account. As a result,
    that mode is only weakly enabled on ARM platforms exclusively.

    Note on the non flexibility of the implementation : the timers (native
    FFmpeg vs Linux API) are selected at compilation time to prevent the
    need of function calls, which would result in a negative impact on the
    cycle counters.

    • [DH] configure
    • [DH] tests/checkasm/checkasm.c
    • [DH] tests/checkasm/checkasm.h
  • passing additional values to s3 event notification for lambda consumption

    8 septembre 2017, par user1790300

    I have to write code in react-native that allows a user to upload videos to amazon s3 to be transcoded for consumption by various devices. For the processing after the upload occurs ; I am reviewing two approaches :

    1) I can use Lambda with ffmpeg to handle the transcoding immediately after the uploading occurs (my fear here would be the amount of time required to transcode the videos and the effect on pricing if it takes a considerable amount of time).

    2) I can have s3 pass an sns message to a rest api after the created event occurs and the rest api generate a rabbitmq message that will be processed by worker that will perform the transcoding using ffmpeg.

    Option 1) seems to be the preferable option based on a completion time perspective. How concerned should I be with using 1) considering how long video transcoding might take as opposed to option 2) ?

    Also, regardless, I need a way to pass additional parameters to lambda or along the sns messaging that would allow me to somehow associate the user who uploaded the video with their account. Is there a way to pass additional text-based values to s3 to pass along to lambda or along sns when the upload completes, as a caveat I plan to upload the video directly to s3 using the rest layer(found this answer here : http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPUT.html#RESTObjectPUT-responses-examples) ?