
Recherche avancée
Autres articles (44)
-
Other interesting software
13 avril 2011, parWe don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
We don’t know them, we didn’t try them, but you can take a peek.
Videopress
Website : http://videopress.com/
License : GNU/GPL v2
Source code : (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)
Sur d’autres sites (7480)
-
ffmpeg burned-in subtitles render in the wrong font
21 août 2024, par dv151Trying to burn in subtitles to a video in FFMPEG in GothamProBold font. No matter what I do it keeps reverting to Helvetica. From the console, I see that FFMPEG seems to load the font without error. Then switches over to font provider "coretext"


[Parsed_subtitles_0 @ 0x7fed054048c0] Loading font file '/Projects/Fonts/GothaProBol.otf'
[Parsed_subtitles_0 @ 0x7fed054048c0] Using font provider coretext
[Parsed_subtitles_0 @ 0x7fed054048c0] fontselect: (GothaProBol.otf, 400, 0) -> /System/Library/Fonts/Helvetica.ttc, -1, Helvetica



It seems like it has my font loaded, then loads what is likely a system default of Helvetica instead. My guess is that my chosen font isn't actually loading after all.


FFMPEG command (called from python) is as follows :


ffmpeg_cmd = ["ffmpeg", 
 "-i", self.source_video_uri, 
 "-y",
 "-c:v", "prores", "-profile:v", "1", 
 "-c:a", "pcm_s16be", 
 "-vf", f"subtitles={srt_uri}:fontsdir=/Projects/Fonts:force_style='Fontname=GothaProBol.otf'",
 f"{self.source_video_uri}_render.mov"]

subprocess.call(ffmpeg_cmd)



Any ideas ?


UPDATE : Found this setting in libass header file "ass.h" - which ffmpeg calls when using the subtitle filter. Don't know how to actually set this variable when ffmpeg calls libass, but here it is. Line 182 :


* \brief Default Font provider to load fonts in libass' database
 *
 * NONE don't use any default font provider for font lookup
 * AUTODETECT use the first available font provider
 * CORETEXT force a CoreText based font provider (OS X only)
 * FONTCONFIG force a Fontconfig based font provider
 *
 * libass uses the best shaper available by default.
 */
typedef enum {
 ASS_FONTPROVIDER_NONE = 0,
 ASS_FONTPROVIDER_AUTODETECT = 1,
 ASS_FONTPROVIDER_CORETEXT,
 ASS_FONTPROVIDER_FONTCONFIG,
 ASS_FONTPROVIDER_DIRECTWRITE,
} ASS_DefaultFontProvider;



RE : ANSWER BELOW : For the most part, it seems that if your font is installed in /System/Fonts or /Library/Fonts then CoreText can find it. Though in some cases, the naming conventions can be quite particular and non-intuitive. It also can't seem to find all fonts, necessarily.


For example : Gotham Pro Bold, in the /Library/Fonts folder on my system, file named "GothaProBol.otf" is correctly passed to fontname as : GothamPro-Bold or just Gotham Pro. Gotham Pro Bold, GothamPro, Gotham Pro-Bold, GothaProBol, and GothaProBol.otf do NOT work.


For most fonts it seems the preferred convention is FontName-Style/Weight as displayed in Mac OS's FontBook, not the filename.


That said, I have a novelty 'Game of Thrones.ttf' font in the same folder as Gotham Pro, and I can't get CoreText to connect to it under any of the above naming conventions.


-
Why is the FindClass/JNI function behaving differently on nexus 5 and Honor Play ?
17 août 2020, par OwlMobileFFmpeg v4.3.1LTS works on Honor Play, but doesn't work on Nexus 5. Why ?


The build for Honor Play and nexus 5 is the same ->armeabi-v7a




https://github.com/tanersener/mobile-ffmpeg/releases/tag/v4.3.1.LTS


Nexus5 :enter image description here


HonorPlay :enter image description here






NDK = ndk-r14b






JDK = jdk1.8.0_77




I will ask the question immediately in English stackoverflow. Developing a game in
Unreal Engine 4 v24.3
. In the code itself there are only 2 lines that relate to MobileFFmpeg :

Enabling the function :


extern "C"
{
 int ffmpeg_execute(int argc, char** argv);
}



Calling a function with ffmpeg parameters


ffmpeg_execute(arg.size(), arg.data());



Without mobile FFmpeg, the app on nexus 5 starts and works stably. When I start with FFmpeg, an error immediately appears and the app crashes :




The FindClass function does not work, the call itself is declared in mobile ffmpeg.c :


/** Full name of the Config class */
const char *configClassName = "com/arthenica/mobileffmpeg/Config";



...


/**
 * Called when 'mobileffmpeg' native library is loaded.
 *
 * @param vm pointer to the running virtual machine
 * @param reserved reserved
 * @return JNI version needed by 'mobileffmpeg' library
 */
jint JNI_OnLoad(JavaVM *vm, void *reserved) {
 JNIEnv *env;
 if ((*vm)->GetEnv(vm, (void**)(&env), JNI_VERSION_1_6) != JNI_OK) {
 LOGE("OnLoad failed to GetEnv for class %s.\n", configClassName);
 return JNI_FALSE;
 }

 jclass localConfigClass = (*env)->FindClass(env, configClassName);
 if (localConfigClass == NULL) {
 LOGE("OnLoad failed to FindClass %s.\n", configClassName);
 return JNI_FALSE;
 }
...



I can't see what the FindClass(C++) function returns, Android Studio doesn't want to stop on the JNI_OnLoad(C++) function during debug.


What are the assumptions why FindClass behavior is different on two phones ?


-
Send response only after the file has been converted
19 octobre 2020, par Andrew Junior HowardI have the following code but I'm getting confused as to send the api response only after the file has been converted, not just when it uploads (which is what it currently does) :


router.post('/uploadAudio/', function (req, res) {

 uploadAudio(req, res, function (err) {
 if (err) {
 // An error occurred when uploading
 throw err;
 }

 res.json({
 sucess: true,
 message: req.file.filename,
 });
 
 var proc = new ffmpeg({ source: '../game/src/assets/sounds/' + req.file.filename, nolog: true })
 
 proc.setFfmpegPath(ffmpegInstaller.path)
 proc

 // set output format to force
 .toFormat('ogg')

 // setup event handlers
 .on('end', function () {
 console.log('file has been converted successfully');
 })
 .on('error', function (err) {
 console.log('an error happened: ' + err.message);
 })
 // save to file <-- the new file I want -->
 .saveToFile('../game/src/assets/sounds/' + req.file.filename.replace(/\.[^/.]+$/, "") + '.ogg');
 });
});