
Recherche avancée
Médias (3)
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (106)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
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 ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (14980)
-
Slow down background processing when USB is disconnected
28 mai 2021, par TakuI create video editing app with openCV and ffmpeg in kotlin.
After taking movie with USB debugging, it can edited for about 5 min.
but, as soon as disconnect the USB, it will take 30 min to edit the video for some reason...


I am in trouble because I can not correct it without debugging.
Is it problem to do from editing it to saving it in the background ?


class OpenCV(val inputPath: String, val context: Context, val setuptime: Int){

 .....

 init{
 videoCapture = VideoCapture()
 videoCapture.open(inputPath)

 videoCapture.grab()
 width = videoCapture.get(Videoio.CAP_PROP_FRAME_WIDTH)
 height = videoCapture.get(Videoio.CAP_PROP_FRAME_HEIGHT)

 val file = File(context.getExternalFilesDir(Environment.DIRECTORY_MOVIES), "output.avi")

 writer = VideoWriter()
 writer.open(
 file.path,
 VideoWriter.fourcc('M', 'J', 'P', 'G'),
 30.0,
 Size(width,height)
 )


 if(writer.isOpened){
 posefinish=true
 val inpMat = Mat(width.toInt(), height.toInt(),CvType.CV_8UC4)
 while (true){
 if (!posefinish){continue}//Wait in an infinite loop until one frame is processed

 if(videoCapture.read(inpMat)){
 posefinish=false
 if(inpMat.dims() == 0){ posefinish = true; continue }


 val bmp = Bitmap.createBitmap(
 width.toInt(),
 height.toInt(),
 Bitmap.Config.ARGB_8888
 )

 Utils.matToBitmap(inpMat, bmp, false)

 DrawPose(inpMat, bmp)// the function to edit video frame by frame

 }else{
 if(MainActivity.debag){Log.d(MainActivity.TAG, "videoCapture終了!")}
 writer.release()
 videoCapture.release()


 with_ffmpeg(file, file2, file3, file4)// avi -> mp4 -> save video with ffmpeg

 break
 }
 }

 }
 }

 }



And I call the above code with thread of coroutine.


val job =CoroutineScope(Dispatchers.Default).launch {
 OpenCV(file.toString(),this, taskSec)
 }



-
FFmpeg, preserve album cover when converting from MP3 to Opus (OGG)
20 mai 2021, par sampormtaSo basically I'm using FFmpeg Batch AV Converter (which is very good and I recommend) and I'm trying to convert all my music which is stored in FLAC, AAC and MP3 to Opus (OGG).


The problem is that I don't know what should I do so that the album cover is preserved in the conversion. As in, the metadata itself is copied to the Opus file, except the album cover.


Now of course I could add it later with a metadata editor, but it's too much work and it may even be unnecessary if there is a command to do that.


I currently use :


-c:a libopus -b:a 128k -vbr on -compression_level 10 -frame_duration 20 -application audio



Any help will be appreciated.


Thank you !


-
FFmpeg Overlay Zoom + Static Blurred Background
17 mai 2021, par John MatleyI am trying to make a video from a single image which will take the image and (regardless of height/width) will stretch to fit the whole screen (1920x1080) and be blurred. Next I want to take the same image, keeping the aspect ratio, zoom out to 100% for the entire 10 second video.


The code I wrote does most of this fine, except it also zooms the blurred background. I just want a static blurred background with a floating zooming original image over the top.


Here's what I have so far :


ffmpeg -y -i image.jpg -filter_complex "[0]scale=-1:1080[in];[0]scale=1920:1080,boxblur=10:10,setsar=1[bg];[bg][in]overlay=(W-w)/2:(H-h)/2,scale=7680x4320,zoompan=z='if(lte(zoom,1.0),1.2,max(1.001,zoom-0.0008))':x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':s=1920x1080:d=600[output]" -map "[output]" -t 10 -shortest -pix_fmt yuva420p -c:v h264_qsv -r 60 video.mp4



All I want is to keep the blurred background static at 100% whilst the main image zooms out to 100% over the 10 second duration..


Any help would be appreciated.