
Recherche avancée
Autres articles (111)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Problèmes fréquents
10 mars 2010, parPHP et safe_mode activé
Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site -
Prérequis à l’installation
31 janvier 2010, parPréambule
Cet article n’a pas pour but de détailler les installations de ces logiciels mais plutôt de donner des informations sur leur configuration spécifique.
Avant toute chose SPIPMotion tout comme MediaSPIP est fait pour tourner sur des distributions Linux de type Debian ou dérivées (Ubuntu...). Les documentations de ce site se réfèrent donc à ces distributions. Il est également possible de l’utiliser sur d’autres distributions Linux mais aucune garantie de bon fonctionnement n’est possible.
Il (...)
Sur d’autres sites (8337)
-
FFmpeg is using more threads than I expect when using -threads
7 décembre 2016, par Tom PetersThe number of actual threads used by FFmpeg do not line up with the number I pass using the
-threads
argument.I’ve run tests on both my MacBook Air, which has 4 cores, and a VM I have which has 2 cores. The number of threads used are consistent across both machines.
Using a single thread returns what I would expect : 1 thread is used.
$ ffmpeg -threads 1 -i clip.mp4 -threads 1 -acodec libfdk_aac -vcodec libx264 -b:v 200k -vf scale=200:-2 -y clip-200.mp4
$ cat /proc/$(pgrep ffmpeg)/status | grep Threads
Threads: 1If I set the
-threads
option on the input, it increase the number of threads used to 3. This somewhat makes sense to me since the input would use 2 threads and the output would use a single thread.$ ffmpeg -threads 2 -i clip.mp4 -threads 1 -acodec libfdk_aac -vcodec libx264 -b:v 200k -vf scale=200:-2 -y clip-200.mp4
$ cat /proc/$(pgrep ffmpeg)/status | grep Threads
Threads: 3This is where I start to get confused. If instead, I leave the input
-threads
at 1 and set the output-threads
to 2, it uses 8 threads (not 3 like I would expect).$ ffmpeg -threads 1 -i clip.mp4 -threads 2 -acodec libfdk_aac -vcodec libx264 -b:v 200k -vf scale=200:-2 -y clip-200.mp4
cat /proc/$(pgrep ffmpeg)/status | grep Threads
Threads: 8If I add a second output with
-threads 1
, it does not increase the number of threads used.$ ffmpeg -threads 1 -i clip.mp4 -threads 2 -acodec libfdk_aac -vcodec libx264 -b:v 200k -vf scale=200:-2 -y clip-200.mp4 \
-threads 1 -acodec libfdk_aac -vcodec libx264 -b:v 250k -vf scale=250:-2 -y clip-250.mp4
cat /proc/$(pgrep ffmpeg)/status | grep Threads
Threads: 8However, if the second output also specifies two threads, the thread count jumps to 15.
$ ffmpeg -threads 1 -i clip.mp4 -threads 2 -acodec libfdk_aac -vcodec libx264 -b:v 200k -vf scale=200:-2 -y clip-200.mp4 \
-threads 2 -acodec libfdk_aac -vcodec libx264 -b:v 250k -vf scale=250:-2 -y clip-250.mp4
cat /proc/$(pgrep ffmpeg)/status | grep Threads
Threads: 15Every incremental bump beyond
-threads 2
will use an additional 3 threads (e.g.threads 2
uses 8,threads 3
uses 11,threads 4
uses 14.So it seems like anytime you use
-threads 2
the formula is something like :1 + [ (1 + (3 * output_n_threads)) + ... ]
Ultimately my question is why do the number of actual threads used wildly differ from the options I’m specifying.
Thanks.
-
using ffmpeg from macOS terminal for uploading youtube short from android just do nothing
25 juin 2023, par Yogi Arif Widodomy component / recording is using blachole plugin on macOS.


engine : 13" Macbook Pro M1 ( macOS 13.2 / Ventura )


step to reproduce


- 

- my output is screenRecordingAudio ( this name is custom name ).




// screenRecordingAudio in audioMidi : 
BlackHole 16ch [mark as checked on use]
External Headphones [mark as checked on use]





screenRecordingAudio is using on by click on right top of bar UI, click sound, click screenRecordingAudio.




OR




screenRecordingAudio is using on Settings ➡️ Sounds ➡️ Output ➡️ then choose screenRecordingAudio




- 

- my input is quickTimeInput ( this name is custom name ).




// quickTimeInput in audioMidi : 
BlackHole 16ch [mark as checked on use]



- 

- then using
⌘
+shift
+5
, on option i usequickTimeInput
- i use these command to convert into mp4 and also purpose to get more small size video






#!/bin/bash

# greet the user
function yoVideo() {
 ffmpeg -i $1.mov -c:v libx264 -preset medium -crf 23 -c:a aac -b:a 128k -movflags +faststart $1.mp4
}



OR


ffmpeg -i yogiarifwidodo.mov -c:v libx264 -preset medium -crf 23 -c:a aac -b:a 128k -movflags +faststart yogiarifwidodo.mp4



- 

- then i move the video into my phone android.
- then when i tried to upload on youtube as short, its cannot be process to upload ( its just do nothing ) but when i upload on facebook reels its work also on instagram story its still working also for whatsapp story.






when i didnt convert into mp4 its also happend and in any other case for example whatsapp story , its lagging to review video before upload . its happend to on instagram .
but when i force upload , the result video is good and smooth . then i re download my video its still best video and when try to upload my download video , there is no lagging in any condition.


how to get ffmpeg perform into mp4 and also no lagging on editing while uploading at whatsapp story or instagram story or facebook , etc ?
by the way i dont know command ffmpeg , the code is copied from stackoverflow and i forgot where is it.


-
RN 0.74.7 can't find repo for ffmpeg-kit-react-native 6.0.2
9 mai, par user938363My React Native 0.74.7 (on MacOS) app has hard time to find the ffmpeg-kit-react-native repo when
run-android
. It constantly complains no repo found on maven. Here is the error whenreact-native run-android
:

* What went wrong:
Could not determine the dependencies of task ':app:processDebugResources'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
 > Could not find com.arthenica:ffmpeg-kit-full-gpl:6.0.
 Searched in the following locations:
 - https://oss.sonatype.org/content/repositories/snapshots/com/arthenica/ffmpeg-kit-full-gpl/6.0/ffmpeg-kit-full-gpl-6.0.pom
 - https://repo.maven.apache.org/maven2/com/arthenica/ffmpeg-kit-full-gpl/6.0/ffmpeg-kit-full-gpl-6.0.pom
 - file:/Users/macbook/Documents/code/js/VmonFront/node_modules/jsc-android/dist/com/arthenica/ffmpeg-kit-full-gpl/6.0/ffmpeg-kit-full-gpl-6.0.pom
 - https://dl.google.com/dl/android/maven2/com/arthenica/ffmpeg-kit-full-gpl/6.0/ffmpeg-kit-full-gpl-6.0.pom
 - https://www.jitpack.io/com/arthenica/ffmpeg-kit-full-gpl/6.0/ffmpeg-kit-full-gpl-6.0.pom
 Required by:
 project :app > project :ffmpeg-kit-react-native



In android/build.gradle, the repo was specified :


buildscript {
 ext {
 buildToolsVersion = "34.0.0"
 minSdkVersion = 23
 compileSdkVersion = 34
 targetSdkVersion = 34
 ndkVersion = "26.1.10909125"
 kotlinVersion = "1.9.22"

 ffmpegKitPackage = "full-gpl"
 }

 repositories {
 google()
 mavenCentral()
 maven { url "https://jitpack.io" }
 // You can comment out the below line if it causes issues:
 maven { url 'https://maven.arthenica.com/public/' } //<<<===repo here
 }

 dependencies {
 classpath("com.android.tools.build:gradle")
 classpath("com.facebook.react:react-native-gradle-plugin")
 classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
 }
}


apply plugin: "com.facebook.react.rootproject"



Also the following code is added to android/app/build.gradle :


// 🔥 Add this block to override the wrong version in ffmpeg's gradle.properties
configurations.all {
 resolutionStrategy {
 force "com.arthenica:ffmpeg-kit-https:6.0". //<<<===6.0.2 or 6 didn't work
 force "com.arthenica:ffmpeg-kit-full-gpl:6.0" // Include if using other packages
 }
}



The problem seems to be with RN 0.74.7 only, as my RN 0.78.0 with ffmpeg-kit-react-native installed was able to download full-gpl version and installed successfully. What is missing here to install ffmpeg-kit on RN 0.74.7 ?