
Recherche avancée
Médias (2)
-
Granite de l’Aber Ildut
9 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
Autres articles (79)
-
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP 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, parCe 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, parTalk 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 fanspent 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-dltried
export PATH=$PATH :/usr/local/bin/ffmpeg and php apache still cant find ffmpegapache 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/ffmpegrunning 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 QuestionsFFMPEG 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 CyhzaultI'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.



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.



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.



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



- 

chmod -R a+xr ./MY_APP.app
codesign --force --sign '3rd Party Mac Developer Application: My Company (id)' --entitlements ./FFmpeg.entitlements ./MY_APP.app/Contents/Resources/Data/StreamingAssets/FFmpegOut/macOS/ffmpeg
codesign -f --deep -s '3rd Party Mac Developer Application: My Company (id)' --entitlements ./MY_APP.entitlements ./MY_APP.app
- Verify codesign & Product build - both successful











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



<?xml version="1.0" encoding="UTF-8"?>

<plist version="1.0">
 <dict>
 <key>com.apple.security.app-sandbox</key>
 <true></true>
 <key>com.apple.security.files.user-selected.read-write</key>
 <true></true>
 <key>com.apple.security.network.client</key>
 <true></true>
 <key>com.apple.security.files.user-selected.executable</key>
 <true></true>
 <key>com.apple.security.cs.allow-unsigned-executable-memory</key>
 <true></true>
 <key>com.apple.security.cs.disable-library-validation</key>
 <true></true>
 <key>com.apple.security.cs.allow-dyld-environment-variables</key>
 <true></true>
 <key>com.apple.security.get-task-allow</key>
 <true></true>
 </dict>
</plist>




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



<?xml version="1.0" encoding="UTF-8"?>

<plist version="1.0">
 <dict>
 <key>com.apple.security.app-sandbox</key>
 <true></true>
 <key>com.apple.security.inherit</key>
 <true></true>
 </dict>
</plist>




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



I will gladfully take any idea or solution, 
Thanks for your help,



Regards,
Alexis


-
FFMPEG and AWS : What's the most efficient way to handle this ?
28 mai 2022, par Red VicI'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.


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


I basically have the following process in my app :


- 

- User uploads video.
- I need to take that video and add a watermark to it.
- I then need a copy of the watermarked video in a smaller resolution.
- I then need a 6 seconds GIF of the smaller resolution video.
- Finally, I need to upload the 3 edited files (2 .mp4's and 1 .gif) to S3, and remove the original, non-watermarked video.












Here are my questions to be clear :


- 

- Should I upload the original file to S3 or to the server ? And why ?
- Is the process above doable in a single Lambda function ? Or do I need more Lambda functions ?
- How would you handle this problem, personally ?








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.


Thanks a lot.


Update
Here are some tests I did with a couple videos :







 

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