Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (104)

  • 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

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (9433)

  • Video/Audio transcoding settings ffmpeg

    28 juin 2019, par red

    I’ve configured a Lambda layer with FFMPEG to transcode video and audio, to do the transcoding I do the following :

    • I upload the file with a presigned post to s3
    • s3 have a trigger to automatically call a lambda function on audio/video upload
    • the lambda function spawn a child process for every file
    • the child process transcode the video and save the transcoded file in /tmp
    • then I upload the file renamed back to s3, delete the previous version and the /tmp folder

    Now the audio transcoding is really fast but the video is quite slow, and I know that video transcoding always need more time than audio transcoding, but maybe there is some setting that con help me to speed up a bit, here the settings :

    spawn(ffmpegPath, ['-i', 'https://s3.eu-central-1.amazonaws.com/' + srcBucket + '/' + srcKey, '-codec:v', 'libx264', '-profile:v', 'main', '-preset', 'slow', '-b:v', '400k', '-maxrate', '400k', '-bufsize', '800k', '-vf', `scale=-2:${quality}`, '-threads', '0', '-b:a', '128k', '/tmp/'+dstKey]);

    There is some settings that can help me to speed up transcoding without loose in quality ? or a use different child_process like exec or other maybe can help... This code run in a lambda function with 3008mb of RAM

    Thank you !

  • how to add text to the video in android ?

    4 octobre 2024, par Sajad Norouzi

    In my app I record a video and I wanna overlay the url of my company on the right bottom of that video. I record video with MediaRecorder and there is no problem with the recording, but for adding text to the video I haven't been successful. I searched and found some library like FFmpeg and JavaCV which let user overlay a text on the video but I don't know if there is any way for using them in Android. after that found OnPreviewFrame which returns each frame of the camerapreivew. I want to get all frames after user touch record button and draw text using canvas to each frame and then save all those frame together until recording video stops, and videos duration are fix and 15 seconds. Is it a good solution ? if it is, how should I implement OnPreviewFrame function ? I know how to draw canvas but I don't know how to convert data[] to the bitmap.

    


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

    



    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 :

    



      

    1. chmod -R a+xr ./MY_APP.app
    2. 


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


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


    7. Verify codesign & Product build - both successful
    8. 


    



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

    



    &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;