
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 (94)
-
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
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 -
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" ;
Sur d’autres sites (7118)
-
How to convert mp4 file to Fmp4 without using other library in android
5 février 2019, par MotiHow to convert mp4 file from device internal storage to Fmp4 programmatically in android, without using an external library like ffmpeg.
-
FFmpeg : Audio Filter taking too long
29 novembre 2018, par Prashant_SarinI am using the code below to apply a volume filter in ffmpeg, but it is taking too long. A 5-minute audiofile filter takes 3 minutes. Can someone give advice on how I can speed it up.
My command is :
var command = "-i $audioPath -af volume=enable='between(t,5,10)+between(t,15,20)':volume=0.25:eval=frame $outputFile"
Logs are :
2018-11-29 16:58:22.487 23387-23387/com.example.prashants.ffmpegtest D/com.example.prashants.ffmpegtest.service.AudioOverlayService: onProgress - ---AudioVolume---- size= 1537kB time=00:01:40.41 bitrate= 125.4kbits/s speed=1.13x
2018-11-29 16:58:22.489 23387-23387/com.example.prashants.ffmpegtest D/com.example.prashants.ffmpegtest.service.AudioOverlayService: onProgress ----AudioVolume---- video:0kB audio:1518kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.260607%
2018-11-29 16:58:22.490 23387-23387/com.example.prashants.ffmpegtest D/com.example.prashants.ffmpegtest.service.AudioOverlayService: onProgress ----AudioVolume---- bench: utime=86.707s
2018-11-29 16:58:22.491 23387-23387/com.example.prashants.ffmpegtest D/com.example.prashants.ffmpegtest.service.AudioOverlayService: onProgress ----AudioVolume---- bench: maxrss=65792kB
2018-11-29 16:58:22.492 23387-23387/com.example.prashants.ffmpegtest D/com.example.prashants.ffmpegtest.service.AudioOverlayService: onProgress ----AudioVolume---- [aac @ 0xb1ce4400] Qavg: 17415.965
2018-11-29 16:58:22.493 23387-23387/com.example.prashants.ffmpegtest D/com.example.prashants.ffmpegtest.service.AudioOverlayService: AudioVolume success--------- -benchmark -threads 4 -i /storage/emulated/0/FFmpegTest/looped.m4a -af volume=enable='between(t,5,10)+between(t,15,20)':volume=0.25:eval=frame
/storage/emulated/0/FFmpegTest/filtered_audio.m4a -
FFmpeg adding image to a video in Kotlin
4 décembre 2023, par lacrimosaI am trying to overlay an image to a video in my Kotlin project using FFmpeg.
my code :


dependency : implementation ("com.arthenica:ffmpeg-kit-full:6.0-2")


val videoPath = "file:android.resource://" + context.packageName +"/res/raw/video.mp4"
val imagePath = "file:android.resource://" + context.packageName + "/drawable/test.PNG"

val command = arrayOf(
 "-i", videoPath,
 "-i", imagePath,
 "-filter_complex", "[0:v][1:v]overlay=enable='between(t,0,10)'[out]",
 "-map", "[out]",
 "-map", "0:a",
 "output.mp4"
).joinToString(" ")
FFmpegKit.executeAsync(command) {
 Log.i("MYTAG", it.command)
 Log.i("MYTAG", it.allLogsAsString)
 Log.i("MYTAG","${it.returnCode}")
 Log.i("MYTAG","${it.state}")
 }



but I am getting this error even though video is there :


file:android.resource:/com.example.ffmpegtest/res/raw/video.mp4: No such file or directory



when I try using URL's for both video and image I get this error :


Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 2887 (pool-2-thread-1), pid 2864 (mple.ffmpegtest)



I also converted my res/drawable image and res/raw video to emulator and get its path such as :


/storage/emulated/0/Android/data/com.example.ffmpegtest/files/Pictures/test_fil
/storage/emulated/0/Android/data/com.example.ffmpegtest/files/Movies/test_video



but still getting me this error :


Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 3339 (pool-2-thread-1), pid 3314 (mple.ffmpegtest)



any advices on how to solve this issue ?