Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (67)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

Sur d’autres sites (6848)

  • How to start ffprobe with Windows PowerShell

    7 mars 2014, par sebastian

    I am using Zeranoes FFmpeg Builds for Windows and I can start the ff-prompt without installing anything. But how do I start ff-prompt.bat with Windows PowerShell ? I have tried a few things like Invoke-Expression or changing the $env:Path but nothing seems to work, because all I get is the message

    "C :\Users\Administrator>ECHO OFF

    bin\ffmpeg.exe could not be found."

    Is it even possible to start ff-prompt with PowerShell ? Every suggestion / solution is more than welcome.

    My goal is to have a solution that works like this here :
    http://spreadys.wordpress.com/2012/12/03/ffprobe-and-windows-powershell/

    but I want to do that automatically for all my clips, thats why I need to start ffprobe with powershell.


    ECHO OFF
    REM FF Prompt 1.1
    REM Open a command prompt to run ffmpeg/ffplay/ffprobe
    REM Copyright (C) 2013  Kyle Schwarz

    TITLE FF Prompt

    IF NOT EXIST bin\ffmpeg.exe (
     CLS
     ECHO bin\ffmpeg.exe could not be found.
     GOTO:error
    )

    CD bin || GOTO:error
    PROMPT $G
    CLS
    ffmpeg -version
    SET PATH=%CD%;%PATH%
    ECHO.
    ECHO For help run: ffmpeg -h
    ECHO For formats run: ffmpeg -formats ^| more
    ECHO For codecs run: ffmpeg -codecs ^| more
    ECHO.
    ECHO Current directory is now: "%CD%"
    ECHO The bin directory has been added to PATH
    ECHO.

    CMD /F:ON /Q /K
    GOTO:EOF

    :error
     ECHO.
     ECHO Press any key to exit.
     PAUSE >nul
     GOTO:EOF

    Okay I tried something a little bit different this time :

    $env:Path = ';C:\Users\Administrator\bin\'
    $title = "A_Day_for_Cake_and_Accidents"
    Start-Process ff-prompt.bat -ArgumentList "ffprobe -show_streams -select_streams v -print_format xml -count_frames C:\Users\Administrator\Desktop\dcp_bearbeitet\$title\$title.mov > C:\Users\Administrator\Desktop\dcp_bearbeitet\$title\totalframes.xml"

    This creates a file called "totalframes.xml" but without the needed information, the only thing I get is :

    C :\Users\Administrator>ECHO OFF
    ffmpeg version N-60959-g669043d
    built on Feb 27 2014 22:01:58 with gcc 4.8.2 (GCC)
    configuration : —enable-gpl —enable-version3 —disable-w32threads —enable-avisynth —enable-bzlib —enable-fontconfig —enable-frei0r —enable-gnutls —enable-iconv —enable-libass —enable-libbluray —enable-libcaca —enable-libfreetype —enable-libgsm —enable-libilbc —enable-libmodplug —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopenjpeg —enable-libopus —enable-librtmp —enable-libschroedinger —enable-libsoxr —enable-libspeex —enable-libtheora —enable-libtwolame —enable-libvidstab —enable-libvo-aacenc —enable-libvo-amrwbenc —enable-libvorbis —enable-libvpx —enable-libwavpack —enable-libx264 —enable-libx265 —enable-libxavs —enable-libxvid —enable-zlib
    libavutil 52. 66.100 / 52. 66.100
    libavcodec 55. 52.102 / 55. 52.102
    libavformat 55. 33.100 / 55. 33.100
    libavdevice 55. 10.100 / 55. 10.100
    libavfilter 4. 2.100 / 4. 2.100
    libswscale 2. 5.101 / 2. 5.101
    libswresample 0. 18.100 / 0. 18.100
    libpostproc 52. 3.100 / 52. 3.100
    For help run : ffmpeg -h
    For formats run : ffmpeg -formats | more
    For codecs run : ffmpeg -codecs | more
    Current directory is now : "C :\Users\Administrator\bin"
    The bin directory has been added to PATH

    So basically the console pops up, writes this standard text and does not use my commands which I stated in -Argument-List . I do not have a clue why it is ignoring most of my commands, except for writing everything in a XML file.

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

    


    The SAM template is as follows

    


    AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
  video-processor-functions

  Functions to generate gif and thumbnail from uploaded videos
  
# More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst
Globals:
  Function:
    Timeout: 3
    Tracing: Active

Resources:
  VideoProcessorFunctions:
    Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
    Properties:
      CodeUri: src/
      Handler: app.lambdaHandler
      Runtime: nodejs14.x
      # timeout in seconds - 2 minutes
      Timeout: 120
      Layers:
        - !Ref VideoProcessorDepLayer
        - !Ref arn:aws:lambda:us-west-1:338231645678:layer:ffmpeg:1
      Architectures:
        - x86_64
      Events:
        HelloWorld:
          Type: Api # More info about API Event Source: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api
          Properties:
            Path: /hello
            Method: get

  VideoProcessorDepLayer:
    Type: AWS::Serverless::LayerVersion
    Properties:
      LayerName: mh-video-processor-dependencies
      Description: Dependencies for sam app [video-processor-functions]
      ContentUri: dependencies/
      CompatibleRuntimes:
        - nodejs14.17
      LicenseInfo: 'MIT'
      RetentionPolicy: Retain

Outputs:
  # ServerlessRestApi is an implicit API created out of Events key under Serverless::Function
  # Find out more about other implicit resources you can reference within SAM
  # https://github.com/awslabs/serverless-application-model/blob/master/docs/internals/generated_resources.rst#api
  HelloWorldApi:
    Description: "API Gateway endpoint URL for Prod stage for Hello World function"
    Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/hello/"
  VideoProcessorFunctions:
    Description: "Generate GIF and Thumnail from Video"
    Value: !GetAtt VideoProcessorFunctions.Arn
  VideoProcessorFunctionsIamRole:
    Description: "Implicit IAM Role created for MH Video Processor function"
    Value: !GetAtt VideoProcessorFunctionsRole.Arn



    


    Any ideas what i'm doing wrong ?