
Recherche avancée
Autres articles (112)
-
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 ) (...) -
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
Sur d’autres sites (10777)
-
add thumbnail and metadata to mp3 file on converting using youtube-dl by python script
18 septembre 2015, par arun palI want to add metadata as well as thumbnail image to my mp3 file. How to do that , can anybody help me ?
from __future__ import unicode_literals
import youtube_dl
n="cwHzy7ftLyI"
ydl_opts = {
'format': 'bestaudio/best',
'verbose':True,
'postprocessors': [{
'key': 'FFmpegExtractAudio',
'preferredcodec': 'mp3',
'preferredquality': '192',
}],
'addmetadata':True,
'embedthumbnail':True,
'writethumbnail':True,
}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
ydl.add_default_info_extractors()
ydl.download(['http://www.youtube.com/watch?v='+n]) -
Looking for Javacpp FFMPEG CustomIO Example
26 février 2017, par user1902291I am trying to get Custom IO working with JavaCPP FFMPEG. Has anyone succeeded at this ? Can you post your code ?
Here is mine (Scala), which does not work. It compiles and runs, but does not seem to call my Read and Seek methods
val readPtr = new Pointer()
val seekPtr = new Pointer()
val userDataPtr = new Pointer()
val read = new Read_packet_Pointer_BytePointer_int(readPtr) {
override def call(userDataPtr: Pointer, @Cast(Array("uint8_t*")) buf: BytePointer, buf_size: Int): Int = {
super.call(userDataPtr, buf, buf_size)
}
}
val seek = new Seek_Pointer_long_int(seekPtr) {
@Cast(Array("int64_t")) override def call(userDataPtr: Pointer, @Cast(Array("int64_t")) offset: Long, whence: Int): Long = {
super.call(userDataPtr, offset, whence)
}
}
val bufferSize = 1024 * 1024
val readBuffer = new BytePointer(bufferSize)
val avioContext = avformat.avio_alloc_context(
readBuffer, // internal buffer
bufferSize, // and its size
0, // write flag (1=true,0=false)
userDataPtr, // user data, will be passed to our callback functions
read,
null, // no writing
seek
)
formatContext.pb(avioContext)
formatContext.flags(formatContext.flags | avformat.AVFormatContext.AVFMT_FLAG_CUSTOM_IO)
formatContext.iformat(avformat.av_find_input_format("mp4"))
avformat.avformat_open_input(formatContext, null.asInstanceOf[String], null, null) -
tcp : Explicitly convert a pointer to a boolean integer
9 septembre 2013, par Martin Storsjötcp : Explicitly convert a pointer to a boolean integer
This fixes warnings about making integers from pointers without
a cast, and avoids the theoretical case where the lower 32 bits of
the pointer would all be zero where the implicit cast wouldn’t give
the right result.Signed-off-by : Martin Storsjö <martin@martin.st>