Recherche avancée

Médias (0)

Mot : - Tags -/protocoles

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

Autres articles (30)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (4158)

  • libswscale/aarch64 : add another hscale specialization

    13 août 2022, par Swinney, Jonathan
    libswscale/aarch64 : add another hscale specialization
    

    This specialization handles the case where filtersize is 4 mod 8, e.g.
    12, 20, etc. Aarch64 was previously using the c function for this case.
    This implementation speeds up that case significantly.

    hscale_8_to_15__fs_12_dstW_512_c : 6234.1
    hscale_8_to_15__fs_12_dstW_512_neon : 1505.6

    Signed-off-by : Jonathan Swinney <jswinney@amazon.com>
    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] libswscale/aarch64/hscale.S
    • [DH] libswscale/aarch64/swscale.c
  • ffmpeg + AWS Lambda issues. Won't compress full video

    7 juillet 2022, par Joesph Stah Lynn

    So I followed this tutorial to set everything up, and changed the function a bit to compress video, but no matter what I try, on larger videos (basically anything over 50-100MB), the output file will always be cut short, and depending on the encoding settings I'm using, will be cut by different amounts. I tried using the solution found here, adding a -nostdin flag to my ffmpeg command, but that also didn't seem to fix the issue.
    &#xA;Another odd thing, is no matter what I try, if I remove the '-f mpegts' flag, the output video will be 0B.
    &#xA;My Lambda function is set up with 3008MB of Memory (submitted a ticket to get my limit upped so I can use the full 10240MB available), and 2048MB of Ephemeral storage (I honestly am not sure if I need anything more than the minimum 512, but I upped it to try and fix the issue). When I check my cloudwatch logs, on really large files, it will occasionally time out, but other than that, I will get no error messages, just the standard start, end, and billable time messages.

    &#xA;

    This is the code for my lambda function.

    &#xA;

    import json&#xA;import os&#xA;import subprocess&#xA;import shlex&#xA;import boto3&#xA;&#xA;S3_DESTINATION_BUCKET = "rw-video-out"&#xA;SIGNED_URL_TIMEOUT = 600&#xA;&#xA;def lambda_handler(event, context):&#xA;&#xA;    s3_source_bucket = event[&#x27;Records&#x27;][0][&#x27;s3&#x27;][&#x27;bucket&#x27;][&#x27;name&#x27;]&#xA;    s3_source_key = event[&#x27;Records&#x27;][0][&#x27;s3&#x27;][&#x27;object&#x27;][&#x27;key&#x27;]&#xA;&#xA;    s3_source_basename = os.path.splitext(os.path.basename(s3_source_key))[0]&#xA;    s3_destination_filename = s3_source_basename &#x2B; "-comp.mp4"&#xA;&#xA;    s3_client = boto3.client(&#x27;s3&#x27;)&#xA;    s3_source_signed_url = s3_client.generate_presigned_url(&#x27;get_object&#x27;,&#xA;        Params={&#x27;Bucket&#x27;: s3_source_bucket, &#x27;Key&#x27;: s3_source_key},&#xA;        ExpiresIn=SIGNED_URL_TIMEOUT)&#xA;&#xA;    ffmpeg_cmd = f"/opt/bin/ffmpeg -nostdin -i {s3_source_signed_url} -f mpegts libx264 -preset fast -crf 28 -c:a copy - "&#xA;    command1 = shlex.split(ffmpeg_cmd)&#xA;    p1 = subprocess.run(command1, stdout=subprocess.PIPE, stderr=subprocess.PIPE)&#xA;    resp = s3_client.put_object(Body=p1.stdout, Bucket=S3_DESTINATION_BUCKET, Key=s3_destination_filename)&#xA;    s3 = boto3.resource(&#x27;s3&#x27;)&#xA;    s3.Object(s3_source_bucket,s3_source_key).delete()&#xA;&#xA;    return {&#xA;        &#x27;statusCode&#x27;: 200,&#xA;        &#x27;body&#x27;: json.dumps(&#x27;Processing complete successfully&#x27;)&#xA;    }&#xA;

    &#xA;

    This is the code from the solution I mentioned, but when I try using this code, I get output.mp4 not found errors

    &#xA;

    def lambda_handler(event, context):&#xA;    print(event)&#xA;    os.chdir(&#x27;/tmp&#x27;)&#xA;    s3_source_bucket = event[&#x27;Records&#x27;][0][&#x27;s3&#x27;][&#x27;bucket&#x27;][&#x27;name&#x27;]&#xA;    s3_source_key = event[&#x27;Records&#x27;][0][&#x27;s3&#x27;][&#x27;object&#x27;][&#x27;key&#x27;]&#xA;&#xA;    s3_source_basename = os.path.splitext(os.path.basename(s3_source_key))[0]&#xA;    s3_destination_filename = s3_source_basename &#x2B; ".mp4"&#xA;&#xA;    s3_client = boto3.client(&#x27;s3&#x27;)&#xA;    s3_source_signed_url = s3_client.generate_presigned_url(&#x27;get_object&#x27;,&#xA;        Params={&#x27;Bucket&#x27;: s3_source_bucket, &#x27;Key&#x27;: s3_source_key},&#xA;        ExpiresIn=SIGNED_URL_TIMEOUT)&#xA;    print(s3_source_signed_url)&#xA;    s3_client.download_file(s3_source_bucket,s3_source_key,s3_source_key)&#xA;    # ffmpeg_cmd = "/opt/bin/ffmpeg -framerate 25 -i \"" &#x2B; s3_source_signed_url &#x2B; "\" output.mp4 "&#xA;    ffmpeg_cmd = f"/opt/bin/ffmpeg -framerate 25 -i {s3_source_key} output.mp4 "&#xA;    # command1 = shlex.split(ffmpeg_cmd)&#xA;    # print(command1)&#xA;    os.system(ffmpeg_cmd)&#xA;    # os.system(&#x27;ls&#x27;)&#xA;    # p1 = subprocess.run(command1, stdout=subprocess.PIPE, stderr=subprocess.PIPE)&#xA;    file = &#x27;output.mp4&#x27;&#xA;    resp = s3_client.put_object(Body=open(file,"rb"), Bucket=S3_DESTINATION_BUCKET, Key=s3_destination_filename)&#xA;    # resp = s3_client.put_object(Body=p1.stdout, Bucket=S3_DESTINATION_BUCKET, Key=s3_destination_filename)&#xA;    s3 = boto3.resource(&#x27;s3&#x27;)&#xA;    s3.Object(s3_source_bucket,s3_source_key).delete()&#xA;    return {&#xA;        &#x27;statusCode&#x27;: 200,&#xA;        &#x27;body&#x27;: json.dumps(&#x27;Processing complete successfully&#x27;)&#xA;    }&#xA;

    &#xA;

    Any help would be greatly appreciated.

    &#xA;

  • lavc/aarch64 : motion estimation functions in neon

    26 juin 2022, par Swinney, Jonathan
    lavc/aarch64 : motion estimation functions in neon
    

    - ff_pix_abs16_neon
    - ff_pix_abs16_xy2_neon

    In direct micro benchmarks of these ff functions verses their C implementations,
    these functions performed as follows on AWS Graviton 3.

    ff_pix_abs16_neon :
    pix_abs_0_0_c : 141.1
    pix_abs_0_0_neon : 19.6

    ff_pix_abs16_xy2_neon :
    pix_abs_0_3_c : 269.1
    pix_abs_0_3_neon : 39.3

    Tested with :
    ./tests/checkasm/checkasm —test=motion —bench —disable-linux-perf

    Signed-off-by : Jonathan Swinney <jswinney@amazon.com>
    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] libavcodec/aarch64/Makefile
    • [DH] libavcodec/aarch64/me_cmp_init_aarch64.c
    • [DH] libavcodec/aarch64/me_cmp_neon.S
    • [DH] libavcodec/me_cmp.c
    • [DH] libavcodec/me_cmp.h
    • [DH] tests/checkasm/Makefile
    • [DH] tests/checkasm/checkasm.c
    • [DH] tests/checkasm/checkasm.h
    • [DH] tests/checkasm/motion.c
    • [DH] tests/fate/checkasm.mak