Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (79)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

Sur d’autres sites (5536)

  • ffmpeg not working from php

    12 février 2015, par ffmpeg fan

    spent 8 hours trying to make it work :
    i installed the version from http://ffmpeg.org/releases/ffmpeg-2.5.3.tar.bz2
    and also tried the yum version but it as not new enough for youtube-dl

    tried
    export PATH=$PATH :/usr/local/bin/ffmpeg and php apache still cant find ffmpeg

    apache user runs php script on centos 6.5
    calling my youtube-dl.php from php command line as root works (with ffmpeg) -
    calling my youtube-dl.php from php apache user works (not with ffmpeg) -

    what iam trying to do - shell exec youtube-dl (youtube dl calls ffmpeg in its binary code which there is now to modifiy it to add the full path)
    this works but the ffmpeg part
    my youtube-dl.php file

    $output = shell_exec('youtube-dl -o "/home/test/%(title)s.%(ext)s" '.$url.'      -f bestvideo+bestaudio 2>&1');
    echo "<pre>$output</pre>";


    # which ffmpeg
    /usr/local/bin/ffmpeg

    (someone on other pages on this site says local/bin is for customized versions but i downloaded it directly from ffmpeg and did the standard ./configure make make install )

    done :
    chmod 755 to /usr/local/bin/ffmpeg

    running ffmpeg as a test command directly (sometimes works and doesnt as i upgraded/rebooted/updatedb/etc)

    $output = shell_exec(’ffmpeg 2>&1’) ;
    echo "

    $output

    " ;
    result :

    sh : ffmpeg : command not found
       

    i here a lot of people voting down - i am learning and sharing thank you in advance

    I read all of these with similar problems but didnt help :
    Similar Questions

    FFMPEG PHP does not seem to work
    FFmpeg not working
    Recording audio with FFMPEG works in terminal but not through exec() of PHP
    ffmpeg-php permission denied on localhost
    C++ program from PHP not working properly
    FFMPEG works from command line but not PHP
    Calling a shellscript from php - not working correctly
    PHP Internal Server Error 500 when using ffmpeg to convert files
    PHP code not proceeding to the line after exec ffmpeg
    ffmpeg not working from php script but works from command line
    PHP exec() Not Working With ffmpeg
    ffmpeg not work with PHP exec()
    ffmpeg php exec not working
  • How to prevent App sandoxing from blocking a plugin usage after codesigning ?

    27 mai 2020, par Cyhzault

    I'm struggling to codesign my Unity application in order to push it to the Mac App Store. I followed the unity recommended process but some issues appeared after the codesign command. I've been able to fix some of them by adding new keys in my entitlement file but i'm still stuck due to the App Sandboxing mecanism.

    &#xA;&#xA;

    In my application I use an external plugin named FFmpeg to manage video encoding. After codesigning with the mandatory app sandboxing entitlement set to true, the plugin stopped working and i have no log explaining why.

    &#xA;&#xA;

    I tried multiple solutions detailed in other posts like defining an AppSandbox inheritance or adding more keys to my entiltement file but none of them worked.

    &#xA;&#xA;

    I'm new to codesigning and here is my process and entitlements file :

    &#xA;&#xA;

      &#xA;
    1. chmod -R a&#x2B;xr ./MY_APP.app
    2. &#xA;

    3. codesign --force --sign &#x27;3rd Party Mac Developer Application: My Company (id)&#x27; --entitlements ./FFmpeg.entitlements ./MY_APP.app/Contents/Resources/Data/StreamingAssets/FFmpegOut/macOS/ffmpeg
    4. &#xA;

    5. codesign -f --deep -s &#x27;3rd Party Mac Developer Application: My Company (id)&#x27; --entitlements ./MY_APP.entitlements ./MY_APP.app
    6. &#xA;

    7. Verify codesign & Product build - both successful
    8. &#xA;

    &#xA;&#xA;

    The main entitlement file for the app (MY_APP.entitlements) :

    &#xA;&#xA;

    &lt;?xml version="1.0" encoding="UTF-8"?>&#xA;&#xA;<plist version="1.0">&#xA;    <dict>&#xA;            <key>com.apple.security.app-sandbox</key>&#xA;            <true></true>&#xA;            <key>com.apple.security.files.user-selected.read-write</key>&#xA;            <true></true>&#xA;            <key>com.apple.security.network.client</key>&#xA;            <true></true>&#xA;            <key>com.apple.security.files.user-selected.executable</key>&#xA;            <true></true>&#xA;            <key>com.apple.security.cs.allow-unsigned-executable-memory</key>&#xA;            <true></true>&#xA;            <key>com.apple.security.cs.disable-library-validation</key>&#xA;            <true></true>&#xA;            <key>com.apple.security.cs.allow-dyld-environment-variables</key>&#xA;            <true></true>&#xA;            <key>com.apple.security.get-task-allow</key>&#xA;            <true></true>&#xA;    </dict>&#xA;</plist>&#xA;

    &#xA;&#xA;

    Here is the second entitlement file (FFmpeg.entiltlement) for the plugin with inheritance :

    &#xA;&#xA;

    &lt;?xml version="1.0" encoding="UTF-8"?>&#xA;&#xA;<plist version="1.0">&#xA;    <dict>&#xA;            <key>com.apple.security.app-sandbox</key>&#xA;            <true></true>&#xA;            <key>com.apple.security.inherit</key>&#xA;            <true></true>&#xA;    </dict>&#xA;</plist>&#xA;

    &#xA;&#xA;

    The plugin i used can be found on github, i'll cross post my issue there as well.

    &#xA;&#xA;

    I will gladfully take any idea or solution, &#xA;Thanks for your help,

    &#xA;&#xA;

    Regards,&#xA;Alexis

    &#xA;

  • FFMPEG and AWS : What's the most efficient way to handle this ?

    28 mai 2022, par Red Vic

    I'm new to AWS and I originally built the FFmpeg functions on my Node.JS API. But I realized this is the wrong way to do it in a real-world app, and that you need to use separate Lambda functions in AWS that handle the video editing separately from the main server.

    &#xA;

    I'm mainly a front-end developer but I'm open to learning new things.

    &#xA;

    I basically have the following process in my app :

    &#xA;

      &#xA;
    • User uploads video.
    • &#xA;

    • I need to take that video and add a watermark to it.
    • &#xA;

    • I then need a copy of the watermarked video in a smaller resolution.
    • &#xA;

    • I then need a 6 seconds GIF of the smaller resolution video.
    • &#xA;

    • Finally, I need to upload the 3 edited files (2 .mp4's and 1 .gif) to S3, and remove the original, non-watermarked video.
    • &#xA;

    &#xA;

    Here are my questions to be clear :

    &#xA;

      &#xA;
    • Should I upload the original file to S3 or to the server ? And why ?
    • &#xA;

    • Is the process above doable in a single Lambda function ? Or do I need more Lambda functions ?
    • &#xA;

    • How would you handle this problem, personally ?
    • &#xA;

    &#xA;

    I originally built it by chaining one function to the next with promises, but AWS seems like a different world of doing things and the way I originally built it would not work.

    &#xA;

    Thanks a lot.

    &#xA;

    Update&#xA;Here are some tests I did with a couple videos :

    &#xA;

    &#xA;&#xA;&#xA;&#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;&#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    Test 1 Test 2 Test 3 Test 4 Test 5
    Original video resolution 1080p 1080p 1080p 1080p 480p
    Original video duration 23 minutes 15 minutes 11 minutes 3.5 minutes 5 minutes
    Step 1 duration (Watermarking original video) 30 minutes 18 minutes 14 minutes 4 minutes 2 minutes
    Step 2 duration (Watermarking lower resolution) 5 minutes 3 minutes 3 minutes 1 minute skip (already low res)
    Step 3 duration (6 seconds GIF creation) negligible (15 seconds) negligible (10 seconds) negligible (7 seconds) negligible negligible
    Total  35 minutes  21 minutes  17 minutes  5 minutes  2 minutes

    &#xA;