Recherche avancée

Médias (0)

Mot : - Tags -/metadatas

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

Autres articles (106)

  • 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

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (21189)

  • avfilter/avf_showcqt : cqt_calc optimization on x86

    4 juin 2016, par Muhammad Faiz
    avfilter/avf_showcqt : cqt_calc optimization on x86
    

    on x86_64 :
    time PSNR
    plain 3.303 inf
    SSE 1.649 107.087535
    SSE3 1.632 107.087535
    AVX 1.409 106.986771
    FMA3 1.265 107.108437

    on x86_32 (PSNR compared to x86_64 plain) :
    time PSNR
    plain 7.225 103.951979
    SSE 1.827 105.859282
    SSE3 1.819 105.859282
    AVX 1.533 105.997661
    FMA3 1.384 105.885377

    FMA4 test is not available

    Reviewed-by : James Almer <jamrial@gmail.com>
    Signed-off-by : Muhammad Faiz <mfcc64@gmail.com>

    • [DH] libavfilter/avf_showcqt.c
    • [DH] libavfilter/avf_showcqt.h
    • [DH] libavfilter/x86/Makefile
    • [DH] libavfilter/x86/avf_showcqt.asm
    • [DH] libavfilter/x86/avf_showcqt_init.c
  • AWS lambda SAM deploy error - Template format error : Unresolved resource dependencies

    1er juin 2022, par mozenge

    I have am trying to deploy an aws lambda function using the SAM cli. I have some layers defined in the sam template. Testing locally using sam local start-api works quite well. The but deploying using the sam deploy --guided command throws the following error&#xA;Error: Failed to create changeset for the stack: sam-app, ex: Waiter ChangeSetCreateComplete failed: Waiter encountered a terminal failure state: For expression "Status" we matched expected path: "FAILED" Status: FAILED. Reason: Template format error: Unresolved resource dependencies [arn:aws:lambda:us-west-1:338231645678:layer:ffmpeg:1] in the Resources block of the template

    &#xA;

    The SAM template is as follows

    &#xA;

    AWSTemplateFormatVersion: &#x27;2010-09-09&#x27;&#xA;Transform: AWS::Serverless-2016-10-31&#xA;Description: >&#xA;  video-processor-functions&#xA;&#xA;  Functions to generate gif and thumbnail from uploaded videos&#xA;  &#xA;# More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst&#xA;Globals:&#xA;  Function:&#xA;    Timeout: 3&#xA;    Tracing: Active&#xA;&#xA;Resources:&#xA;  VideoProcessorFunctions:&#xA;    Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction&#xA;    Properties:&#xA;      CodeUri: src/&#xA;      Handler: app.lambdaHandler&#xA;      Runtime: nodejs14.x&#xA;      # timeout in seconds - 2 minutes&#xA;      Timeout: 120&#xA;      Layers:&#xA;        - !Ref VideoProcessorDepLayer&#xA;        - !Ref arn:aws:lambda:us-west-1:338231645678:layer:ffmpeg:1&#xA;      Architectures:&#xA;        - x86_64&#xA;      Events:&#xA;        HelloWorld:&#xA;          Type: Api # More info about API Event Source: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api&#xA;          Properties:&#xA;            Path: /hello&#xA;            Method: get&#xA;&#xA;  VideoProcessorDepLayer:&#xA;    Type: AWS::Serverless::LayerVersion&#xA;    Properties:&#xA;      LayerName: mh-video-processor-dependencies&#xA;      Description: Dependencies for sam app [video-processor-functions]&#xA;      ContentUri: dependencies/&#xA;      CompatibleRuntimes:&#xA;        - nodejs14.17&#xA;      LicenseInfo: &#x27;MIT&#x27;&#xA;      RetentionPolicy: Retain&#xA;&#xA;Outputs:&#xA;  # ServerlessRestApi is an implicit API created out of Events key under Serverless::Function&#xA;  # Find out more about other implicit resources you can reference within SAM&#xA;  # https://github.com/awslabs/serverless-application-model/blob/master/docs/internals/generated_resources.rst#api&#xA;  HelloWorldApi:&#xA;    Description: "API Gateway endpoint URL for Prod stage for Hello World function"&#xA;    Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/hello/"&#xA;  VideoProcessorFunctions:&#xA;    Description: "Generate GIF and Thumnail from Video"&#xA;    Value: !GetAtt VideoProcessorFunctions.Arn&#xA;  VideoProcessorFunctionsIamRole:&#xA;    Description: "Implicit IAM Role created for MH Video Processor function"&#xA;    Value: !GetAtt VideoProcessorFunctionsRole.Arn&#xA;&#xA;

    &#xA;

    Any ideas what i'm doing wrong ?

    &#xA;

  • How can I remove downloaded video file after merging video and audio ?

    11 mai 2019, par Locke Jet

    I downloaded 1080p video from youtube using youtube-dl. Video file (.f137.mp4) and audio files (f140.m4a) were downloaded. Them ffmpeg merged the video file and the audio file to mp4 file(.mp4). I want to keep the .f140.m4a file and the .mp4 file, while remove the f137.mp4 file. How can I do ?

    I tried the —exec option in the youtube-dl, but it failed.

    These were my commands :

    root@OMV:~/youtube-dl# cat dl-test.sh
    DL_DIR="/srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007"
    ALBUM="Test"
    mkdir -p "$DL_DIR/$ALBUM"
    youtube-dl --batch-file  /root/youtube-dl/url-test.list --download-archive /root/youtube-dl/archive-test.list                           \
    -f  'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio'                                 \
    --write-sub --embed-sub --all-subs                                                              \
    --embed-thumbnail --add-metadata                                                                \
    -o "$DL_DIR/$ALBUM/%(title)s.%(ext)s"                                                           \
    --exec "rm "$(ls {} | cut -d . -f1)""

    The result were :

    root@OMV:~/youtube-dl# ./dl-test.sh
    ls: cannot access '{}': No such file or directory
    ...
    [ffmpeg] Merging formats into "/srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test/UpTown Spot.mp4"
    ...
    [atomicparsley] Adding thumbnail to "/srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test/UpTown Spot.mp4"
    [exec] Executing command: rm  '/srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test/UpTown Spot.mp4'

    The .mp4 file was deleted, the .f137.mp4 file was still there. I got the opposite result.

    root@OMV:~/youtube-dl# ls '/srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test'
    UpTown Spot.f137.mp4  UpTown Spot.f140.m4a

    Update 1 :
    I changed to

    --exec "rm "$(ls {} -1 | sed -n '/\.f[0-9]*\.mp4$/p')""

    It still remove the .mp4 file. The output was :

    root@OMV:~/youtube-dl# echo "" > "/root/youtube-dl/archive-test.list"
    root@OMV:~/youtube-dl# ./dl-test.sh
    ls: cannot access '{}': No such file or directory
    ...
    [download] /srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test/UpTown Spot.mp4 has already been downloaded and merged
    ...
    [exec] Executing command: rm  '/srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test/UpTown Spot.mp4'

    Then changed it into :

    --exec "rm "$(ls -1 | sed -n '/\.f[0-9]*\.mp4$/p')""

    The ouput was almost the same :

    root@OMV:~/youtube-dl# ./dl-test.sh
    ...
    [exec] Executing command: rm  '/srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test/UpTown Spot.mp4'

    I tested the normal expression in SHELL, it worked :

    root@OMV:~/youtube-dl# cd /srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test
    root@OMV:/srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test# ls "$(ls  /srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test | sed -n '/\.f[0-9]*\.mp4$/p')"
    UpTown Spot.f137.mp4
    root@OMV:/srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test# rm "$(ls  /srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test | sed -n '/\.f[0-9]*\.mp4$/p')"

    But the similar command running in the youtube-dl —exec option failed !

    Update 2 :
    It seemed that the cmd after pipeline would not be executed.

    root@OMV:~/youtube-dl# ./dl-test.sh
    + DL_DIR=/srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007
    + ALBUM=Test
    + mkdir -p /srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test
    + youtube-dl --batch-file /root/youtube-dl/url-test.list --download-archive /root/youtube-dl/archive-test.list -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' --write-sub --embed-sub --all-subs --embed-thumbnail --add-metadata -o '/srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test/%(title)s.%(ext)s' --exec 'ls | grep mp4'
    ...
    [exec] Executing command: ls | grep mp4 '/srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test/UpTown Spot.mp4'
    Binary file /srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test/UpTown Spot.mp4 matches
    ls: write error: Broken pipe