
Recherche avancée
Autres articles (44)
-
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Publier sur MédiaSpip
13 juin 2013Puis-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 -
Les formats acceptés
28 janvier 2010, parLes 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 (10343)
-
Mac app crash : Termination Reason : Namespace CODESIGNING, Code 0x2 [closed]
29 janvier 2020, par dummyappsThe app always works fine, but it suddenly crashes this evening and report "Namespace CODESIGNING, Code 0x2", I have no idea why, the code worked for several year, it seems that certain certificate invalid.
This app use FFmpeg library to snapshot video, I did some test on it :
-
I rebuild the source code, It still crash.
-
It only crash on Mac OS 10.15, it works fine on 10.13
-
I use atos to analyse the crash report, the output of atos indicate that FFmpeg library failed, but it should not. The code works for several year, I don’t think the code has bug.
-
I submit a Technical Support to Apple developer, they also have no idea why.
System Integrity Protection : enabled
Crashed Thread : 3 Dispatch queue : com.dummyapps.videoBrowser.screenshot
Exception Type : EXC_BAD_ACCESS (Code Signature Invalid)
Exception Codes : 0x0000000000000032, 0x00000001134b5000
Exception Note : EXC_CORPSE_NOTIFYTermination Reason : Namespace CODESIGNING, Code 0x2
kernel messages :
VM Regions Near 0x1134b5000 :
CoreAnimation 00000001134ac000-00000001134b2000 [ 24K] rw-/rwx SM=PRV
— > VM_ALLOCATE 00000001134b5000-00000001134b6000 [ 4K] r-x/rwx SM=PRV
CoreAnimation 00000001134b6000-00000001134ba000 [ 16K] rw-/rwx SM=PRVThread 0: : Dispatch queue : com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff69f8625a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff69f865d0 mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff327ead0b __CFRunLoopServiceMachPort + 322
3 com.apple.CoreFoundation 0x00007fff327e98e7 __CFRunLoopRun + 1695
4 com.apple.CoreFoundation 0x00007fff327e8bd3 CFRunLoopRunSpecific + 499
5 com.apple.HIToolbox 0x00007fff3133f65d RunCurrentEventLoopInMode + 292
6 com.apple.HIToolbox 0x00007fff3133f39d ReceiveNextEventCommon + 600
7 com.apple.HIToolbox 0x00007fff3133f127 _BlockUntilNextEventMatchingListInModeWithFilter + 64
8 com.apple.AppKit 0x00007fff2f9b0eb4 _DPSNextEvent + 990
9 com.apple.AppKit 0x00007fff2f9af690 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue :] + 1352
10 com.apple.AppKit 0x00007fff2f9a13ae -[NSApplication run] + 658
11 com.apple.AppKit 0x00007fff2f973775 NSApplicationMain + 777
12 libdyld.dylib 0x00007fff69e457fd start + 1Thread 1 :
0 libsystem_pthread.dylib 0x00007fff6a045818 start_wqthread + 0Thread 2 :
0 libsystem_pthread.dylib 0x00007fff6a045818 start_wqthread + 0Thread 3 Crashed: : Dispatch queue : com.dummyapps.videoBrowser.screenshot
0 ??? 0x00000001134b5000 0 + 4618670080
1 com.dummyapp.VideoBrowserLite 0x000000010f728510 0x10f6d9000 + 324880
-
-
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


-
How can we reduce the size of audio file after uploading ?
8 novembre 2019, par Arjun PujariI have used this command in the terminal to install the package :
composer require pbmedia/laravel-ffmpeg
. The package is successfully downloaded, but I don’t know how to use it. I don’t even know if this package can also reduce the audio file size or not.Anyone know any other library or package ?
<form action="{{route('upload')}}" method="post" enctype="multipart/form-data">
Select Audio to upload:
<input type="file" />
<input type="submit" value="upload MP3" />
</form>
<?phpHere is my controller. Write basic code for save file :
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Pbmedia\LaravelFFMpeg\FFMpeg;
class FileCompress extends Controller
{
public function compressFile(Request $request)
{
$uploadFileName = mt_rand().time(). '.' . $file->getClientOriginalExtension();
$filetype = substr($file->getClientMimeType(), 0, strpos($file->getClientMimeType(), "/"));
if($filetype == 'video'){
$localpath = public_path().'/videos/'.$uploadFileName;
//code for video file compress.
}else{
//code for audio file compress.
}
}
}But I need to reduce the audio file size when a file is uploaded or reduce the file size immediately after the file upload. How can i do that ?