
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (22)
-
L’espace de configuration de MediaSPIP
29 novembre 2010, parL’espace de configuration de MediaSPIP est réservé aux administrateurs. Un lien de menu "administrer" est généralement affiché en haut de la page [1].
Il permet de configurer finement votre site.
La navigation de cet espace de configuration est divisé en trois parties : la configuration générale du site qui permet notamment de modifier : les informations principales concernant le site (...) -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
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 (...)
Sur d’autres sites (5585)
-
How to convert bitmaps array to a video in Android ?
12 juillet 2020, par Kamran JanjuaI have a buffer which is filled with image bitmaps as they arrive (using a thread to continuously take pictures). I would then like to dump that bitmap buffer (I have a hashmap at the moment for matching the keys) into a
.mp4
file.

Here is the code to continuously capture the images using a handler.


button.setOnClickListener {
 prepareUIForCapture()
 if(isRunning){
 handler.removeCallbacksAndMessages(null)
 Logd("Length of wide: " + MainActivity.wideBitmaps.size)
 Logd("Length of normal: " + MainActivity.normalBitmaps.size)
 // This is where the make video would be called => makeVideoFootage()
 restartActivity()
 }else{
 button.text = "Stop"
 handler.postDelayed(object : Runnable {
 override fun run(){
 twoLens.reset()
 twoLens.isTwoLensShot = true
 MainActivity.cameraParams.get(dualCamLogicalId).let {
 if (it?.isOpen == true) {
 Logd("In onClick. Taking Dual Cam Photo on logical camera: " + dualCamLogicalId)
 takePicture(this@MainActivity, it)
 Toast.makeText(applicationContext, "Captured", Toast.LENGTH_LONG).show()
 }
 }
 handler.postDelayed(this, 1000)
 }
 }, 1000)
 }
 isRunning = !isRunning
 }



This takes picture every 1 second until the stop button is pressed. Here is the function that retrieves the images and saves them into a hashmap.


val wideBuffer: ByteBuffer? = twoLens.wideImage!!.planes[0].buffer
val wideBytes = ByteArray(wideBuffer!!.remaining())
wideBuffer.get(wideBytes)

val normalBuffer: ByteBuffer? = twoLens.normalImage!!.planes[0].buffer
val normalBytes = ByteArray(normalBuffer!!.remaining())
normalBuffer.get(normalBytes)

val tempWideBitmap = BitmapFactory.decodeByteArray(wideBytes, 0, wideBytes.size, null)
val tempNormalBitmap = BitmapFactory.decodeByteArray(normalBytes, 0, normalBytes.size, null)
MainActivity.counter += 1
MainActivity.wideBitmaps.put(MainActivity.counter.toString(), tempWideBitmap)
MainActivity.normalBitmaps.put(MainActivity.counter.toString(), tempNormalBitmap)



counter
is used to match the frames and that is why I am using a hashmap instead of an array. I have complied the ffmpeg as follows.

implementation 'com.writingminds:FFmpegAndroid:0.3.2'




Is this the correct way ?
I would appreciate some starter code in
makeVideoFootage()
.

fun makeVideoFootage(){
// I would like to get the bitmaps from MainActivity.wideBitmaps and then dump them into a video wide.mp4.
}



Any help regarding this would be appreciated.


P.S. I have read the existing questions and their answers (running from the command line), but I do not know how to proceed.


-
Merge pull request #3433 from Herst/patch-2
26 février 2016, par blueimpMerge pull request #3433 from Herst/patch-2
Make font size for fileinput-button !important so it’s less likely to break
-
Merge pull request #3403 from pquentin/master
28 juin 2015, par blueimpMerge pull request #3403 from pquentin/master
Prevent clicks around button without Bootstrap